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

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Jul  8 17:24, Joel Sherrill wrote:
> ---
>  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

LGTM, please push.

Thanks,
Corinna
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.