Home | History | Annotate | Download | only in runtime
      1 // created by cgo -cdefs and then converted to Go
      2 // cgo -cdefs defs_solaris.go defs_solaris_amd64.go
      3 
      4 package runtime
      5 
      6 const (
      7 	_EINTR       = 0x4
      8 	_EBADF       = 0x9
      9 	_EFAULT      = 0xe
     10 	_EAGAIN      = 0xb
     11 	_ETIMEDOUT   = 0x91
     12 	_EWOULDBLOCK = 0xb
     13 	_EINPROGRESS = 0x96
     14 
     15 	_PROT_NONE  = 0x0
     16 	_PROT_READ  = 0x1
     17 	_PROT_WRITE = 0x2
     18 	_PROT_EXEC  = 0x4
     19 
     20 	_MAP_ANON    = 0x100
     21 	_MAP_PRIVATE = 0x2
     22 	_MAP_FIXED   = 0x10
     23 
     24 	_MADV_FREE = 0x5
     25 
     26 	_SA_SIGINFO = 0x8
     27 	_SA_RESTART = 0x4
     28 	_SA_ONSTACK = 0x1
     29 
     30 	_SIGHUP    = 0x1
     31 	_SIGINT    = 0x2
     32 	_SIGQUIT   = 0x3
     33 	_SIGILL    = 0x4
     34 	_SIGTRAP   = 0x5
     35 	_SIGABRT   = 0x6
     36 	_SIGEMT    = 0x7
     37 	_SIGFPE    = 0x8
     38 	_SIGKILL   = 0x9
     39 	_SIGBUS    = 0xa
     40 	_SIGSEGV   = 0xb
     41 	_SIGSYS    = 0xc
     42 	_SIGPIPE   = 0xd
     43 	_SIGALRM   = 0xe
     44 	_SIGTERM   = 0xf
     45 	_SIGURG    = 0x15
     46 	_SIGSTOP   = 0x17
     47 	_SIGTSTP   = 0x18
     48 	_SIGCONT   = 0x19
     49 	_SIGCHLD   = 0x12
     50 	_SIGTTIN   = 0x1a
     51 	_SIGTTOU   = 0x1b
     52 	_SIGIO     = 0x16
     53 	_SIGXCPU   = 0x1e
     54 	_SIGXFSZ   = 0x1f
     55 	_SIGVTALRM = 0x1c
     56 	_SIGPROF   = 0x1d
     57 	_SIGWINCH  = 0x14
     58 	_SIGUSR1   = 0x10
     59 	_SIGUSR2   = 0x11
     60 
     61 	_FPE_INTDIV = 0x1
     62 	_FPE_INTOVF = 0x2
     63 	_FPE_FLTDIV = 0x3
     64 	_FPE_FLTOVF = 0x4
     65 	_FPE_FLTUND = 0x5
     66 	_FPE_FLTRES = 0x6
     67 	_FPE_FLTINV = 0x7
     68 	_FPE_FLTSUB = 0x8
     69 
     70 	_BUS_ADRALN = 0x1
     71 	_BUS_ADRERR = 0x2
     72 	_BUS_OBJERR = 0x3
     73 
     74 	_SEGV_MAPERR = 0x1
     75 	_SEGV_ACCERR = 0x2
     76 
     77 	_ITIMER_REAL    = 0x0
     78 	_ITIMER_VIRTUAL = 0x1
     79 	_ITIMER_PROF    = 0x2
     80 
     81 	__SC_NPROCESSORS_ONLN = 0xf
     82 
     83 	_PTHREAD_CREATE_DETACHED = 0x40
     84 
     85 	_FORK_NOSIGCHLD = 0x1
     86 	_FORK_WAITPID   = 0x2
     87 
     88 	_MAXHOSTNAMELEN = 0x100
     89 
     90 	_O_NONBLOCK = 0x80
     91 	_FD_CLOEXEC = 0x1
     92 	_F_GETFL    = 0x3
     93 	_F_SETFL    = 0x4
     94 	_F_SETFD    = 0x2
     95 
     96 	_POLLIN  = 0x1
     97 	_POLLOUT = 0x4
     98 	_POLLHUP = 0x10
     99 	_POLLERR = 0x8
    100 
    101 	_PORT_SOURCE_FD = 0x4
    102 )
    103 
    104 type semt struct {
    105 	sem_count uint32
    106 	sem_type  uint16
    107 	sem_magic uint16
    108 	sem_pad1  [3]uint64
    109 	sem_pad2  [2]uint64
    110 }
    111 
    112 type sigaltstackt struct {
    113 	ss_sp     *byte
    114 	ss_size   uint64
    115 	ss_flags  int32
    116 	pad_cgo_0 [4]byte
    117 }
    118 
    119 type sigset struct {
    120 	__sigbits [4]uint32
    121 }
    122 
    123 type stackt struct {
    124 	ss_sp     *byte
    125 	ss_size   uint64
    126 	ss_flags  int32
    127 	pad_cgo_0 [4]byte
    128 }
    129 
    130 type siginfo struct {
    131 	si_signo int32
    132 	si_code  int32
    133 	si_errno int32
    134 	si_pad   int32
    135 	__data   [240]byte
    136 }
    137 
    138 type sigactiont struct {
    139 	sa_flags  int32
    140 	pad_cgo_0 [4]byte
    141 	_funcptr  [8]byte
    142 	sa_mask   sigset
    143 }
    144 
    145 type fpregset struct {
    146 	fp_reg_set [528]byte
    147 }
    148 
    149 type mcontext struct {
    150 	gregs  [28]int64
    151 	fpregs fpregset
    152 }
    153 
    154 type ucontext struct {
    155 	uc_flags    uint64
    156 	uc_link     *ucontext
    157 	uc_sigmask  sigset
    158 	uc_stack    stackt
    159 	pad_cgo_0   [8]byte
    160 	uc_mcontext mcontext
    161 	uc_filler   [5]int64
    162 	pad_cgo_1   [8]byte
    163 }
    164 
    165 type timespec struct {
    166 	tv_sec  int64
    167 	tv_nsec int64
    168 }
    169 
    170 type timeval struct {
    171 	tv_sec  int64
    172 	tv_usec int64
    173 }
    174 
    175 func (tv *timeval) set_usec(x int32) {
    176 	tv.tv_usec = int64(x)
    177 }
    178 
    179 type itimerval struct {
    180 	it_interval timeval
    181 	it_value    timeval
    182 }
    183 
    184 type portevent struct {
    185 	portev_events int32
    186 	portev_source uint16
    187 	portev_pad    uint16
    188 	portev_object uint64
    189 	portev_user   *byte
    190 }
    191 
    192 type pthread uint32
    193 type pthreadattr struct {
    194 	__pthread_attrp *byte
    195 }
    196 
    197 type stat struct {
    198 	st_dev     uint64
    199 	st_ino     uint64
    200 	st_mode    uint32
    201 	st_nlink   uint32
    202 	st_uid     uint32
    203 	st_gid     uint32
    204 	st_rdev    uint64
    205 	st_size    int64
    206 	st_atim    timespec
    207 	st_mtim    timespec
    208 	st_ctim    timespec
    209 	st_blksize int32
    210 	pad_cgo_0  [4]byte
    211 	st_blocks  int64
    212 	st_fstype  [16]int8
    213 }
    214 
    215 // created by cgo -cdefs and then converted to Go
    216 // cgo -cdefs defs_solaris.go defs_solaris_amd64.go
    217 
    218 const (
    219 	_REG_RDI    = 0x8
    220 	_REG_RSI    = 0x9
    221 	_REG_RDX    = 0xc
    222 	_REG_RCX    = 0xd
    223 	_REG_R8     = 0x7
    224 	_REG_R9     = 0x6
    225 	_REG_R10    = 0x5
    226 	_REG_R11    = 0x4
    227 	_REG_R12    = 0x3
    228 	_REG_R13    = 0x2
    229 	_REG_R14    = 0x1
    230 	_REG_R15    = 0x0
    231 	_REG_RBP    = 0xa
    232 	_REG_RBX    = 0xb
    233 	_REG_RAX    = 0xe
    234 	_REG_GS     = 0x17
    235 	_REG_FS     = 0x16
    236 	_REG_ES     = 0x18
    237 	_REG_DS     = 0x19
    238 	_REG_TRAPNO = 0xf
    239 	_REG_ERR    = 0x10
    240 	_REG_RIP    = 0x11
    241 	_REG_CS     = 0x12
    242 	_REG_RFLAGS = 0x13
    243 	_REG_RSP    = 0x14
    244 	_REG_SS     = 0x15
    245 )
    246