Date: Sat, 10 May 1997 05:00:03 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.ORG> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/kern kern_time.c Message-ID: <199705101200.FAA25259@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
peter 97/05/10 05:00:03 Modified: sys/kern kern_time.c Log: Fixes from Bruce: Serious: - An important timevalfix() in settime[ofday]() was lost. Not so serious: - There was a race initializing `delta' in the check for setting the time backwards. - The `#ifdef notyet' check for setting the time more than a day forwards was back to front. [[I deleted the code, it's useless because of iteration - Peter]] - The timespec was not checked for validity in clock_settime(). - The timespec was not fully checked for validity in nanotime(). The check in itimerfix() is too late, since the conversion from a timespec to a timeval may overflow. - A garbage timeval was checked in settimeofday() for the (uap->tv == NULL && uap->tzp != NULL) case. I added the broken check this some time ago. Cosmetic: - The "inadvertantly (sic) sleeping forever" test always failed. hzto() always returns >= 1. - The style wasn't very KNFish. (I only changed new code.) Submitted by: bde Revision Changes Path 1.26 +64 -59 src/sys/kern/kern_time.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705101200.FAA25259>