On Wed, Apr 19, 2017 at 2:02 PM, Gedare Bloom wrote:
> Hi Tanu,
>
> This comes into RTEMS through newlib. You have to clone newlib and
> search in newlib.git/newlib.
>
It is installed as part of your tools by the RSB.
You can #define _GNU_SOURCE before you include any .h files
or add it to the
Hi Tanu,
This comes into RTEMS through newlib. You have to clone newlib and
search in newlib.git/newlib.
Side-note: Please ensure to use a properly configured git user.name
and user.email so that git-send-email and git-format-patch will
preserve the correct authorship information.
Gedare
On Wed
Hello Joel,
I git grepped for the above lines in src/rtems but couldn't find it. I
couldn't find it in
/src/rtems/cpukit/posix/include/rtems/posix/pthread.h. I don't know
how to define _GNU_SOURCE. Can you please help me with this?
Thank you,
Tanu Hari Dixit.
On Wed, Apr 19, 2017 at 9:38 PM, Joe
Hi,
This is prototyped in pthread.h in the current tools:
#if __GNU_VISIBLE
int pthread_getname_np(pthread_t, char *, size_t) __nonnull(2);
int pthread_setname_np(pthread_t, const char *) __nonnull(2);
#endif
Do you have current tools? Did you define _GNU_SOURCE so this
prototype is vi
Hello all,
Please let me know if this is okay.
Thanks,
Tanu Hari Dixit.
On Wed, Apr 19, 2017 at 8:30 PM, tokencolour wrote:
> Gets rid of 1 warning -->
> warning: no previous prototype for 'pthread_getname_np' [-Wmissing-prototypes]
> ---
> cpukit/posix/include/rtems/posix/pthreadimpl.h | 5 ++
Gets rid of 1 warning -->
warning: no previous prototype for 'pthread_getname_np' [-Wmissing-prototypes]
---
cpukit/posix/include/rtems/posix/pthreadimpl.h | 5 +
cpukit/posix/src/pthreadgetnamenp.c| 1 +
2 files changed, 6 insertions(+)
diff --git a/cpukit/posix/include/rtems/pos