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)
Tue, Sep 1, 11:28 PM
Unknown Object (File)
Fri, Aug 28, 2:29 PM
Unknown Object (File)
Sun, Aug 23, 3:15 PM
Unknown Object (File)
Thu, Aug 20, 11:08 AM
Unknown Object (File)
Sun, Aug 16, 1:13 PM
Unknown Object (File)
Aug 13 2026, 8:54 PM
Unknown Object (File)
Aug 13 2026, 5:49 PM
Unknown Object (File)
Aug 12 2026, 2:44 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.