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

@@ -22,10 +22,11 @@
 /*
  * 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,10 +81,11 @@
 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 */