summaryrefslogtreecommitdiff
path: root/sys/kern/kern_time.c
AgeCommit message (Collapse)Author
2001-06-25Remove NQNFSConstantine Sapuntzakis
2000-10-10implement ppsratecheck(9). from netbsd.Jun-ichiro itojun Hagino
refer mono_time only once in ratecheck(9).
2000-07-07Be more paranoid about return values from hzto.Artur Grabowski
2000-07-06Change splsoftclock() to spllowersoftclock(). (art@ ok)Hakan Olsson
2000-07-05Stop sleeps from returning early (by up to a clock tick).Paul Janzen
From FreeBSD: eventually, we should replace hzto() with something like tvtohz() as well.
2000-03-23Don't reinitialize the tsleep and ITIMER_REAL timers all the time.Artur Grabowski
The function and the argument never change.
2000-03-23Use the new timeout facilities for ITIMER_REAL.Artur Grabowski
2000-03-17ratecheck - function to help implement rate-limited actions (from NetBSD)Jakob Schlyter
ok art@
2000-01-22Don't allow the time to be set forward so far it will wrap and become negative,Todd C. Miller
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
1999-12-06Implement compatibility for Linux stime() syscall.Aaron Campbell
1999-06-06-Wall sucksTheo de Raadt
1999-06-06adjtime(2) did not return EFAULT for bad olddelta ptr; ↵Theo de Raadt
darrenr@merlin.reed.wattle.id.au
1998-02-20Please GCC 2.8's harsher view of good styleNiklas Hallqvist
1998-02-08Updates to match type changes in syscall tablesThorsten Lockert
1997-10-17Don't allow root to set the clock back in time if securelevel > 1. ThisTodd C. Miller
got nuked when settime() was added.
1997-04-28The type of a pointer to const characters is not the same as a const pointerNiklas Hallqvist
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.
1997-04-26First argument to nanosleep(2) is const; so is the first argument toThorsten Lockert
copyin(9). Propagate this.
1997-04-23In nanosleep, use local error variable when storing rqtp in so that an errorThorsten Lockert
from a failed tsleep will still be returned to the caller; from jtc@NetBSD
1997-04-20Add new POSIX 1003.1b related syscalls; from pk@NetBSDThorsten Lockert
1997-03-16allow settimeofday() at securelevel < 2, rather than < 1.flipk
the consensus was that it was too annoying to not be able to change the clock at securelevel == 1.
1997-02-22Upodate to lite2 -- don't allow setting back the clock if securelevel > 0Todd C. Miller
1996-03-31From NetBSD: NFSv3 import (tomorrow's Net's kernel)Michael Shalayeff
Open's patches kept in. i'll possibly take a look at Lite2 soon, is there smth usefull ?..
1996-03-03From NetBSD: 960217 mergeNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt