summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/cname.h
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2001-10-28 19:54:49 +0000
committerdillon <dillon@FreeBSD.org>2001-10-28 19:54:49 +0000
commit5b521f3c4f8da9d35e865fb9daa7a51e4fa00adb (patch)
tree4543d34cc7f31cf4431e62f7bbedbaf0179e4947 /lib/libc/regex/cname.h
parentff38fb0e7374ef63944abf0515667857eaa6d61d (diff)
downloadFreeBSD-src-5b521f3c4f8da9d35e865fb9daa7a51e4fa00adb.zip
FreeBSD-src-5b521f3c4f8da9d35e865fb9daa7a51e4fa00adb.tar.gz
Add routines to convert time_t to/from fixed-bit fields. These routines
serve two purposes: (1) so we can maintain backwards compatibility with protocols (rwhod, dump, etc...) that either assume time_t is 32 bits or assume sizeof(time_t) == sizeof(int), or make other similar assumptions. (2) To tag such routines (by the presence of these calls) for future cleanup/extension work. The 32->64 routine, time32_to_time() (when time_t is 64 bits, that is), is defined specifically to implement temporal locality to properly set the msb bits of a 64 bit time_t quantity, using the 50 year rule. The locality code has not been implemented yet (and doesn't need to be for a while), but that is the intent. This will allow us to maintain backwards protocol compatibility past 2038. These routines are intended to be platform and time_t agnostic. MFC after: 1 week
Diffstat (limited to 'lib/libc/regex/cname.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud