]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r265201
authorbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 8 May 2014 16:26:36 +0000 (16:26 +0000)
committerbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 8 May 2014 16:26:36 +0000 (16:26 +0000)
commit883af3bed903d2fccd0c8f52786ef240d1846ba2
treeb1416fd9f27c60975838613d6f5b3a70f6be79e7
parente74872858203fc01b28c09f489d10f9b50a6bcfb
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.

Sponsored by: DARPA, AFRL

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