summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_time.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Avoid time wrap at securelevel 2. ok millert@ fgsch@nordin2002-07-251-44/+39
|
* Remove unnecessary spllowersoftclock(). ok art@nordin2002-06-111-2/+1
|
* First round of __P removal in sysmillert2002-03-141-3/+3
|
* Repeat. But this time get the math right and avoid sleeping forever.art2002-02-171-15/+19
|
* undo latest commit for now, it breaks nanosleeppvalchev2002-02-151-17/+17
|
* Don't get confused in nanosleep(2) when the time changes.art2002-02-151-17/+17
| | | | | There is no need to use 'time' when we can use 'mono_time'. (oh and now it's faster too)
* Handle itimer intervals smaller than the resolution of the clock; pr#2182.nordin2001-12-121-2/+17
|
* Remove NQNFScsapuntz2001-06-251-4/+1
|
* implement ppsratecheck(9). from netbsd.itojun2000-10-101-4/+62
| | | | refer mono_time only once in ratecheck(9).
* Be more paranoid about return values from hzto.art2000-07-071-7/+14
|
* Change splsoftclock() to spllowersoftclock(). (art@ ok)ho2000-07-061-2/+2
|
* Stop sleeps from returning early (by up to a clock tick).pjanzen2000-07-051-6/+2
| | | | | From FreeBSD: eventually, we should replace hzto() with something like tvtohz() as well.
* Don't reinitialize the tsleep and ITIMER_REAL timers all the time.art2000-03-231-2/+1
| | | | The function and the argument never change.
* Use the new timeout facilities for ITIMER_REAL.art2000-03-231-5/+6
|
* ratecheck - function to help implement rate-limited actions (from NetBSD)jakob2000-03-171-1/+30
| | | | ok art@
* Don't allow the time to be set forward so far it will wrap and become negative,millert2000-01-221-2/+22
| | | | | | | | | | | thus allowing an attacker to bypass the next check below. The cutoff is 1 year before rollover occurs, so even if the attacker uses adjtime(2) to move the time past the cutoff, it will take a very long time to get to the wrap point. The actual check is tv_sec > INT_MAX - 365*24*60*60 because on 64 bit platforms tv_sec is 64 bits but time_t is 32 bits. This will need to be changed some time in the future when the size of time_t changes. Add a printf when a user tries to turn the clock backwards and securelevel > 1
* Implement compatibility for Linux stime() syscall.aaron1999-12-061-3/+3
|
* -Wall sucksderaadt1999-06-061-3/+3
|
* adjtime(2) did not return EFAULT for bad olddelta ptr; darrenr@merlin.reed.wattle.id.auderaadt1999-06-061-3/+4
|
* Please GCC 2.8's harsher view of good styleniklas1998-02-201-3/+5
|
* Updates to match type changes in syscall tablestholo1998-02-081-2/+2
|
* Don't allow root to set the clock back in time if securelevel > 1. Thismillert1997-10-171-3/+21
| | | | got nuked when settime() was added.
* The type of a pointer to const characters is not the same as a const pointerniklas1997-04-281-19/+19
| | | | | | to non-const characters. Besides, the prototypes for copyin and friends, as well as timeout/untimeout takes void *, not caddr_t (char *), so I matched them. Slight KNF. This change makes it pass -Wcast-qual.
* First argument to nanosleep(2) is const; so is the first argument totholo1997-04-261-3/+3
| | | | copyin(9). Propagate this.
* In nanosleep, use local error variable when storing rqtp in so that an errortholo1997-04-231-1/+5
| | | | from a failed tsleep will still be returned to the caller; from jtc@NetBSD
* Add new POSIX 1003.1b related syscalls; from pk@NetBSDtholo1997-04-201-25/+173
|
* allow settimeofday() at securelevel < 2, rather than < 1.flipk1997-03-161-2/+2
| | | | | the consensus was that it was too annoying to not be able to change the clock at securelevel == 1.
* Upodate to lite2 -- don't allow setting back the clock if securelevel > 0millert1997-02-221-13/+19
|
* From NetBSD: NFSv3 import (tomorrow's Net's kernel)mickey1996-03-311-3/+4
| | | | | Open's patches kept in. i'll possibly take a look at Lite2 soon, is there smth usefull ?..
* From NetBSD: 960217 mergeniklas1996-03-031-8/+17
|
* initial import of NetBSD treederaadt1995-10-181-0/+387