]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add pthread_get_name_np(3).
authorKonstantin Belousov <kib@FreeBSD.org>
Fri, 17 Aug 2018 18:34:07 +0000 (18:34 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Fri, 17 Aug 2018 18:34:07 +0000 (18:34 +0000)
commit4627d47bc83903d3bf89828e32f3a4c3322a31d2
treeb86f0fb8f2543643954985070712dac20c322af4
parentd9cf291382345563f5e5e97a0f8fe054998f5a6a
Add pthread_get_name_np(3).

The function retrieves the thread name previously set by
pthread_set_name_np(3). The name is cached in the process memory.

Requested by: Willem Jan Withagen <wjw@digiware.nl>
Man page update: Yuri Pankov <yuripv@yuripv.net>
Reviewed by: ian (previous version)
Discussed with: arichardson, bjk (man page)
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D16702
include/pthread_np.h
lib/libc/include/namespace.h
lib/libc/include/un-namespace.h
lib/libthr/pthread.map
lib/libthr/thread/thr_exit.c
lib/libthr/thread/thr_info.c
lib/libthr/thread/thr_private.h
share/man/man3/Makefile
share/man/man3/pthread_set_name_np.3