summaryrefslogtreecommitdiff
path: root/nptl/sysdeps/pthread
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2010-04-12 13:40:20 +0200
committerAndreas Schwab <schwab@redhat.com>2010-04-12 13:40:20 +0200
commit1fd194fb757480a11ebd877e17dd627c90d76dd1 (patch)
tree9ad22d95dd8673bc036d14b0055a8dcd6febe09e /nptl/sysdeps/pthread
parent4ac4e460b116fb6da6e80124f4c4f6968eb86341 (diff)
parentea42a20caed5b343ff20a0d4622ae6c17b77161b (diff)
Merge remote branch 'origin/master' into fedora/master
Diffstat (limited to 'nptl/sysdeps/pthread')
-rw-r--r--nptl/sysdeps/pthread/pthread.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/nptl/sysdeps/pthread/pthread.h b/nptl/sysdeps/pthread/pthread.h
index b84fd5c7a4..44cf9f0cac 100644
--- a/nptl/sysdeps/pthread/pthread.h
+++ b/nptl/sysdeps/pthread/pthread.h
@@ -425,6 +425,18 @@ extern int pthread_setschedprio (pthread_t __target_thread, int __prio)
__THROW;
+#ifdef __USE_GNU
+/* Get thread name visible in the kernel and its interfaces. */
+extern int pthread_getname_np (pthread_t __target_thread, char *__buf,
+ size_t __buflen)
+ __THROW __nonnull ((2));
+
+/* Set thread name visible in the kernel and its interfaces. */
+extern int pthread_setname_np (pthread_t __target_thread, __const char *__name)
+ __THROW __nonnull ((2));
+#endif
+
+
#ifdef __USE_UNIX98
/* Determine level of concurrency. */
extern int pthread_getconcurrency (void) __THROW;