Re: [PATCH] Added declaration of method pthread_getname_np

2017-04-19 Thread Joel Sherrill
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

Re: [PATCH] Added declaration of method pthread_getname_np

2017-04-19 Thread Gedare Bloom
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

Re: [PATCH] Added declaration of method pthread_getname_np

2017-04-19 Thread Tanu Hari Dixit
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

Re: [PATCH] Added declaration of method pthread_getname_np

2017-04-19 Thread Joel Sherrill
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

Re: [PATCH] Added declaration of method pthread_getname_np

2017-04-19 Thread Tanu Hari Dixit
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 ++

[PATCH] Added declaration of method pthread_getname_np

2017-04-19 Thread tokencolour
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