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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libfakekernel/common/sys/thread.h
          +++ new/usr/src/lib/libfakekernel/common/sys/thread.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   *
  26   26   * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       27 + * Copyright 2018 Joyent, Inc.
  27   28   */
  28   29  
  29   30  #ifndef _SYS_THREAD_H
  30   31  #define _SYS_THREAD_H
  31   32  
  32   33  #include <sys/types.h>
  33   34  #include <sys/t_lock.h>
  34   35  #include <sys/klwp.h>
  35   36  #include <sys/signal.h>  /* expected by including code */
  36   37  
↓ open down ↓ 38 lines elided ↑ open up ↑
  75   76  struct _kthread;
  76   77  typedef struct _kthread *kthread_id_t;
  77   78  
  78   79  typedef struct _kthread kthread_t;
  79   80  
  80   81  extern  kthread_t       *_curthread(void);      /* returns thread pointer */
  81   82  #define curthread       (_curthread())          /* current thread pointer */
  82   83  
  83   84  #define _KTHREAD_INVALID        ((void *)(uintptr_t)-1)
  84   85  
       86 +#define THREAD_NAME_MAX (32)
  85   87  
  86   88  struct proc;
  87   89  extern struct proc      *_curproc(void);
  88   90  #define curproc         (_curproc())            /* current proc pointer */
  89   91  
  90   92  struct zone;
  91   93  extern struct zone      *_curzone(void);
  92   94  #define curzone         (_curzone())            /* current zone pointer */
  93   95  
  94   96  extern  kthread_t       *thread_create(
↓ open down ↓ 20 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX