Update MIPS bits/resource.h
Joseph S. Myers
joseph@codesourcery.com
Thu May 1 12:13:00 GMT 2008
This patch updates the MIPS bits/resource.h with definitions just added to
the libc versions.
2008-05-01 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/bits/resource.h: Define
RUSAGE_THREAD and RUSAGE_LWP.
Index: sysdeps/unix/sysv/linux/mips/bits/resource.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/mips/bits/resource.h,v
retrieving revision 1.10
diff -u -r1.10 resource.h
--- sysdeps/unix/sysv/linux/mips/bits/resource.h 2 Jun 2006 15:37:27 -0000 1.10
+++ sysdeps/unix/sysv/linux/mips/bits/resource.h 1 May 2008 12:09:43 -0000
@@ -166,8 +166,16 @@
#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
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-ports
mailing list