NetBSD/sys
perry bf0943278c Fix a problem first noticed by a user with a screwed up real time
clock past the End of Time.

If time_t is 32 bits, then the "End of Time" is Jan 18/19 2038
(depending on time zone).

This code copes with RTC's past the end of time if time_t is an int32
or less. It just forces the time back to 2037.  This will let users
with screwed up clocks to at least boot and function long enough to
set their clocks to something sane.

This kludge is conditioned on an
	if (sizeof(time_t) <= sizeof(int32_t))
which will automatically optimize the code out once we switch time_t
to a 64 bit quantity, which should happen well before 2037.

Patch based on code from Michael C. Richardson, with help from
Allen Briggs who pointed out a fencepost error.
1998-08-05 01:21:54 +00:00
..
adosfs Recognize _PC_SYNC_IO. 1998-08-03 14:19:57 +00:00
arch Fix a problem first noticed by a user with a screwed up real time 1998-08-05 01:21:54 +00:00
compat enable nanosleep in linux emul, per pr-5906 from Soren S. Jorvang 1998-08-05 00:44:32 +00:00
conf
ddb
dev Use looping DMA for play channel. 1998-08-04 13:14:42 +00:00
gdbscripts
ipkdb
isofs Recognize _PC_SYNC_IO. 1998-08-03 14:19:57 +00:00
kern Per XNS Issue 5, calling recvmsg(2) or sendmsg(2) with an msg.msg_iovlen less 1998-08-04 19:48:34 +00:00
lib update bzero.c to stub from libc/string 1998-08-04 06:27:08 +00:00
lkm
miscfs Recognize _PC_SYNC_IO. 1998-08-03 14:19:57 +00:00
msdosfs Recognize _PC_SYNC_IO. 1998-08-03 14:19:57 +00:00
net
netatalk
netccitt
netinet
netiso
netnatm
netns
nfs
stand
sys Add support to query the 1998-08-03 14:38:20 +00:00
ufs Recognize _PC_SYNC_IO. 1998-08-03 14:19:57 +00:00
uvm
vm
Makefile