From c57677ae5111f3a0849e20689dec9c77c8418fb4 Mon Sep 17 00:00:00 2001 From: tedu <> Date: Mon, 4 Feb 2019 17:18:08 +0000 Subject: [PATCH] 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 --- src/include/pthread_np.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/pthread_np.h b/src/include/pthread_np.h index d606735e..b56bc651 100644 --- a/src/include/pthread_np.h +++ b/src/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 . * 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);