freebsd-skq/lib/libc/stdtime
Matthew Dillon 237c4e3a9e 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
2001-10-28 19:54:49 +00:00
..
asctime.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
ctime.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
difftime.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
localtime.c Don't mung the user's tm_sec field if we don't need to. (Belt-and-suspenders 2001-06-05 20:13:28 +00:00
Makefile.inc Add routines to convert time_t to/from fixed-bit fields. These routines 2001-10-28 19:54:49 +00:00
private.h Correct factor-of-10 error in INT_STRLEN_MAXIMUM() calculation. 2000-08-04 11:03:20 +00:00
strftime.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
strftime.c Get rid of non-standard %E[Ff] formats, userland apps already fixed 2001-03-21 14:52:12 +00:00
strptime.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
strptime.c Recognize the %s format. 2001-07-13 13:59:24 +00:00
time2posix.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
time32.c Add routines to convert time_t to/from fixed-bit fields. These routines 2001-10-28 19:54:49 +00:00
timelocal.c Oops, back out prev. change - POSIX require %y in d_fmt 2001-03-21 14:12:37 +00:00
timelocal.h Relax local FreeBSD restrictions on 3 chars abbrev. name length and %c format 2001-03-18 11:58:15 +00:00
tzfile.5 mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 13:41:46 +00:00
tzfile.h Merge from vendor branch: timezone file structure changes and doco. 1999-01-21 17:22:59 +00:00