github.com/4ad/go@v0.0.0-20161219182952-69a12818b605/src/runtime/defs1_solaris_sparc64.go (about) 1 // created by cgo -godefs and then manually edited. 2 // CC=sparcv9-solaris2.12-gcc GOARCH=sparc64 GOOS=solaris go tool cgo -godefs defs_solaris.go defs_solaris_sparc64.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_PAGESIZE = 0xb 82 __SC_NPROCESSORS_ONLN = 0xf 83 84 _PTHREAD_CREATE_DETACHED = 0x40 85 86 _FORK_NOSIGCHLD = 0x1 87 _FORK_WAITPID = 0x2 88 89 _MAXHOSTNAMELEN = 0x100 90 91 _O_NONBLOCK = 0x80 92 _FD_CLOEXEC = 0x1 93 _F_GETFL = 0x3 94 _F_SETFL = 0x4 95 _F_SETFD = 0x2 96 97 _POLLIN = 0x1 98 _POLLOUT = 0x4 99 _POLLHUP = 0x10 100 _POLLERR = 0x8 101 102 _PORT_SOURCE_FD = 0x4 103 ) 104 105 type semt struct { 106 sem_count uint32 107 sem_type uint16 108 sem_magic uint16 109 sem_pad1 [3]uint64 110 sem_pad2 [2]uint64 111 } 112 113 type sigaltstackt struct { 114 ss_sp *byte 115 ss_size uint64 116 ss_flags int32 117 pad_cgo_0 [4]byte 118 } 119 120 type sigset struct { 121 __sigbits [4]uint32 122 } 123 124 type stackt struct { 125 ss_sp *byte 126 ss_size uint64 127 ss_flags int32 128 pad_cgo_0 [4]byte 129 } 130 131 type siginfo struct { 132 si_signo int32 133 si_code int32 134 si_errno int32 135 si_pad int32 136 __data [240]byte 137 } 138 139 type sigactiont struct { 140 sa_flags int32 141 pad_cgo_0 [4]byte 142 _funcptr [8]byte 143 sa_mask sigset 144 } 145 146 type fpregset struct { 147 fp_reg_set [288]byte // lots of stuff here, but we treat it as opaque. 148 } 149 150 type mcontext struct { 151 gregs [21]int64 152 gwins *gwindows 153 fpregs fpregset 154 // additional stuff follows, but for our purpose, this struct is opaque. 155 } 156 157 type ucontext struct { 158 uc_flags uint32 159 pad_cgo_0 [4]byte 160 uc_link *ucontext 161 uc_sigmask sigset 162 uc_stack stackt 163 pad_cgo_1 [8]byte 164 uc_mcontext mcontext 165 uc_filler [4]int64 166 } 167 168 type gwindows struct { 169 wbcnt int32 170 pad_cgo_0 [4]byte 171 spbuf [31]*int64 172 wbuf [31]rwindow 173 } 174 type rwindow struct { 175 local [8]int64 176 in [8]int64 177 } 178 179 type timespec struct { 180 tv_sec int64 181 tv_nsec int64 182 } 183 184 type timeval struct { 185 tv_sec int64 186 tv_usec int64 187 } 188 189 func (tv *timeval) set_usec(x int32) { 190 tv.tv_usec = int64(x) 191 } 192 193 type itimerval struct { 194 it_interval timeval 195 it_value timeval 196 } 197 198 type portevent struct { 199 portev_events int32 200 portev_source uint16 201 portev_pad uint16 202 portev_object uint64 203 portev_user *byte 204 } 205 206 type pthread uint32 207 type pthreadattr struct { 208 __pthread_attrp *byte 209 } 210 211 type stat struct { 212 st_dev uint64 213 st_ino uint64 214 st_mode uint32 215 st_nlink uint32 216 st_uid uint32 217 st_gid uint32 218 st_rdev uint64 219 st_size int64 220 st_atim timespec 221 st_mtim timespec 222 st_ctim timespec 223 st_blksize int32 224 pad_cgo_0 [4]byte 225 st_blocks int64 226 st_fstype [16]int8 227 } 228 229 const ( 230 _REG_CCR = 0x0 231 _REG_PC = 0x1 232 _REG_nPC = 0x2 233 _REG_G1 = 0x4 234 _REG_G2 = 0x5 235 _REG_G3 = 0x6 236 _REG_G4 = 0x7 237 _REG_G5 = 0x8 238 _REG_G6 = 0x9 239 _REG_G7 = 0xa 240 _REG_O0 = 0xb 241 _REG_O1 = 0xc 242 _REG_O2 = 0xd 243 _REG_O3 = 0xe 244 _REG_O4 = 0xf 245 _REG_O5 = 0x10 246 _REG_O6 = 0x11 247 _REG_O7 = 0x12 248 )