github.com/geraldss/go/src@v0.0.0-20210511222824-ac7d0ebfc235/runtime/defs1_netbsd_arm.go (about) 1 // created by cgo -cdefs and then converted to Go 2 // cgo -cdefs defs_netbsd.go defs_netbsd_arm.go 3 4 package runtime 5 6 const ( 7 _EINTR = 0x4 8 _EFAULT = 0xe 9 _EAGAIN = 0x23 10 _ENOSYS = 0x4e 11 12 _O_NONBLOCK = 0x4 13 _O_CLOEXEC = 0x400000 14 15 _PROT_NONE = 0x0 16 _PROT_READ = 0x1 17 _PROT_WRITE = 0x2 18 _PROT_EXEC = 0x4 19 20 _MAP_ANON = 0x1000 21 _MAP_PRIVATE = 0x2 22 _MAP_FIXED = 0x10 23 24 _MADV_FREE = 0x6 25 26 _SA_SIGINFO = 0x40 27 _SA_RESTART = 0x2 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 = 0x10 46 _SIGSTOP = 0x11 47 _SIGTSTP = 0x12 48 _SIGCONT = 0x13 49 _SIGCHLD = 0x14 50 _SIGTTIN = 0x15 51 _SIGTTOU = 0x16 52 _SIGIO = 0x17 53 _SIGXCPU = 0x18 54 _SIGXFSZ = 0x19 55 _SIGVTALRM = 0x1a 56 _SIGPROF = 0x1b 57 _SIGWINCH = 0x1c 58 _SIGINFO = 0x1d 59 _SIGUSR1 = 0x1e 60 _SIGUSR2 = 0x1f 61 62 _FPE_INTDIV = 0x1 63 _FPE_INTOVF = 0x2 64 _FPE_FLTDIV = 0x3 65 _FPE_FLTOVF = 0x4 66 _FPE_FLTUND = 0x5 67 _FPE_FLTRES = 0x6 68 _FPE_FLTINV = 0x7 69 _FPE_FLTSUB = 0x8 70 71 _BUS_ADRALN = 0x1 72 _BUS_ADRERR = 0x2 73 _BUS_OBJERR = 0x3 74 75 _SEGV_MAPERR = 0x1 76 _SEGV_ACCERR = 0x2 77 78 _ITIMER_REAL = 0x0 79 _ITIMER_VIRTUAL = 0x1 80 _ITIMER_PROF = 0x2 81 82 _EV_ADD = 0x1 83 _EV_DELETE = 0x2 84 _EV_CLEAR = 0x20 85 _EV_RECEIPT = 0 86 _EV_ERROR = 0x4000 87 _EV_EOF = 0x8000 88 _EVFILT_READ = 0x0 89 _EVFILT_WRITE = 0x1 90 ) 91 92 type sigset struct { 93 __bits [4]uint32 94 } 95 96 type siginfo struct { 97 _signo int32 98 _code int32 99 _errno int32 100 _reason uintptr 101 _reasonx [16]byte 102 } 103 104 type stackt struct { 105 ss_sp uintptr 106 ss_size uintptr 107 ss_flags int32 108 } 109 110 type timespec struct { 111 tv_sec int64 112 tv_nsec int32 113 _ [4]byte // EABI 114 } 115 116 //go:nosplit 117 func (ts *timespec) setNsec(ns int64) { 118 ts.tv_sec = int64(timediv(ns, 1e9, &ts.tv_nsec)) 119 } 120 121 type timeval struct { 122 tv_sec int64 123 tv_usec int32 124 _ [4]byte // EABI 125 } 126 127 func (tv *timeval) set_usec(x int32) { 128 tv.tv_usec = x 129 } 130 131 type itimerval struct { 132 it_interval timeval 133 it_value timeval 134 } 135 136 type mcontextt struct { 137 __gregs [17]uint32 138 _ [4]byte // EABI 139 __fpu [272]byte // EABI 140 _mc_tlsbase uint32 141 _ [4]byte // EABI 142 } 143 144 type ucontextt struct { 145 uc_flags uint32 146 uc_link *ucontextt 147 uc_sigmask sigset 148 uc_stack stackt 149 _ [4]byte // EABI 150 uc_mcontext mcontextt 151 __uc_pad [2]int32 152 } 153 154 type keventt struct { 155 ident uint32 156 filter uint32 157 flags uint32 158 fflags uint32 159 data int64 160 udata *byte 161 _ [4]byte // EABI 162 } 163 164 // created by cgo -cdefs and then converted to Go 165 // cgo -cdefs defs_netbsd.go defs_netbsd_arm.go 166 167 const ( 168 _REG_R0 = 0x0 169 _REG_R1 = 0x1 170 _REG_R2 = 0x2 171 _REG_R3 = 0x3 172 _REG_R4 = 0x4 173 _REG_R5 = 0x5 174 _REG_R6 = 0x6 175 _REG_R7 = 0x7 176 _REG_R8 = 0x8 177 _REG_R9 = 0x9 178 _REG_R10 = 0xa 179 _REG_R11 = 0xb 180 _REG_R12 = 0xc 181 _REG_R13 = 0xd 182 _REG_R14 = 0xe 183 _REG_R15 = 0xf 184 _REG_CPSR = 0x10 185 )