No description
Find a file
Thomas Cort 516fec97d9 libc: add clock_settime() system call.
This also adds the sys_settime() kernel call which allows for the adjusting
of the clock named realtime in the kernel. The existing sys_stime()
function is still needed for a separate job (setting the boottime). The
boottime is set in the readclock driver. The sys_settime() interface is
meant to be flexible and will support both clock_settime() and adjtime()
when adjtime() is implemented later.

settimeofday() was adjusted to use the clock_settime() interface.

One side note discovered during testing: uptime(1) (part of the last(1)),
uses wtmp to determine boottime (not Minix's times(2)). This leads `uptime`
to report odd results when you set the time to a time prior to boottime.
This isn't a new bug introduced by my changes. It's been there for a while.
2013-04-04 15:04:54 +02:00
benchmarks Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
bin Importing bin/ksh 2013-03-14 11:33:10 +01:00
commands Importing usr.bin/head 2013-03-23 14:37:39 +01:00
common __aeabi_ldivmod: fix sign logic 2013-02-11 21:37:10 +01:00
dist/nvi Termcap update, replacing elvis by nvi. 2013-01-24 07:44:38 +01:00
distrib test69: add clock_getres() and clock_gettime() tests. 2013-04-04 15:04:53 +02:00
docs Importing bin/ksh 2013-03-14 11:33:10 +01:00
drivers libc: add clock_getres()/clock_gettime() system calls. 2013-04-04 15:04:53 +02:00
etc some etc fixes 2013-04-04 12:50:12 +00:00
external Reduce differences in libgcc Makefiles for ARM 2013-03-08 09:41:49 +01:00
gnu/dist Toolchain upgrade and portability improvements. 2012-11-15 16:07:29 +01:00
include libc: add clock_settime() system call. 2013-04-04 15:04:54 +02:00
kernel libc: add clock_settime() system call. 2013-04-04 15:04:54 +02:00
lib libc: add clock_settime() system call. 2013-04-04 15:04:54 +02:00
libexec Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
man Importing usr.bin/whatis 2013-03-23 16:10:23 +01:00
releasetools Importing usr.bin/from 2013-03-23 16:11:11 +01:00
sbin Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
servers libc: add clock_settime() system call. 2013-04-04 15:04:54 +02:00
share some etc fixes 2013-04-04 12:50:12 +00:00
sys libc: add clock_getres()/clock_gettime() system calls. 2013-04-04 15:04:53 +02:00
test libc: add clock_settime() system call. 2013-04-04 15:04:54 +02:00
tools Removing forgotten, useless, renegade defines 2013-02-27 10:54:04 +01:00
usr.bin Importing usr.bin/from 2013-03-23 16:11:11 +01:00
usr.sbin mkfs.mfs fixup 2013-04-03 15:57:04 +02:00
.gitignore gitignore: ignore some more generated files 2012-12-06 13:29:20 +00:00
.gitreview misc:Add gerrit code review support. 2013-01-16 09:44:16 +01:00
build.sh Reverting back to default value of MKARZERO 2013-01-17 10:03:58 +01:00
LICENSE Fix parameter parsing in cut 2010-01-21 10:16:05 +00:00
Makefile some etc fixes 2013-04-04 12:50:12 +00:00