Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section

*** 22,31 **** --- 22,33 ---- /* * Copyright 2014 Garrett D'Amore <garrett@damore.org> * * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. + * + * Copyright 2018 Joyent, Inc. */ #ifndef _THREAD_H #define _THREAD_H
*** 85,94 **** --- 87,98 ---- extern int thr_keycreate(thread_key_t *, void(*)(void *)); extern int thr_keycreate_once(thread_key_t *, void(*)(void *)); extern int thr_setspecific(thread_key_t, void *); extern int thr_getspecific(thread_key_t, void **); extern size_t thr_min_stack(void); + extern int thr_getname(thread_t, char *, size_t); + extern int thr_setname(thread_t, const char *); #endif /* _ASM */ #define THR_MIN_STACK thr_min_stack() /*