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
F102832297: D38445.diff
Sun, Nov 17, 6:20 PM
Unknown Object (File)
Mon, Nov 4, 8:38 PM
Unknown Object (File)
Mon, Nov 4, 8:36 PM
Unknown Object (File)
Mon, Nov 4, 8:36 PM
Unknown Object (File)
Mon, Nov 4, 8:29 PM
Unknown Object (File)
Sep 27 2024, 10:25 AM
Unknown Object (File)
Sep 24 2024, 9:59 AM
Unknown Object (File)
Sep 24 2024, 9:59 AM
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.