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
..
2001-10-27 12:49:19 +00:00
1999-09-05 17:43:31 +00:00
2000-10-09 12:34:51 +00:00
2001-09-05 01:36:46 +00:00
2000-09-19 04:24:50 +00:00
2001-06-09 05:22:31 +00:00
1999-08-27 23:45:13 +00:00
2001-06-13 14:59:57 +00:00
1999-08-27 23:45:13 +00:00
2001-09-05 01:36:46 +00:00
2001-10-04 07:39:14 +00:00
2000-12-29 20:25:01 +00:00
1999-06-21 17:07:20 +00:00
2001-03-27 09:43:09 +00:00
1999-08-27 23:45:13 +00:00
1999-08-27 23:45:13 +00:00
1999-08-27 23:45:13 +00:00
2000-07-07 16:52:24 +00:00
1999-08-28 05:11:36 +00:00
2001-10-10 07:34:47 +00:00
1999-08-27 23:45:13 +00:00
2001-02-06 01:15:32 +00:00
2001-07-10 17:50:46 +00:00
2001-07-10 17:50:46 +00:00