vapier      14/08/04 01:54:09

  Added:                19_all_time.h-sync.patch 20_all_time.h-sync-2.patch
  Log:
  sync time.h with glibc

Revision  Changes    Path
1.1                  src/patchsets/uclibc/0.9.33.2/19_all_time.h-sync.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/uclibc/0.9.33.2/19_all_time.h-sync.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/uclibc/0.9.33.2/19_all_time.h-sync.patch?rev=1.1&content-type=text/plain

Index: 19_all_time.h-sync.patch
===================================================================
>From 0afdc2c51a945efb62a39573850035cb2faba8cf Mon Sep 17 00:00:00 2001
From: Peter Korsgaard <[email protected]>
Date: Tue, 3 Jul 2012 15:54:57 +0200
Subject: [PATCH] bits/time.h: sync with glibc 2.16

CLOCK_MONOTONIC_RAW is available since 2.6.28
(2d42244ae71d: clocksource: introduce CLOCK_MONOTONIC_RAW), and
CLOCK_*_COARSE since 2.6.32 (da15cfdae033: time: Introduce
CLOCK_REALTIME_COARSE).

Signed-off-by: Peter Korsgaard <[email protected]>
Signed-off-by: Bernhard Reutner-Fischer <[email protected]>
---
 libc/sysdeps/linux/common/bits/time.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libc/sysdeps/linux/common/bits/time.h 
b/libc/sysdeps/linux/common/bits/time.h
index 7ed54bf..c871223 100644
--- a/libc/sysdeps/linux/common/bits/time.h
+++ b/libc/sysdeps/linux/common/bits/time.h
@@ -54,6 +54,12 @@
 #   define CLOCK_PROCESS_CPUTIME_ID    2
 /* Thread-specific CPU-time clock.  */
 #   define CLOCK_THREAD_CPUTIME_ID     3
+/* Monotonic system-wide clock, not adjusted for frequency scaling.  */
+#   define CLOCK_MONOTONIC_RAW         4
+/* Identifier for system-wide realtime clock, updated only on ticks.  */
+#   define CLOCK_REALTIME_COARSE       5
+/* Monotonic system-wide clock, updated only on ticks.  */
+#   define CLOCK_MONOTONIC_COARSE      6
 
 /* Flag to indicate time is absolute.  */
 #   define TIMER_ABSTIME               1
-- 
2.0.0




1.1                  src/patchsets/uclibc/0.9.33.2/20_all_time.h-sync-2.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/uclibc/0.9.33.2/20_all_time.h-sync-2.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/uclibc/0.9.33.2/20_all_time.h-sync-2.patch?rev=1.1&content-type=text/plain

Index: 20_all_time.h-sync-2.patch
===================================================================
>From 5e6484efb38cd6e63f59bd54f7c3d53082f1ec18 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <[email protected]>
Date: Fri, 1 Aug 2014 04:16:12 -0400
Subject: [PATCH] bits/time.h: sync with latest glibc

Signed-off-by: Mike Frysinger <[email protected]>
---
 libc/sysdeps/linux/common/bits/time.h | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/libc/sysdeps/linux/common/bits/time.h 
b/libc/sysdeps/linux/common/bits/time.h
index c871223..6c6b644 100644
--- a/libc/sysdeps/linux/common/bits/time.h
+++ b/libc/sysdeps/linux/common/bits/time.h
@@ -1,5 +1,5 @@
-/* System-dependent timing definitions.  Generic version.
-   Copyright (C) 1996,1997,1999-2002,2003 Free Software Foundation, Inc.
+/* System-dependent timing definitions.  Linux version.
+   Copyright (C) 1996-2014 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -60,6 +60,12 @@
 #   define CLOCK_REALTIME_COARSE       5
 /* Monotonic system-wide clock, updated only on ticks.  */
 #   define CLOCK_MONOTONIC_COARSE      6
+/* Monotonic system-wide clock that includes time spent in suspension.  */
+#   define CLOCK_BOOTTIME              7
+/* Like CLOCK_REALTIME but also wakes suspended system.  */
+#   define CLOCK_REALTIME_ALARM                8
+/* Like CLOCK_BOOTTIME but also wakes suspended system.  */
+#   define CLOCK_BOOTTIME_ALARM                9
 
 /* Flag to indicate time is absolute.  */
 #   define TIMER_ABSTIME               1
-- 
2.0.0





Reply via email to