Source file
src/runtime/defs_freebsd_arm.go
1
2
3
4 package runtime
5
6 import "unsafe"
7
8 const (
9 _NBBY = 0x8
10 _CTL_MAXNAME = 0x18
11 _CPU_LEVEL_WHICH = 0x3
12 _CPU_WHICH_PID = 0x2
13 )
14
15 const (
16 _EINTR = 0x4
17 _EFAULT = 0xe
18 _EAGAIN = 0x23
19 _ENOSYS = 0x4e
20 _ETIMEDOUT = 0x3c
21
22 _O_NONBLOCK = 0x4
23 _O_CLOEXEC = 0x100000
24
25 _PROT_NONE = 0x0
26 _PROT_READ = 0x1
27 _PROT_WRITE = 0x2
28 _PROT_EXEC = 0x4
29
30 _MAP_ANON = 0x1000
31 _MAP_SHARED = 0x1
32 _MAP_PRIVATE = 0x2
33 _MAP_FIXED = 0x10
34
35 _MADV_FREE = 0x5
36
37 _SA_SIGINFO = 0x40
38 _SA_RESTART = 0x2
39 _SA_ONSTACK = 0x1
40
41 _CLOCK_MONOTONIC = 0x4
42 _CLOCK_REALTIME = 0x0
43
44 _UMTX_OP_WAIT_UINT = 0xb
45 _UMTX_OP_WAIT_UINT_PRIVATE = 0xf
46 _UMTX_OP_WAKE = 0x3
47 _UMTX_OP_WAKE_PRIVATE = 0x10
48
49 _SIGHUP = 0x1
50 _SIGINT = 0x2
51 _SIGQUIT = 0x3
52 _SIGILL = 0x4
53 _SIGTRAP = 0x5
54 _SIGABRT = 0x6
55 _SIGEMT = 0x7
56 _SIGFPE = 0x8
57 _SIGKILL = 0x9
58 _SIGBUS = 0xa
59 _SIGSEGV = 0xb
60 _SIGSYS = 0xc
61 _SIGPIPE = 0xd
62 _SIGALRM = 0xe
63 _SIGTERM = 0xf
64 _SIGURG = 0x10
65 _SIGSTOP = 0x11
66 _SIGTSTP = 0x12
67 _SIGCONT = 0x13
68 _SIGCHLD = 0x14
69 _SIGTTIN = 0x15
70 _SIGTTOU = 0x16
71 _SIGIO = 0x17
72 _SIGXCPU = 0x18
73 _SIGXFSZ = 0x19
74 _SIGVTALRM = 0x1a
75 _SIGPROF = 0x1b
76 _SIGWINCH = 0x1c
77 _SIGINFO = 0x1d
78 _SIGUSR1 = 0x1e
79 _SIGUSR2 = 0x1f
80
81 _FPE_INTDIV = 0x2
82 _FPE_INTOVF = 0x1
83 _FPE_FLTDIV = 0x3
84 _FPE_FLTOVF = 0x4
85 _FPE_FLTUND = 0x5
86 _FPE_FLTRES = 0x6
87 _FPE_FLTINV = 0x7
88 _FPE_FLTSUB = 0x8
89
90 _BUS_ADRALN = 0x1
91 _BUS_ADRERR = 0x2
92 _BUS_OBJERR = 0x3
93
94 _SEGV_MAPERR = 0x1
95 _SEGV_ACCERR = 0x2
96
97 _ITIMER_REAL = 0x0
98 _ITIMER_VIRTUAL = 0x1
99 _ITIMER_PROF = 0x2
100
101 _EV_ADD = 0x1
102 _EV_DELETE = 0x2
103 _EV_CLEAR = 0x20
104 _EV_RECEIPT = 0x40
105 _EV_ERROR = 0x4000
106 _EV_EOF = 0x8000
107 _EVFILT_READ = -0x1
108 _EVFILT_WRITE = -0x2
109 )
110
111 type rtprio struct {
112 _type uint16
113 prio uint16
114 }
115
116 type thrparam struct {
117 start_func uintptr
118 arg unsafe.Pointer
119 stack_base uintptr
120 stack_size uintptr
121 tls_base unsafe.Pointer
122 tls_size uintptr
123 child_tid unsafe.Pointer
124 parent_tid *int32
125 flags int32
126 rtp *rtprio
127 spare [3]uintptr
128 }
129
130 type thread int32
131
132 type sigset struct {
133 __bits [4]uint32
134 }
135
136 type stackt struct {
137 ss_sp uintptr
138 ss_size uintptr
139 ss_flags int32
140 }
141
142 type siginfo struct {
143 si_signo int32
144 si_errno int32
145 si_code int32
146 si_pid int32
147 si_uid uint32
148 si_status int32
149 si_addr uintptr
150 si_value [4]byte
151 _reason [32]byte
152 }
153
154 type mcontext struct {
155 __gregs [17]uint32
156 __fpu [140]byte
157 }
158
159 type ucontext struct {
160 uc_sigmask sigset
161 uc_mcontext mcontext
162 uc_link *ucontext
163 uc_stack stackt
164 uc_flags int32
165 __spare__ [4]int32
166 }
167
168 type timespec struct {
169 tv_sec int64
170 tv_nsec int32
171 pad_cgo_0 [4]byte
172 }
173
174
175 func (ts *timespec) setNsec(ns int64) {
176 ts.tv_sec = int64(timediv(ns, 1e9, &ts.tv_nsec))
177 }
178
179 type timeval struct {
180 tv_sec int64
181 tv_usec int32
182 pad_cgo_0 [4]byte
183 }
184
185 func (tv *timeval) set_usec(x int32) {
186 tv.tv_usec = x
187 }
188
189 type itimerval struct {
190 it_interval timeval
191 it_value timeval
192 }
193
194 type umtx_time struct {
195 _timeout timespec
196 _flags uint32
197 _clockid uint32
198 }
199
200 type keventt struct {
201 ident uint32
202 filter int16
203 flags uint16
204 fflags uint32
205 data int32
206 udata *byte
207 }
208
209 type bintime struct {
210 sec int64
211 frac uint64
212 }
213
214 type vdsoTimehands struct {
215 algo uint32
216 gen uint32
217 scale uint64
218 offset_count uint32
219 counter_mask uint32
220 offset bintime
221 boottime bintime
222 physical uint32
223 res [7]uint32
224 }
225
226 type vdsoTimekeep struct {
227 ver uint32
228 enabled uint32
229 current uint32
230 pad_cgo_0 [4]byte
231 }
232
233 const (
234 _VDSO_TK_VER_CURR = 0x1
235
236 vdsoTimehandsSize = 0x58
237 vdsoTimekeepSize = 0x10
238 )
239
View as plain text