summaryrefslogtreecommitdiff
path: root/sys/kern/kern_time.c
AgeCommit message (Expand)Author
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
2018-12-29sys_nanosleep: switch to descriptive, idiomatic variable names; ok tedu@cheloha
2018-05-28Constipate a bunch of time functionsPhilip Guenther
2018-05-22nanosleep: ensure tv_nsec input is on [0, 1000000000)cheloha
2018-02-19Remove almost unused `flags' argument of suser().Martin Pieuchot
2017-12-18Add the CLOCK_BOOTTIME clockid for use with clock_gettime(2)cheloha
2017-01-24Rename pfind(9) into tfind(9) to reflect that it deals with threads.Martin Pieuchot
2016-09-03Write the system time back to the RTC every 30 minutes.Christian Weisgerber
2016-04-28careful study of the holy scrolls reveals that for pselect (and ppoll)Ted Unangst
2015-12-05remove stale lint annotationsTed Unangst
2015-11-01refactor pledge_*_check and pledge_fail functionsSebastien Marie
2015-10-09Rename tame() to pledge(). This fairly interface has evolved to be moreTheo de Raadt
2015-09-11Only include <sys/tame.h> in the .c files that need itPhilip Guenther
2015-08-22Move to tame(int flags, char *paths[]) API/ABI.Theo de Raadt
2015-07-19tame(2) is a subsystem which restricts programs into a "reduced featureTheo de Raadt
2015-04-28Protect the per-process itimerval structs with a mutex. We update theseMark Kettenis
2014-12-07typo; fix from Kaspars BankovskisTheo de Raadt
2014-05-15Prefer prsignal() to send process signalsPhilip Guenther
2014-01-30Simplyfy adjtime(2) by keeping track of the adjustment as a number ofMark Kettenis
2014-01-22timeval, timespec, and itimerval have padding on many archs. If we'rePhilip Guenther
2013-10-25Move the declarations for dogetrusage(), itimerround(), and dowait4()Philip Guenther
2013-10-08Fix delivery of SIGPROF and SIGVTALRM to threaded processes by havingPhilip Guenther
2013-10-06Add CLOCK_UPTIME, a clock which measures time-running-not-suspended, soPhilip Guenther
2013-09-14Snapshots for all archs have been built, so remove the T32 codePhilip Guenther