]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r265201
authorbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 8 May 2014 16:12:38 +0000 (16:12 +0000)
committerbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 8 May 2014 16:12:38 +0000 (16:12 +0000)
commit3a362ee83ac7f276189dda0b25cd768ac93ef4c1
tree1f7a9893a3b6f906de4112d59d6b7f6e7bcdbe5b
parent83a6139bd4f48621473fc1fac1bb0872ad885fe1
MFC r265201

Fix a 2038 bug.

If time_t is 64-bit (i.e. isn't 32-bit) allow any value of year, not
just years less than 2038.

Don't bother fixing the underflow in the case of years before 1903.

MFC after: 1 week
Sponsored by: DARPA, AFRL

git-svn-id: svn://svn.freebsd.org/base/stable/10@265687 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/subr_clock.c