Print this page
3946 ::gcore
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/lwp.h
          +++ new/usr/src/uts/common/sys/lwp.h
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  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 2008 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
       26 +/*
       27 + * Copyright (c) 2013 by Delphix. All rights reserved.
       28 + */
  26   29  
  27   30  #ifndef _SYS_LWP_H
  28   31  #define _SYS_LWP_H
  29   32  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   33  #include <sys/synch.h>
  33   34  #include <sys/ucontext.h>
  34   35  
  35   36  #ifdef  __cplusplus
  36   37  extern "C" {
  37   38  #endif
  38   39  
  39   40  /*
  40   41   * lwp create flags
  41   42   */
↓ open down ↓ 15 lines elided ↑ open up ↑
  57   58  /* Kernel's view of user ILP32 lwpinfo structure */
  58   59  
  59   60  struct lwpinfo32 {
  60   61          timestruc32_t   lwp_utime;
  61   62          timestruc32_t   lwp_stime;
  62   63          int32_t         lwpinfo_pad[64];
  63   64  };
  64   65  
  65   66  #endif  /* _SYSCALL32 */
  66   67  
       68 +typedef uint_t lwpid_t;
       69 +
  67   70  #define _LWP_FSBASE     0
  68   71  #define _LWP_GSBASE     1
  69   72  
  70   73  #define _LWP_SETPRIVATE 0
  71   74  #define _LWP_GETPRIVATE 1
  72   75  
  73   76  #ifndef _KERNEL
  74   77  
  75      -typedef uint_t lwpid_t;
  76      -
  77   78  int             _lwp_kill(lwpid_t, int);
  78   79  int             _lwp_info(struct lwpinfo *);
  79   80  lwpid_t         _lwp_self(void);
  80   81  int             _lwp_suspend(lwpid_t);
  81   82  int             _lwp_continue(lwpid_t);
  82   83  
  83   84  #endif  /* _KERNEL */
  84   85  
  85   86  #ifdef  __cplusplus
  86   87  }
  87   88  #endif
  88   89  
  89   90  #endif  /* _SYS_LWP_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX