]> Zhao Yanbai Git Server - minix.git/commit
libc: add clock_getres()/clock_gettime() system calls. 67/467/1
authorThomas Cort <tcort@minix3.org>
Fri, 29 Mar 2013 21:48:22 +0000 (21:48 +0000)
committerBen Gras <ben@minix3.org>
Thu, 4 Apr 2013 13:04:53 +0000 (15:04 +0200)
commite67fc5771d85064474a414da3724d1c274dee292
tree1a3abf94ed498998fc1aed893b23c90977edafae
parent5142b1f3888d0f2ee8e9bbe76460dbcb386f31aa
libc: add clock_getres()/clock_gettime() system calls.

In order to make it more clear that ticks should be used for timers
and realtime should be used for timestamps / displaying the date/time,
getuptime() was renamed to getticks() and getuptime2() was renamed to
getuptime().

Servers, drivers, libraries, tests, etc that use getuptime()/getuptime2()
have been updated. In instances where a realtime was calculated, the
calculation was changed to use realtime.

System calls clock_getres() and clock_gettime() were added to PM/libc.
44 files changed:
drivers/dpeth/3c501.c
drivers/dpeth/3c509.c
drivers/fbd/fbd.c
drivers/filter/util.c
drivers/orinoco/orinoco.c
include/minix/callnr.h
include/minix/com.h
include/minix/sysutil.h
include/time.h
kernel/system/do_times.c
lib/libc/sys-minix/MISSING_SYSCALLS
lib/libc/sys-minix/Makefile.inc
lib/libc/sys-minix/clock_getres.c [new file with mode: 0644]
lib/libc/sys-minix/clock_gettime.c [new file with mode: 0644]
lib/libddekit/src/timer.c
lib/liblwip/sys_arch.c
lib/libpuffs/utility.c
lib/libsys/Makefile
lib/libsys/arch/earm/spin.c
lib/libsys/arch/i386/spin.c
lib/libsys/getticks.c [moved from lib/libsys/getuptime2.c with 69% similarity]
lib/libsys/getuptime.c
lib/libsys/timers.c
servers/ext2/utility.c
servers/inet/clock.c
servers/is/dmp_pm.c
servers/iso9660fs/glo.h
servers/mfs/utility.c
servers/pfs/utility.c
servers/pm/alarm.c
servers/pm/param.h
servers/pm/proto.h
servers/pm/table.c
servers/pm/time.c
servers/procfs/root.c
servers/procfs/tree.c
servers/rs/main.c
servers/rs/manager.c
servers/rs/request.c
servers/vfs/table.c
servers/vfs/utility.c
servers/vm/region.c
sys/sys/time.h
test/blocktest/blocktest.c