summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/pthread.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-09 15:14:42 +0100
committerCorinna Vinschen <corinna@vinschen.de>2017-01-09 16:19:58 +0100
commit85d6679ab33ba67ebdcc7f8d4bdad1d7ebcc617f (patch)
treeb82f62f35315ccce4fd849806558c3dec8fff465 /newlib/libc/include/pthread.h
parent83c39aedacc8f743b76f40723e4b02fcf0fd1a4d (diff)
downloadcygnal-85d6679ab33ba67ebdcc7f8d4bdad1d7ebcc617f.tar.gz
cygnal-85d6679ab33ba67ebdcc7f8d4bdad1d7ebcc617f.tar.bz2
cygnal-85d6679ab33ba67ebdcc7f8d4bdad1d7ebcc617f.zip
Add pthread_setname_np() and pthread_getname_np()
The pthread_setname_np() and pthread_getname_np() are GNU extensions and provided by glibc. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diffstat (limited to 'newlib/libc/include/pthread.h')
-rw-r--r--newlib/libc/include/pthread.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libc/include/pthread.h b/newlib/libc/include/pthread.h
index 46f54206f..516131d83 100644
--- a/newlib/libc/include/pthread.h
+++ b/newlib/libc/include/pthread.h
@@ -170,6 +170,12 @@ int _EXFUN(pthread_setschedprio, (pthread_t thread, int prio));
#endif /* defined(_POSIX_THREAD_PRIORITY_SCHEDULING) */
+#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
+
#if defined(_POSIX_THREAD_PRIO_INHERIT) || defined(_POSIX_THREAD_PRIO_PROTECT)
/* Mutex Initialization Scheduling Attributes, P1003.1c/Draft 10, p. 128 */