[Glibc-bsd-commits] r4717 - trunk/glibc-ports/kfreebsd

Petr Salinger ps-guest at alioth.debian.org
Tue Jul 9 20:03:19 UTC 2013


Author: ps-guest
Date: 2013-07-09 20:03:18 +0000 (Tue, 09 Jul 2013)
New Revision: 4717

Modified:
   trunk/glibc-ports/kfreebsd/timespec_get.c
Log:
use INLINE_SYSCALL (clock_gettime,...)


Modified: trunk/glibc-ports/kfreebsd/timespec_get.c
===================================================================
--- trunk/glibc-ports/kfreebsd/timespec_get.c	2013-07-09 19:43:48 UTC (rev 4716)
+++ trunk/glibc-ports/kfreebsd/timespec_get.c	2013-07-09 20:03:18 UTC (rev 4717)
@@ -26,6 +26,9 @@
    otherwise, it returns zero.
  */
 
+int __syscall_clock_gettime(clockid_t clock_id, struct timespec *tp);
+libc_hidden_proto (__syscall_clock_gettime)
+
 int
 timespec_get (ts, base)
      struct timespec *ts;
@@ -34,7 +37,7 @@
   switch (base)
     {
     case TIME_UTC:
-      if ( 0 != __clock_gettime(CLOCK_REALTIME, ts))
+      if ( 0 != INLINE_SYSCALL (clock_gettime, 2, CLOCK_REALTIME, ts))
 	return 0;
       break;
 




More information about the Glibc-bsd-commits mailing list