minix/lib/libsys
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
..
arch libc: add clock_getres()/clock_gettime() system calls. 2013-04-04 15:04:53 +02:00
alloc_util.c No more intel/minix segments. 2012-07-15 22:30:15 +02:00
assert.c drivers: resolve compiler warnings 2012-03-05 22:32:55 +01:00
asynsend.c Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
ds.c drop safemap code 2012-10-30 13:55:42 +01:00
env_get_prm.c No more intel/minix segments. 2012-07-15 22:30:15 +02:00
env_panic.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
env_parse.c various coverity-inspired fixes 2012-07-16 14:00:56 +02:00
env_prefix.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
fkey_ctl.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
gcov.c drop segment from safecopy invocations 2012-06-16 16:22:51 +00:00
getsysinfo.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
getticks.c libc: add clock_getres()/clock_gettime() system calls. 2013-04-04 15:04:53 +02:00
getuptime.c libc: add clock_getres()/clock_gettime() system calls. 2013-04-04 15:04:53 +02:00
input.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
kernel_call.c SYSENTER/SYSCALL support 2012-09-24 15:53:43 +02:00
kprintf.c panic() cleanup. 2010-03-05 15:05:11 +00:00
kputc.c No more intel/minix segments. 2012-07-15 22:30:15 +02:00
kputs.c intercept puts() in libsys, for gcc 2010-04-23 20:23:33 +00:00
Makefile libc: add clock_settime() system call. 2013-04-04 15:04:54 +02:00
optset.c Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
panic.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
pci.h Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
pci_attr_r8.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
pci_attr_r16.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
pci_attr_r32.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
pci_attr_w8.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
pci_attr_w16.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
pci_attr_w32.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
pci_del_acl.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
pci_dev_name.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
pci_find_dev.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
pci_first_dev.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
pci_get_bar.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
pci_ids.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
pci_init.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
pci_next_dev.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
pci_rescan_bus.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
pci_reserve.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
pci_set_acl.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
pci_slot_name.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
safecopies.c drop safemap code 2012-10-30 13:55:42 +01:00
sched_start.c libsys: resolve Coverity warnings 2012-08-09 00:16:36 +02:00
sched_stop.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sef.c libsys: resolve Coverity warnings 2012-08-09 00:16:36 +02:00
sef_gcov.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sef_init.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sef_liveupdate.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sef_ping.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sef_signal.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
shlib_version Adding shlib_version for libsys 2012-11-15 16:07:29 +01:00
sqrt_approx.c introduce sqrt_approx() in -lsys 2011-07-04 02:51:12 +02:00
stacktrace.c libsys: remove unused stacktrace variant 2012-08-09 00:16:35 +02:00
sys_abort.c Remove ability to pass commands to bootloader 2012-11-22 19:16:17 +01:00
sys_clear.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_cprof.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_endsig.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_exec.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_exit.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_fork.c No more intel/minix segments. 2012-07-15 22:30:15 +02:00
sys_getinfo.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_getsig.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_hz.c Add an UNUSED annotation, and use it in libsys. 2010-03-11 14:23:33 +00:00
sys_irqctl.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_kill.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_mcontext.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_memset.c further libexec generalization 2012-06-07 15:15:02 +02:00
sys_physcopy.c No more intel/minix segments. 2012-07-15 22:30:15 +02:00
sys_privctl.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
sys_profbuf.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_runctl.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_safecopy.c No more intel/minix segments. 2012-07-15 22:30:15 +02:00
sys_safememset.c libsys: add sys_safememset() 2012-09-26 02:18:00 +02:00
sys_schedctl.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_schedule.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_setalarm.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_setgrant.c Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
sys_settime.c libc: add clock_settime() system call. 2013-04-04 15:04:54 +02:00
sys_sigreturn.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_sigsend.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_sprof.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_statectl.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_stime.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_sysctl.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_times.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_trace.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_umap.c drop from segments physcopy/vircopy invocations 2012-06-18 12:28:40 +00:00
sys_update.c New RS and new signal handling for system processes. 2010-03-17 01:15:29 +00:00
sys_vircopy.c No more intel/minix segments. 2012-07-15 22:30:15 +02:00
sys_vmctl.c Rename sys_vmctl_get_cr3_i386 2012-08-12 23:30:54 +02:00
sys_vsafecopy.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_vtimer.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
sys_vumap.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
syslib.h Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
sysutil.h Incorporate bsdmake into buildsystem and reorganize libs 2010-02-16 14:41:33 +00:00
taskcall.c SYSENTER/SYSCALL support 2012-09-24 15:53:43 +02:00
tickdelay.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00
timers.c libc: add clock_getres()/clock_gettime() system calls. 2013-04-04 15:04:53 +02:00
vm_brk.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
vm_exit.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
vm_fork.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
vm_info.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
vm_map_phys.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
vm_notify_sig.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
vm_procctl.c exec() cleanup, generalization, improvement 2012-06-07 15:15:01 +02:00
vm_umap.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
vm_yield_get_block.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
vprintf.c Libraries updates and cleanup 2013-01-14 11:36:26 +01:00