git: libpthread: Implement pthread_getname_np() and pthread_setname_np().
Sascha Wildner
swildner at crater.dragonflybsd.org
Mon Mar 8 10:35:30 PST 2021
commit ab5dc9aceb34419d1c4b6006739e61acee8ee999
Author: Sascha Wildner <saw at online.de>
Date: Mon Mar 8 19:34:42 2021 +0100
libpthread: Implement pthread_getname_np() and pthread_setname_np().
Varieties of pthread_get_name_np() and pthread_set_name_np() that return
an integer (0 or error number).
These are only used for debugging but it looks like some ports want them.
I took some of the documentation from FreeBSD.
Reported-by: zrj
Summary of changes:
include/pthread_np.h | 2 ++
lib/libc/gen/Symbol.map | 4 +++
lib/libc/gen/_pthread_stubs.c | 10 ++++++
lib/libc/include/namespace.h | 4 ++-
lib/libc/include/un-namespace.h | 4 ++-
lib/libpthread/Makefile | 4 ++-
lib/libpthread/pthread_set_name_np.3 | 69 ++++++++++++++++++++++++++++++++----
lib/libthread_xu/pthread.map | 2 ++
lib/libthread_xu/thread/thr_info.c | 60 +++++++++++++++++++++++--------
lib/libthread_xu/thread/thr_init.c | 4 +++
10 files changed, 139 insertions(+), 24 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ab5dc9aceb34419d1c4b6006739e61acee8ee999
--
DragonFly BSD source repository
More information about the Commits
mailing list