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

Joel Sherrill joel@rtems.org
Tue Jul 9 13:47:13 GMT 2024


Thanks. Pushed.

On Tue, Jul 9, 2024 at 5:33 AM Corinna Vinschen <vinschen@redhat.com> wrote:

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/newlib/attachments/20240709/27cfe31d/attachment.htm>


More information about the Newlib mailing list