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

@@ -55,10 +55,11 @@
 #include <sys/synch32.h>
 #include <schedctl.h>
 #include <sys/priocntl.h>
 #include <thread_db.h>
 #include <setjmp.h>
+#include <sys/thread.h>
 #include "libc_int.h"
 #include "tdb_agent.h"
 #include "thr_debug.h"
 
 /*

@@ -1231,10 +1232,11 @@
         int     scope;
         int     prio;
         int     policy;
         int     inherit;
         size_t  guardsize;
+        char    name[THREAD_NAME_MAX];
 } thrattr_t;
 
 typedef struct  _rwlattr {
         int     pshared;
 } rwlattr_t;

@@ -1490,11 +1492,11 @@
 
 extern  int     rw_read_held(rwlock_t *);
 extern  int     rw_write_held(rwlock_t *);
 
 extern  int     _thrp_create(void *, size_t, void *(*)(void *), void *, long,
-                        thread_t *, size_t);
+                        thread_t *, size_t, const char *);
 extern  int     _thrp_suspend(thread_t, uchar_t);
 extern  int     _thrp_continue(thread_t, uchar_t);
 
 extern  void    _thrp_terminate(void *);
 extern  void    _thrp_exit(void);