github.com/comwrg/go/src@v0.0.0-20220319063731-c238d0440370/runtime/defs1_netbsd_arm64.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 int64 113 } 114 115 func (ts *timespec) setNsec(ns int64) { 116 ts.tv_sec = ns / 1e9 117 ts.tv_nsec = ns % 1e9 118 } 119 120 type timeval struct { 121 tv_sec int64 122 tv_usec int32 123 _ [4]byte // EABI 124 } 125 126 func (tv *timeval) set_usec(x int32) { 127 tv.tv_usec = x 128 } 129 130 type itimerval struct { 131 it_interval timeval 132 it_value timeval 133 } 134 135 type mcontextt struct { 136 __gregs [35]uint64 137 __fregs [4160]byte // _NFREG * 128 + 32 + 32 138 _ [8]uint64 // future use 139 } 140 141 type ucontextt struct { 142 uc_flags uint32 143 uc_link *ucontextt 144 uc_sigmask sigset 145 uc_stack stackt 146 _ [4]byte // EABI 147 uc_mcontext mcontextt 148 __uc_pad [2]int32 149 } 150 151 type keventt struct { 152 ident uint64 153 filter uint32 154 flags uint32 155 fflags uint32 156 pad_cgo_0 [4]byte 157 data int64 158 udata *byte 159 } 160 161 // created by cgo -cdefs and then converted to Go 162 // cgo -cdefs defs_netbsd.go defs_netbsd_arm.go 163 164 const ( 165 _REG_X0 = 0 166 _REG_X1 = 1 167 _REG_X2 = 2 168 _REG_X3 = 3 169 _REG_X4 = 4 170 _REG_X5 = 5 171 _REG_X6 = 6 172 _REG_X7 = 7 173 _REG_X8 = 8 174 _REG_X9 = 9 175 _REG_X10 = 10 176 _REG_X11 = 11 177 _REG_X12 = 12 178 _REG_X13 = 13 179 _REG_X14 = 14 180 _REG_X15 = 15 181 _REG_X16 = 16 182 _REG_X17 = 17 183 _REG_X18 = 18 184 _REG_X19 = 19 185 _REG_X20 = 20 186 _REG_X21 = 21 187 _REG_X22 = 22 188 _REG_X23 = 23 189 _REG_X24 = 24 190 _REG_X25 = 25 191 _REG_X26 = 26 192 _REG_X27 = 27 193 _REG_X28 = 28 194 _REG_X29 = 29 195 _REG_X30 = 30 196 _REG_X31 = 31 197 _REG_ELR = 32 198 _REG_SPSR = 33 199 _REG_TPIDR = 34 200 )