Page MenuHomeFreeBSD

tzcode: Resurrect tzsetwall(3) with a deprecation warning.
ClosedPublic

Authored by des on Feb 8 2023, 7:14 PM.
Tags
None
Referenced Files
F82819372: D38445.id.diff
Thu, May 2, 9:11 PM
Unknown Object (File)
Sat, Apr 27, 10:23 AM
Unknown Object (File)
Thu, Apr 25, 9:36 PM
Unknown Object (File)
Dec 20 2023, 6:03 AM
Unknown Object (File)
Dec 12 2023, 12:16 PM
Unknown Object (File)
Nov 9 2023, 6:39 PM
Unknown Object (File)
Oct 8 2023, 5:32 PM
Unknown Object (File)
Aug 15 2023, 10:38 PM
Subscribers

Details

Summary

This function has been around since 4.4BSD but was dropped upstream in 2020. This went unnoticed when tzcode was updated. Bring it back, but prepare for removing it before 14.0 is released.

MFC after: 3 days
Reported by: val@packett.cool

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Feb 8 2023, 7:14 PM
des created this revision.

ping @cperciva as this is a regression in stable/13 which needs to be fixed before 13.2.

Note that I chose to reimplement tzsetwall(3) as it was easy enough to do, but I'm not sure this is the right approach as it locks us into maintaining a patch in contributed code.

it locks us into maintaining a patch in contributed code.

The burden of doing so is much lower than in the CVS or SVN days so I don't think it's a big deal.

This revision is now accepted and ready to land.Feb 8 2023, 7:24 PM
contrib/tzcode/localtime.c
1544

why not just inline this one? it's not being reused anywhere…

des marked an inline comment as done.Feb 9 2023, 9:58 AM
des added inline comments.
contrib/tzcode/localtime.c
1544

The inline keyword is just a suggestion. The compiler is free to inline the function or not regardless of whether I ask it to, and I trust the compiler to make the right choice. The only difference the inline keyword makes is to suppress warnings when a header that defines static functions (e.g. <sys/endian.h>) is included in a translation unit which does not use them.

This revision was automatically updated to reflect the committed changes.
des marked an inline comment as done.