projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7272ed4
)
Define RUSAGE_THREAD and RUSAGE_LWP.
author
Ulrich Drepper
<drepper@redhat.com>
Thu, 1 May 2008 05:37:45 +0000
(
05:37
+0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Thu, 1 May 2008 05:37:45 +0000
(
05:37
+0000)
sysdeps/unix/sysv/linux/alpha/bits/resource.h
patch
|
blob
|
history
diff --git
a/sysdeps/unix/sysv/linux/alpha/bits/resource.h
b/sysdeps/unix/sysv/linux/alpha/bits/resource.h
index
2163745
..
92d0199
100644
(file)
--- a/
sysdeps/unix/sysv/linux/alpha/bits/resource.h
+++ b/
sysdeps/unix/sysv/linux/alpha/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