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

*** 22,31 **** --- 22,32 ---- /* * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * * Copyright 2013 Nexenta Systems, Inc. All rights reserved. + * Copyright 2018 Joyent, Inc. */ #ifndef _SYS_THREAD_H #define _SYS_THREAD_H
*** 80,89 **** --- 81,91 ---- extern kthread_t *_curthread(void); /* returns thread pointer */ #define curthread (_curthread()) /* current thread pointer */ #define _KTHREAD_INVALID ((void *)(uintptr_t)-1) + #define THREAD_NAME_MAX (32) struct proc; extern struct proc *_curproc(void); #define curproc (_curproc()) /* current proc pointer */