diff options
Diffstat (limited to 'lib/librthread/rthread_np.c')
-rw-r--r-- | lib/librthread/rthread_np.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/librthread/rthread_np.c b/lib/librthread/rthread_np.c index 86beb501068..64bd2db5aea 100644 --- a/lib/librthread/rthread_np.c +++ b/lib/librthread/rthread_np.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rthread_np.c,v 1.20 2017/09/05 02:40:54 guenther Exp $ */ +/* $OpenBSD: rthread_np.c,v 1.21 2019/02/04 17:18:08 tedu Exp $ */ /* * Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org> * Copyright (c) 2005 Otto Moerbeek <otto@openbsd.org> @@ -43,6 +43,12 @@ pthread_set_name_np(pthread_t thread, const char *name) strlcpy(thread->name, name, sizeof(thread->name)); } +void +pthread_get_name_np(pthread_t thread, char *name, size_t len) +{ + strlcpy(name, thread->name, len); +} + int pthread_main_np(void) { |