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

@@ -23,11 +23,11 @@
  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 /*
- * Copyright 2017 Joyent, Inc.
+ * Copyright 2018 Joyent, Inc.
  * Copyright (c) 2013 by Delphix. All rights reserved.
  */
 
 #ifndef _SYS_DTRACE_H
 #define _SYS_DTRACE_H

@@ -240,10 +240,11 @@
 #define DIF_VAR_UCALLER         0x011c  /* user-level caller */
 #define DIF_VAR_PPID            0x011d  /* parent process ID */
 #define DIF_VAR_UID             0x011e  /* process user ID */
 #define DIF_VAR_GID             0x011f  /* process group ID */
 #define DIF_VAR_ERRNO           0x0120  /* thread errno */
+#define DIF_VAR_THREADNAME      0x0121  /* thread name */
 
 #define DIF_SUBR_RAND                   0
 #define DIF_SUBR_MUTEX_OWNED            1
 #define DIF_SUBR_MUTEX_OWNER            2
 #define DIF_SUBR_MUTEX_TYPE_ADAPTIVE    3