RFC: Adding RUSAGE_THREAD to sys/resource.h
Joel Sherrill <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <CAF9ehCW0hTZLhZbs-+_PNJwzfy=Y_OpYJ0FSq-A7g__6HX73nA@mail.gmail.com> |
Hi We are looking at adding RUSAGE_THREAD support to RTEMS. It is not in POSIX but supported by Linux and FreeBSD. Linux has it behind a __USE_GNU guard. FreeBSD does not have it behind a guard. This is what I propose to add to sys/resource.h. +#if __GNU_VISIBLE +#define RUSAGE_THREAD 1 +#endif Cygwin has its own version of the resource.h file so no impact. Is this the appropriate guard set? Thanks. --joel