Author: rmh
Date: 2006-02-16 12:43:16 +0000 (Thu, 16 Feb 2006)
New Revision: 1212

Modified:
   trunk/glibc-2.3-head/sysdeps/kfreebsd/alpha/bits/time.h
   trunk/glibc-2.3-head/sysdeps/kfreebsd/bits/resource.h
   trunk/glibc-2.3-head/sysdeps/kfreebsd/bits/sigset.h
   trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/bits/time.h
   trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/bits/time.h
Log:
Import some declarations from kernel headers to bits/{time,sigset,resource}.h 
(needed for libgtop2).

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/alpha/bits/time.h
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/alpha/bits/time.h     2006-02-16 
11:49:08 UTC (rev 1211)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/alpha/bits/time.h     2006-02-16 
12:43:16 UTC (rev 1212)
@@ -58,6 +58,17 @@
 #   define TIMER_ABSTIME               1
 #  endif
 
+
+/* Getkerninfo clock information structure */
+struct clockinfo
+  {
+    int hz;            /* clock frequency */
+    int tick;          /* micro-seconds per hz tick */
+    int spare;
+    int stathz;                /* statistics clock frequency */
+    int profhz;                /* profiling clock frequency */
+  };
+
 # endif        /* bits/time.h */
 #endif
 

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/bits/resource.h
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/bits/resource.h       2006-02-16 
11:49:08 UTC (rev 1211)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/bits/resource.h       2006-02-16 
12:43:16 UTC (rev 1212)
@@ -118,6 +118,13 @@
  };
 #endif
 
+#define        CP_USER         0
+#define        CP_NICE         1
+#define        CP_SYS          2
+#define        CP_INTR         3
+#define        CP_IDLE         4
+#define        CPUSTATES       5
+
 /* Whose usage statistics do you want?  */
 enum __rusage_who
 {

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/bits/sigset.h
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/bits/sigset.h 2006-02-16 11:49:08 UTC 
(rev 1211)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/bits/sigset.h 2006-02-16 12:43:16 UTC 
(rev 1212)
@@ -25,7 +25,11 @@
 /* A `sigset_t' has a bit for each signal.  */
 typedef struct
   {
-    unsigned int __sigbits[4];
+    union
+      {
+        unsigned int __sigbits[4];
+        unsigned int __bits[4];
+      };
   } __sigset_t;
 
 #endif /* ! _SIGSET_H_types */

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/bits/time.h
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/bits/time.h      2006-02-16 
11:49:08 UTC (rev 1211)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/bits/time.h      2006-02-16 
12:43:16 UTC (rev 1212)
@@ -58,6 +58,17 @@
 #   define TIMER_ABSTIME               1
 #  endif
 
+
+/* Getkerninfo clock information structure */
+struct clockinfo
+  {
+    int hz;            /* clock frequency */
+    int tick;          /* micro-seconds per hz tick */
+    int spare;
+    int stathz;                /* statistics clock frequency */
+    int profhz;                /* profiling clock frequency */
+  };
+
 # endif        /* bits/time.h */
 #endif
 

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/bits/time.h
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/bits/time.h    2006-02-16 
11:49:08 UTC (rev 1211)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/bits/time.h    2006-02-16 
12:43:16 UTC (rev 1212)
@@ -52,6 +52,17 @@
 #   define TIMER_ABSTIME               1
 #  endif
 
+
+/* Getkerninfo clock information structure */
+struct clockinfo
+  {
+    int hz;            /* clock frequency */
+    int tick;          /* micro-seconds per hz tick */
+    int spare;
+    int stathz;                /* statistics clock frequency */
+    int profhz;                /* profiling clock frequency */
+  };
+
 # endif        /* bits/time.h */
 #endif
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to