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

Joel Sherrill <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <CAF9ehCWketMAhD2cykL2keAO8r4L6j9hv0Tids44JbU3Axxsiw@mail.gmail.com>
Thanks. Pushed.

On Tue, Jul 9, 2024 at 5:33 AM Corinna Vinschen <[email protected]> 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
>
>
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.