Source file
src/syscall/ztypes_netbsd_arm.go
1
2
3
4 package syscall
5
6 const (
7 sizeofPtr = 0x4
8 sizeofShort = 0x2
9 sizeofInt = 0x4
10 sizeofLong = 0x4
11 sizeofLongLong = 0x8
12 )
13
14 type (
15 _C_short int16
16 _C_int int32
17 _C_long int32
18 _C_long_long int64
19 )
20
21 type Timespec struct {
22 Sec int64
23 Nsec int32
24 Pad_cgo_0 [4]byte
25 }
26
27 type Timeval struct {
28 Sec int64
29 Usec int32
30 Pad_cgo_0 [4]byte
31 }
32
33 type Rusage struct {
34 Utime Timeval
35 Stime Timeval
36 Maxrss int32
37 Ixrss int32
38 Idrss int32
39 Isrss int32
40 Minflt int32
41 Majflt int32
42 Nswap int32
43 Inblock int32
44 Oublock int32
45 Msgsnd int32
46 Msgrcv int32
47 Nsignals int32
48 Nvcsw int32
49 Nivcsw int32
50 }
51
52 type Rlimit struct {
53 Cur uint64
54 Max uint64
55 }
56
57 type _Gid_t uint32
58
59 type Stat_t struct {
60 Dev uint64
61 Mode uint32
62 Pad_cgo_0 [4]byte
63 Ino uint64
64 Nlink uint32
65 Uid uint32
66 Gid uint32
67 Pad_cgo_1 [4]byte
68 Rdev uint64
69 Atimespec Timespec
70 Mtimespec Timespec
71 Ctimespec Timespec
72 Birthtimespec Timespec
73 Size int64
74 Blocks int64
75 Blksize uint32
76 Flags uint32
77 Gen uint32
78 Spare [2]uint32
79 Pad_cgo_2 [4]byte
80 }
81
82 type Statfs_t [0]byte
83
84 type Flock_t struct {
85 Start int64
86 Len int64
87 Pid int32
88 Type int16
89 Whence int16
90 }
91
92 type Dirent struct {
93 Fileno uint64
94 Reclen uint16
95 Namlen uint16
96 Type uint8
97 Name [512]int8
98 Pad_cgo_0 [3]byte
99 }
100
101 type Fsid struct {
102 X__fsid_val [2]int32
103 }
104
105 const (
106 pathMax = 0x400
107 )
108
109 type RawSockaddrInet4 struct {
110 Len uint8
111 Family uint8
112 Port uint16
113 Addr [4]byte
114 Zero [8]int8
115 }
116
117 type RawSockaddrInet6 struct {
118 Len uint8
119 Family uint8
120 Port uint16
121 Flowinfo uint32
122 Addr [16]byte
123 Scope_id uint32
124 }
125
126 type RawSockaddrUnix struct {
127 Len uint8
128 Family uint8
129 Path [104]int8
130 }
131
132 type RawSockaddrDatalink struct {
133 Len uint8
134 Family uint8
135 Index uint16
136 Type uint8
137 Nlen uint8
138 Alen uint8
139 Slen uint8
140 Data [12]int8
141 }
142
143 type RawSockaddr struct {
144 Len uint8
145 Family uint8
146 Data [14]int8
147 }
148
149 type RawSockaddrAny struct {
150 Addr RawSockaddr
151 Pad [92]int8
152 }
153
154 type _Socklen uint32
155
156 type Linger struct {
157 Onoff int32
158 Linger int32
159 }
160
161 type Iovec struct {
162 Base *byte
163 Len uint32
164 }
165
166 type IPMreq struct {
167 Multiaddr [4]byte
168 Interface [4]byte
169 }
170
171 type IPv6Mreq struct {
172 Multiaddr [16]byte
173 Interface uint32
174 }
175
176 type Msghdr struct {
177 Name *byte
178 Namelen uint32
179 Iov *Iovec
180 Iovlen int32
181 Control *byte
182 Controllen uint32
183 Flags int32
184 }
185
186 type Cmsghdr struct {
187 Len uint32
188 Level int32
189 Type int32
190 }
191
192 type Inet6Pktinfo struct {
193 Addr [16]byte
194 Ifindex uint32
195 }
196
197 type IPv6MTUInfo struct {
198 Addr RawSockaddrInet6
199 Mtu uint32
200 }
201
202 type ICMPv6Filter struct {
203 Filt [8]uint32
204 }
205
206 const (
207 SizeofSockaddrInet4 = 0x10
208 SizeofSockaddrInet6 = 0x1c
209 SizeofSockaddrAny = 0x6c
210 SizeofSockaddrUnix = 0x6a
211 SizeofSockaddrDatalink = 0x14
212 SizeofLinger = 0x8
213 SizeofIPMreq = 0x8
214 SizeofIPv6Mreq = 0x14
215 SizeofMsghdr = 0x1c
216 SizeofCmsghdr = 0xc
217 SizeofInet6Pktinfo = 0x14
218 SizeofIPv6MTUInfo = 0x20
219 SizeofICMPv6Filter = 0x20
220 )
221
222 const (
223 PTRACE_TRACEME = 0x0
224 PTRACE_CONT = 0x7
225 PTRACE_KILL = 0x8
226 )
227
228 type Kevent_t struct {
229 Ident uint32
230 Filter uint32
231 Flags uint32
232 Fflags uint32
233 Data int64
234 Udata int32
235 Pad_cgo_0 [4]byte
236 }
237
238 type FdSet struct {
239 Bits [8]uint32
240 }
241
242 const (
243 SizeofIfMsghdr = 0x98
244 SizeofIfData = 0x88
245 SizeofIfaMsghdr = 0x18
246 SizeofIfAnnounceMsghdr = 0x18
247 SizeofRtMsghdr = 0x78
248 SizeofRtMetrics = 0x50
249 )
250
251 type IfMsghdr struct {
252 Msglen uint16
253 Version uint8
254 Type uint8
255 Addrs int32
256 Flags int32
257 Index uint16
258 Pad_cgo_0 [2]byte
259 Data IfData
260 }
261
262 type IfData struct {
263 Type uint8
264 Addrlen uint8
265 Hdrlen uint8
266 Pad_cgo_0 [1]byte
267 Link_state int32
268 Mtu uint64
269 Metric uint64
270 Baudrate uint64
271 Ipackets uint64
272 Ierrors uint64
273 Opackets uint64
274 Oerrors uint64
275 Collisions uint64
276 Ibytes uint64
277 Obytes uint64
278 Imcasts uint64
279 Omcasts uint64
280 Iqdrops uint64
281 Noproto uint64
282 Lastchange Timespec
283 }
284
285 type IfaMsghdr struct {
286 Msglen uint16
287 Version uint8
288 Type uint8
289 Addrs int32
290 Flags int32
291 Metric int32
292 Index uint16
293 Pad_cgo_0 [6]byte
294 }
295
296 type IfAnnounceMsghdr struct {
297 Msglen uint16
298 Version uint8
299 Type uint8
300 Index uint16
301 Name [16]int8
302 What uint16
303 }
304
305 type RtMsghdr struct {
306 Msglen uint16
307 Version uint8
308 Type uint8
309 Index uint16
310 Pad_cgo_0 [2]byte
311 Flags int32
312 Addrs int32
313 Pid int32
314 Seq int32
315 Errno int32
316 Use int32
317 Inits int32
318 Pad_cgo_1 [4]byte
319 Rmx RtMetrics
320 }
321
322 type RtMetrics struct {
323 Locks uint64
324 Mtu uint64
325 Hopcount uint64
326 Recvpipe uint64
327 Sendpipe uint64
328 Ssthresh uint64
329 Rtt uint64
330 Rttvar uint64
331 Expire int64
332 Pksent int64
333 }
334
335 type Mclpool [0]byte
336
337 const (
338 SizeofBpfVersion = 0x4
339 SizeofBpfStat = 0x80
340 SizeofBpfProgram = 0x8
341 SizeofBpfInsn = 0x8
342 SizeofBpfHdr = 0x14
343 )
344
345 type BpfVersion struct {
346 Major uint16
347 Minor uint16
348 }
349
350 type BpfStat struct {
351 Recv uint64
352 Drop uint64
353 Capt uint64
354 Padding [13]uint64
355 }
356
357 type BpfProgram struct {
358 Len uint32
359 Insns *BpfInsn
360 }
361
362 type BpfInsn struct {
363 Code uint16
364 Jt uint8
365 Jf uint8
366 K uint32
367 }
368
369 type BpfHdr struct {
370 Tstamp BpfTimeval
371 Caplen uint32
372 Datalen uint32
373 Hdrlen uint16
374 Pad_cgo_0 [2]byte
375 }
376
377 type BpfTimeval struct {
378 Sec int32
379 Usec int32
380 }
381
382 const (
383 _AT_FDCWD = -0x64
384 )
385
386 type Termios struct {
387 Iflag uint32
388 Oflag uint32
389 Cflag uint32
390 Lflag uint32
391 Cc [20]uint8
392 Ispeed int32
393 Ospeed int32
394 }
395
396 type Sysctlnode struct {
397 Flags uint32
398 Num int32
399 Name [32]int8
400 Ver uint32
401 X__rsvd uint32
402 Un [16]byte
403 X_sysctl_size [8]byte
404 X_sysctl_func [8]byte
405 X_sysctl_parent [8]byte
406 X_sysctl_desc [8]byte
407 }
408
409 type sigset struct {
410 X__bits [4]uint32
411 }
412
View as plain text