summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2020-06-10 22:13:24 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2020-06-10 22:13:24 +0000
commit2ef84b7da9a6c3e23b4a135e6e863581f16d46e1 (patch)
treec2f576369fa4c0d8218a16b636da31368387c346 /include
parent3b23ffe27185fbc4c57c76db11039cd8d51eece6 (diff)
downloadsrc-test2-2ef84b7da9a6c3e23b4a135e6e863581f16d46e1.tar.gz
src-test2-2ef84b7da9a6c3e23b4a135e6e863581f16d46e1.zip
Add pthread_getname_np() and pthread_setname_np() aliases for
pthread_get_name_np() and pthread_set_name_np(). This re-applies r361770 after compatibility fixes. Reviewed by: antoine, jkim, markj Tested by: antoine (exp-run) Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D25117
Notes
Notes: svn path=/head/; revision=362032
Diffstat (limited to 'include')
-rw-r--r--include/pthread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/pthread.h b/include/pthread.h
index c22ad216d01b..143401ddf68b 100644
--- a/include/pthread.h
+++ b/include/pthread.h
@@ -301,6 +301,9 @@ void pthread_testcancel(void);
int pthread_getprio(pthread_t);
int pthread_setprio(pthread_t, int);
void pthread_yield(void);
+
+int pthread_getname_np(pthread_t, char *, size_t);
+int pthread_setname_np(pthread_t, const char *);
#endif
int pthread_mutexattr_getprioceiling(