about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/bits/resource.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-05-01 05:37:45 +0000
committerUlrich Drepper <drepper@redhat.com>2008-05-01 05:37:45 +0000
commit1ce0612b9906938e631dd0699996e5322741fd3d (patch)
tree8d56bfce2534e98a242e058d79666d08f4279df0 /sysdeps/unix/sysv/linux/bits/resource.h
parentb5ec5fce74f74911ed147d9627ba0c1882a73fe4 (diff)
downloadglibc-1ce0612b9906938e631dd0699996e5322741fd3d.tar.gz
glibc-1ce0612b9906938e631dd0699996e5322741fd3d.tar.xz
glibc-1ce0612b9906938e631dd0699996e5322741fd3d.zip
Define RUSAGE_THREAD and RUSAGE_LWP.
Diffstat (limited to 'sysdeps/unix/sysv/linux/bits/resource.h')
-rw-r--r--sysdeps/unix/sysv/linux/bits/resource.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/resource.h b/sysdeps/unix/sysv/linux/bits/resource.h
index 526cdaf53c..95d64ed77f 100644
--- a/sysdeps/unix/sysv/linux/bits/resource.h
+++ b/sysdeps/unix/sysv/linux/bits/resource.h
@@ -158,8 +158,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