2008-05-01 Joseph Myers <joseph@codesourcery.com>
authorDaniel Jacobowitz <dan@codesourcery.com>
Thu, 1 May 2008 12:34:13 +0000 (12:34 +0000)
committerDaniel Jacobowitz <dan@codesourcery.com>
Thu, 1 May 2008 12:34:13 +0000 (12:34 +0000)
* sysdeps/unix/sysv/linux/mips/bits/resource.h: Define
RUSAGE_THREAD and RUSAGE_LWP.

ChangeLog.mips
sysdeps/unix/sysv/linux/mips/bits/resource.h

index b4253d8..398fac9 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-01  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/mips/bits/resource.h: Define
+       RUSAGE_THREAD and RUSAGE_LWP.
+
 2008-04-21  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * sysdeps/unix/sysv/linux/mips/bits/shm.h: Fix comment describing
index 1c8b99a..3cfdc5d 100644 (file)
@@ -166,8 +166,16 @@ enum __rusage_who
 #define RUSAGE_SELF RUSAGE_SELF
 
   /* All of its terminated child processes.  */
-  RUSAGE_CHILDREN = -1
+  RUSAGE_CHILDREN = -1,
 #define RUSAGE_CHILDREN RUSAGE_CHILDREN
+
+#ifdef __USE_GNU
+  /* The calling thread.  */
+  RUSAGE_THREAD = 1
+# define RUSAGE_THREAD RUSAGE_THREAD
+  /* Name for the same functionality on Solaris.  */
+# define RUSAGE_LWP RUSAGE_THREAD
+#endif
 };
 
 #define __need_timeval