[PATCH] libc/include/sys/resource.h: Add RUSAGE_THREAD

Joel Sherrill joel@rtems.org
Mon Jul 8 22:24:25 GMT 2024


---
 newlib/libc/include/sys/resource.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/newlib/libc/include/sys/resource.h b/newlib/libc/include/sys/resource.h
index c0a0d2019..e653d08ee 100644
--- a/newlib/libc/include/sys/resource.h
+++ b/newlib/libc/include/sys/resource.h
@@ -9,6 +9,9 @@ extern "C" {
 
 #define	RUSAGE_SELF	0		/* calling process */
 #define	RUSAGE_CHILDREN	-1		/* terminated child processes */
+#if __GNU_VISIBLE
+#define	RUSAGE_THREAD	1
+#endif
 
 struct rusage {
   	struct timeval ru_utime;	/* user time used */
-- 
2.24.4



More information about the Newlib mailing list