[Glibc-bsd-commits] r5316 - in trunk/freebsd-glue: debian include/sys

rmh at alioth.debian.org rmh at alioth.debian.org
Wed Jan 8 14:14:55 UTC 2014


Author: rmh
Date: 2014-01-08 14:14:55 +0000 (Wed, 08 Jan 2014)
New Revision: 5316

Modified:
   trunk/freebsd-glue/debian/changelog
   trunk/freebsd-glue/include/sys/time.h
Log:
Add a few FreeBSD-specific clocks on non-kFreeBSD systems.

Modified: trunk/freebsd-glue/debian/changelog
===================================================================
--- trunk/freebsd-glue/debian/changelog	2014-01-08 14:04:03 UTC (rev 5315)
+++ trunk/freebsd-glue/debian/changelog	2014-01-08 14:14:55 UTC (rev 5316)
@@ -3,6 +3,7 @@
   * Only include <sys/sysctl.h> when needed (should fix FTBFS on
     hurd-i386).
   * Add __ELF_WORD_SIZE to <machine/__get_elf_arch.h>.
+  * Add a few FreeBSD-specific clocks on non-kFreeBSD systems.
 
  -- Robert Millan <rmh at debian.org>  Wed, 08 Jan 2014 12:59:25 +0100
 

Modified: trunk/freebsd-glue/include/sys/time.h
===================================================================
--- trunk/freebsd-glue/include/sys/time.h	2014-01-08 14:04:03 UTC (rev 5315)
+++ trunk/freebsd-glue/include/sys/time.h	2014-01-08 14:14:55 UTC (rev 5316)
@@ -15,6 +15,17 @@
 /* FreeBSD code expects that this file includes... */
 #  include <sys/types.h>
 
+/* FreeBSD-specific clocks. Attempt to map them to portable macros (but
+   make sure the calls fail when this mapping would not be reliable) */
+#define CLOCK_UPTIME			(-1)
+#define CLOCK_UPTIME_PRECISE		(-1)
+#define CLOCK_UPTIME_FAST		(-1)
+#define CLOCK_REALTIME_PRECISE		CLOCK_REALTIME
+#define CLOCK_REALTIME_FAST		CLOCK_REALTIME_COARSE
+#define CLOCK_MONOTONIC_PRECISE		CLOCK_MONOTONIC
+#define CLOCK_MONOTONIC_FAST		CLOCK_MONOTONIC_COARSE
+#define CLOCK_SECOND			(-1)
+
 #endif /* _SYS_TIME_H_ */
 
 #endif /* __FreeBSD_kernel__ */




More information about the Glibc-bsd-commits mailing list