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)
Sat, Oct 25, 2:15 AM
Unknown Object (File)
Sat, Oct 11, 1:10 PM
Unknown Object (File)
Sat, Oct 11, 2:33 AM
Unknown Object (File)
Sat, Oct 4, 4:35 PM
Unknown Object (File)
Sep 15 2025, 8:21 PM
Unknown Object (File)
Sep 15 2025, 7:42 PM
Unknown Object (File)
Sep 15 2025, 9:26 AM
Unknown Object (File)
Sep 14 2025, 12:07 PM

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.