minix/kernel/system/Makefile.inc
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

48 lines
731 B
Makefile

# Makefile for system library implementation
.include <bsd.own.mk>
.PATH: ${.CURDIR}/system
SRCS+= \
do_fork.c \
do_exec.c \
do_clear.c \
do_exit.c \
do_trace.c \
do_runctl.c \
do_update.c \
do_times.c \
do_setalarm.c \
do_stime.c \
do_settime.c \
do_vtimer.c \
do_irqctl.c \
do_copy.c \
do_umap.c \
do_umap_remote.c \
do_vumap.c \
do_memset.c \
do_setgrant.c \
do_privctl.c \
do_safecopy.c \
do_safememset.c \
do_sysctl.c \
do_getksig.c \
do_endksig.c \
do_kill.c \
do_sigsend.c \
do_sigreturn.c \
do_abort.c \
do_getinfo.c \
do_cprofile.c \
do_profbuf.c \
do_vmctl.c \
do_schedule.c \
do_schedctl.c \
do_statectl.c
.if ${MACHINE_ARCH} == "i386"
SRCS+= \
do_devio.c \
do_vdevio.c
.endif