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
F139492759: D48963.diff
Fri, Dec 12, 5:29 PM
F139492750: D48963.diff
Fri, Dec 12, 5:29 PM
F139492747: D48963.diff
Fri, Dec 12, 5:29 PM
Unknown Object (File)
Mon, Dec 1, 12:09 AM
Unknown Object (File)
Sat, Nov 15, 5:34 AM
Unknown Object (File)
Thu, Nov 13, 5:00 AM
Unknown Object (File)
Nov 10 2025, 12:57 AM
Unknown Object (File)
Oct 31 2025, 1:03 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.