summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2020-06-03 20:54:36 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2020-06-03 20:54:36 +0000
commit9bed49fea4a668db2c331a59458a89ae8808984e (patch)
treea387024ca569aaacd1215dd2e61951f0357cb47e /include
parent3f65edb3696e07ef580a1918e1a3ba186633269c (diff)
downloadsrc-test2-9bed49fea4a668db2c331a59458a89ae8808984e.tar.gz
src-test2-9bed49fea4a668db2c331a59458a89ae8808984e.zip
Add pthread_getname_np() and pthread_setname_np() aliases
for pthread_get_name_np() and pthread_set_name_np(), to be compatible with Linux. PR: 238404 Proposed and reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D25117
Notes
Notes: svn path=/head/; revision=361770
Diffstat (limited to 'include')
-rw-r--r--include/pthread_np.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/pthread_np.h b/include/pthread_np.h
index f93a023f0fce..0bd68ff07bac 100644
--- a/include/pthread_np.h
+++ b/include/pthread_np.h
@@ -50,6 +50,7 @@ int pthread_attr_get_np(pthread_t, pthread_attr_t *);
int pthread_attr_getaffinity_np(const pthread_attr_t *, size_t, cpuset_t *);
int pthread_attr_setaffinity_np(pthread_attr_t *, size_t, const cpuset_t *);
void pthread_get_name_np(pthread_t, char *, size_t);
+void pthread_getname_np(pthread_t, char *, size_t);
int pthread_getaffinity_np(pthread_t, size_t, cpuset_t *);
int pthread_getthreadid_np(void);
int pthread_main_np(void);
@@ -65,6 +66,7 @@ void pthread_resume_all_np(void);
int pthread_resume_np(pthread_t);
int pthread_peekjoin_np(pthread_t, void **);
void pthread_set_name_np(pthread_t, const char *);
+void pthread_setname_np(pthread_t, const char *);
int pthread_setaffinity_np(pthread_t, size_t, const cpuset_t *);
int pthread_single_np(void);
void pthread_suspend_all_np(void);