summaryrefslogtreecommitdiff
path: root/lib/libcurses/curs_window.3
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2017-12-18 05:51:54 +0000
committercheloha <cheloha@cvs.openbsd.org>2017-12-18 05:51:54 +0000
commit8e394bb0e5f25c84775150ebb5389670cae488c7 (patch)
treee2716e9835a7872f76ef5fcfa82893972f1624c4 /lib/libcurses/curs_window.3
parent8fd06186df470fde0080330a0b2f5829bf0c6a1d (diff)
Add the CLOCK_BOOTTIME clockid for use with clock_gettime(2)
and put it to use in userspace in lieu of the kern.boottime sysctl. Its absolute value is the time that has elapsed since the system booted, i.e., the system uptime. Use in top(1), w(1), and snmpd(8) eliminates a race with settimeofday(2), adjtime(2), etc. inherent to deriving the system uptime via the kern.boottime sysctl. Product of a great deal of discussion/revision with jca@, tb@, and guenther@. ok tb@ jca@ guenther@ dlg@ mlarkin@ tom@
Diffstat (limited to 'lib/libcurses/curs_window.3')
0 files changed, 0 insertions, 0 deletions