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