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
Unknown Object (File)
Mon, Jun 10, 2:40 PM
Unknown Object (File)
Fri, Jun 7, 4:43 PM
Unknown Object (File)
Mon, Jun 3, 5:18 PM
Unknown Object (File)
Sat, May 18, 1:58 AM
Unknown Object (File)
May 14 2024, 9:24 PM
Unknown Object (File)
May 4 2024, 4:27 PM
Unknown Object (File)
May 2 2024, 9:11 PM
Unknown Object (File)
Apr 27 2024, 10:23 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.