Page MenuHomeFreeBSD

pf: use time_t for storing time_t values
ClosedPublic

Authored by kp on Feb 12 2025, 1:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 11, 10:04 PM
Unknown Object (File)
May 6 2026, 12:00 PM
Unknown Object (File)
May 6 2026, 7:46 AM
Unknown Object (File)
May 6 2026, 12:35 AM
Unknown Object (File)
May 2 2026, 8:53 PM
Unknown Object (File)
Apr 27 2026, 5:37 PM
Unknown Object (File)
Apr 24 2026, 6:32 AM
Unknown Object (File)
Apr 20 2026, 12:04 AM

Details

Summary

No change to the underlying type, so no ABI change.

We define time_t as uint64_t if LP64, otherwise uint32_t,
and only define
LP64__ if long is 64 bits.
In other words: __time_t == long.

ok henning@ deraadt@

Obtained from: OpenBSD, guenther <guenther@openbsd.org>, 6c1b69a0ff
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

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

Event Timeline

kp requested review of this revision.Feb 12 2025, 1:37 PM
This revision was not accepted when it landed; it landed in state Needs Review.Feb 14 2025, 5:50 PM
This revision was automatically updated to reflect the committed changes.