Source file
src/runtime/defs1_netbsd_arm64.go
1
2
3
4 package runtime
5
6 const (
7 _EINTR = 0x4
8 _EFAULT = 0xe
9 _EAGAIN = 0x23
10
11 _O_NONBLOCK = 0x4
12 _O_CLOEXEC = 0x400000
13
14 _PROT_NONE = 0x0
15 _PROT_READ = 0x1
16 _PROT_WRITE = 0x2
17 _PROT_EXEC = 0x4
18
19 _MAP_ANON = 0x1000
20 _MAP_PRIVATE = 0x2
21 _MAP_FIXED = 0x10
22
23 _MADV_FREE = 0x6
24
25 _SA_SIGINFO = 0x40
26 _SA_RESTART = 0x2
27 _SA_ONSTACK = 0x1
28
29 _SIGHUP = 0x1
30 _SIGINT = 0x2
31 _SIGQUIT = 0x3
32 _SIGILL = 0x4
33 _SIGTRAP = 0x5
34 _SIGABRT = 0x6
35 _SIGEMT = 0x7
36 _SIGFPE = 0x8
37 _SIGKILL = 0x9
38 _SIGBUS = 0xa
39 _SIGSEGV = 0xb
40 _SIGSYS = 0xc
41 _SIGPIPE = 0xd
42 _SIGALRM = 0xe
43 _SIGTERM = 0xf
44 _SIGURG = 0x10
45 _SIGSTOP = 0x11
46 _SIGTSTP = 0x12
47 _SIGCONT = 0x13
48 _SIGCHLD = 0x14
49 _SIGTTIN = 0x15
50 _SIGTTOU = 0x16
51 _SIGIO = 0x17
52 _SIGXCPU = 0x18
53 _SIGXFSZ = 0x19
54 _SIGVTALRM = 0x1a
55 _SIGPROF = 0x1b
56 _SIGWINCH = 0x1c
57 _SIGINFO = 0x1d
58 _SIGUSR1 = 0x1e
59 _SIGUSR2 = 0x1f
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 _EV_ADD = 0x1
82 _EV_DELETE = 0x2
83 _EV_CLEAR = 0x20
84 _EV_RECEIPT = 0
85 _EV_ERROR = 0x4000
86 _EV_EOF = 0x8000
87 _EVFILT_READ = 0x0
88 _EVFILT_WRITE = 0x1
89 )
90
91 type sigset struct {
92 __bits [4]uint32
93 }
94
95 type siginfo struct {
96 _signo int32
97 _code int32
98 _errno int32
99 _reason uintptr
100 _reasonx [16]byte
101 }
102
103 type stackt struct {
104 ss_sp uintptr
105 ss_size uintptr
106 ss_flags int32
107 }
108
109 type timespec struct {
110 tv_sec int64
111 tv_nsec int64
112 }
113
114 func (ts *timespec) setNsec(ns int64) {
115 ts.tv_sec = ns / 1e9
116 ts.tv_nsec = ns % 1e9
117 }
118
119 type timeval struct {
120 tv_sec int64
121 tv_usec int32
122 _ [4]byte
123 }
124
125 func (tv *timeval) set_usec(x int32) {
126 tv.tv_usec = x
127 }
128
129 type itimerval struct {
130 it_interval timeval
131 it_value timeval
132 }
133
134 type mcontextt struct {
135 __gregs [35]uint64
136 __fregs [4160]byte
137 _ [8]uint64
138 }
139
140 type ucontextt struct {
141 uc_flags uint32
142 uc_link *ucontextt
143 uc_sigmask sigset
144 uc_stack stackt
145 _ [4]byte
146 uc_mcontext mcontextt
147 __uc_pad [2]int32
148 }
149
150 type keventt struct {
151 ident uint64
152 filter uint32
153 flags uint32
154 fflags uint32
155 pad_cgo_0 [4]byte
156 data int64
157 udata *byte
158 }
159
160
161
162
163 const (
164 _REG_X0 = 0
165 _REG_X1 = 1
166 _REG_X2 = 2
167 _REG_X3 = 3
168 _REG_X4 = 4
169 _REG_X5 = 5
170 _REG_X6 = 6
171 _REG_X7 = 7
172 _REG_X8 = 8
173 _REG_X9 = 9
174 _REG_X10 = 10
175 _REG_X11 = 11
176 _REG_X12 = 12
177 _REG_X13 = 13
178 _REG_X14 = 14
179 _REG_X15 = 15
180 _REG_X16 = 16
181 _REG_X17 = 17
182 _REG_X18 = 18
183 _REG_X19 = 19
184 _REG_X20 = 20
185 _REG_X21 = 21
186 _REG_X22 = 22
187 _REG_X23 = 23
188 _REG_X24 = 24
189 _REG_X25 = 25
190 _REG_X26 = 26
191 _REG_X27 = 27
192 _REG_X28 = 28
193 _REG_X29 = 29
194 _REG_X30 = 30
195 _REG_X31 = 31
196 _REG_ELR = 32
197 _REG_SPSR = 33
198 _REG_TPIDR = 34
199 )
200
View as plain text