diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2019-02-04 17:18:09 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2019-02-04 17:18:09 +0000 |
commit | dd1a8be070d4c1f2430e774aefef9c7341301e14 (patch) | |
tree | 17a9b69786dd37c5a4134d69d2e2eecea4ba7276 /include | |
parent | b17bc6f5e6877c15c56d4cd13c97a2f4b7905ba6 (diff) |
add a pthread_get_name_np to match pthread_set_name_np.
could be useful in ports.
initial diff by David Carlier some time ago.
ok jca
Diffstat (limited to 'include')
-rw-r--r-- | include/pthread_np.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/pthread_np.h b/include/pthread_np.h index d606735e787..b56bc651cb5 100644 --- a/include/pthread_np.h +++ b/include/pthread_np.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread_np.h,v 1.1 2017/10/15 23:40:33 guenther Exp $ */ +/* $OpenBSD: pthread_np.h,v 1.2 2019/02/04 17:18:08 tedu Exp $ */ /* * Copyright (c) 1996-98 John Birrell <jb@cimlogic.com.au>. * All rights reserved. @@ -45,6 +45,7 @@ typedef void (*pthread_switch_routine_t)(pthread_t, pthread_t); __BEGIN_DECLS int pthread_mutexattr_getkind_np(pthread_mutexattr_t); int pthread_mutexattr_setkind_np(pthread_mutexattr_t *, int); +void pthread_get_name_np(pthread_t, char *, size_t); void pthread_set_name_np(pthread_t, const char *); int pthread_stackseg_np(pthread_t, stack_t *); int pthread_main_np(void); |