[Glibc-bsd-commits] r2852 - trunk/glibc-ports/kfreebsd
Petr Salinger
ps-guest at alioth.debian.org
Thu Nov 19 11:12:22 UTC 2009
Author: ps-guest
Date: 2009-11-19 11:12:22 +0000 (Thu, 19 Nov 2009)
New Revision: 2852
Modified:
trunk/glibc-ports/kfreebsd/clock_getres.c
trunk/glibc-ports/kfreebsd/clock_gettime.c
Log:
handle FreeBSD specific clocks
Modified: trunk/glibc-ports/kfreebsd/clock_getres.c
===================================================================
--- trunk/glibc-ports/kfreebsd/clock_getres.c 2009-11-19 09:53:08 UTC (rev 2851)
+++ trunk/glibc-ports/kfreebsd/clock_getres.c 2009-11-19 11:12:22 UTC (rev 2852)
@@ -22,8 +22,18 @@
libc_hidden_proto (__syscall_clock_getres)
# define SYSDEP_GETRES \
- case CLOCK_REALTIME: \
- case CLOCK_MONOTONIC: \
+ case CLOCK_REALTIME: \
+ case CLOCK_MONOTONIC: \
+ case CLOCK_REALTIME_FAST: \
+ case CLOCK_REALTIME_PRECISE: \
+ case CLOCK_MONOTONIC_FAST: \
+ case CLOCK_MONOTONIC_PRECISE: \
+ case CLOCK_UPTIME: \
+ case CLOCK_UPTIME_FAST: \
+ case CLOCK_UPTIME_PRECISE: \
+ case CLOCK_VIRTUAL: \
+ case CLOCK_PROF: \
+ case CLOCK_SECOND: \
retval = INLINE_SYSCALL (clock_getres, 2, clock_id, res); \
break
Modified: trunk/glibc-ports/kfreebsd/clock_gettime.c
===================================================================
--- trunk/glibc-ports/kfreebsd/clock_gettime.c 2009-11-19 09:53:08 UTC (rev 2851)
+++ trunk/glibc-ports/kfreebsd/clock_gettime.c 2009-11-19 11:12:22 UTC (rev 2852)
@@ -23,8 +23,18 @@
libc_hidden_proto (__syscall_clock_gettime)
# define SYSDEP_GETTIME \
- case CLOCK_REALTIME: \
- case CLOCK_MONOTONIC: \
+ case CLOCK_REALTIME: \
+ case CLOCK_MONOTONIC: \
+ case CLOCK_REALTIME_FAST: \
+ case CLOCK_REALTIME_PRECISE: \
+ case CLOCK_MONOTONIC_FAST: \
+ case CLOCK_MONOTONIC_PRECISE: \
+ case CLOCK_UPTIME: \
+ case CLOCK_UPTIME_FAST: \
+ case CLOCK_UPTIME_PRECISE: \
+ case CLOCK_VIRTUAL: \
+ case CLOCK_PROF: \
+ case CLOCK_SECOND: \
retval = INLINE_SYSCALL (clock_gettime, 2, clock_id, tp); \
break
More information about the Glibc-bsd-commits
mailing list