summaryrefslogtreecommitdiff
path: root/sys/kern/kern_time.c
AgeCommit message (Expand)Author
2021-06-18setitimer(2): increase timer limit to UINT_MAX secondscheloha
2021-06-11setitimer(2): don't round up it_valuecheloha
2021-05-31Redefine ADJFREQ_MIN to avoid undefined behaviour (when not using -fwrapv)Visa Hankala
2020-12-23nanosleep(2): shorten wmesg from "nanosleep" to "nanoslp"cheloha
2020-11-10setitimer(2): ITIMER_REAL: protect state with per-process mutex ps_mtxcheloha
2020-10-25setitimer(2): ITIMER_REAL: use kclock timeoutscheloha
2020-10-15_exit(2), execve(2): tweak per-process interval timer cancellationcheloha
2020-10-15_exit(2), execve(2): cancel per-process interval timers safelycheloha
2020-10-13setitimer(2): zero itv.it_interval if itv.it_value is zerocheloha
2020-10-13setitimer(2): realitexpire(): call getnanouptime(9) oncecheloha
2020-10-07sys_getitimer(), sys_setitimer(): style(9), misc. cleanupcheloha
2020-10-07getitimer(2), setitimer(2): ITIMER_REAL: call getnanouptime(9) oncecheloha
2020-10-07getitimer(2), setitimer(2): merge critical sectionscheloha
2020-10-02expose timeval/timespec from system calls into ktrace, before determiningTheo de Raadt
2020-08-12getitimer(2): delay TIMESPEC_TO_TIMEVAL(9) conversion until copyout(9)cheloha
2020-08-12setitimer(2): ITIMER_REAL: don't call timeout_del(9) before timeout_add(9)cheloha
2020-08-11setitimer(2): write new timer value in one placecheloha
2020-08-11setitimer(2): consolidate copyin(9), input validation, input conversioncheloha
2020-08-11getitimer(2): don't enter itimer_mtx to read ITIMER_REAL itimerspeccheloha
2020-08-09hardclock(9): fix race with setitimer(2) for ITIMER_VIRTUAL, ITIMER_PROFcheloha
2020-08-08adjtime(2): simplify input validation for new adjustmentcheloha
2020-07-15settimeofday(2): securelevel 2: prevent root from freezing the UTC clockcheloha
2020-07-09adjfreq(2): limit adjustment to [-500000, +500000] ppmcheloha
2020-06-22inittodr(9): introduce dedicated flag to enable writes from resettodr(9)cheloha
2020-05-20clock_gettime(2): use nanoruntime(9) to get value for CLOCK_UPTIMEcheloha
2020-05-17Add function for attaching RTC drivers, to reduce direct useVisa Hankala
2020-05-16Make inittodr() and resettodr() MI.Mark Kettenis
2020-03-20nanosleep(2): tsleep(9) -> tsleep_nsec(9)cheloha
2019-11-07adjfreq(2): fix atomic swapcheloha
2019-10-26clock_getres(2): actually return the resolution of the given clockcheloha
2019-09-04gettimeofday, settimeofday(2): limit timezone supportcheloha
2019-08-03R.I.P. itimerround(); ok mpi@cheloha
2019-08-02per-process itimers: itimerval -> itimerspeccheloha
2019-07-25itimerdecr(): simplify logic with timer*(9) macros; ok millert@cheloha
2019-07-02R.I.P. timespecfix(); ok visa@ mpi@cheloha
2019-06-03Switch from bintime_add() et al. to bintimeadd(9).cheloha
2019-06-01Revert to using the SCHED_LOCK() to protect time accounting.Martin Pieuchot
2019-05-31Use a per-process mutex to protect time accounting instead of SCHED_LOCK().Martin Pieuchot
2019-05-21Fix uninitialized return code in adjfreq(2); CID 1480285Stefan Sperling
2019-05-09Unlock adjfreq(2), adjtime(2), clock_settime(2), and settimeofday(2).cheloha
2019-03-26Tweak previous: include <sys/stdint.h> for INT64_MAX/INT64_MIN.cheloha
2019-03-26adjtime(2): set EINVAL if delta overflows 64 bits of microseconds.cheloha
2019-03-25MP-safe timecounting: new rwlock: tc_lockcheloha
2019-03-10Move adjtimedelta from kern_time.c to kern_tc.c.cheloha
2019-01-31matthew noticed that some clocks use tfind() which is not mpsafe.Ted Unangst
2019-01-23Sprinkle a pinch of timerisvalid/timespecisvalid over the rest of sys/kerncheloha
2019-01-18no need to KERNEL_LOCK before calling ktrstruct() anymore; ok mpi@ visa@cheloha
2019-01-18adjtime(2), settimeofday(2), clock_settime(2): validate inputcheloha
2019-01-10settime: Don't cancel ongoing adjtime(2) until after full permission checkscheloha
2018-12-31nanosleep: loop tsleep(9) to ensure coverage of the full timeout range.cheloha