...
Source file
src/syscall/ztypes_freebsd_arm.go
Documentation: syscall
1
2
3
4
5
6 package syscall
7
8 const (
9 sizeofPtr = 0x4
10 sizeofShort = 0x2
11 sizeofInt = 0x4
12 sizeofLong = 0x4
13 sizeofLongLong = 0x8
14 )
15
16 type (
17 _C_short int16
18 _C_int int32
19 _C_long int32
20 _C_long_long int64
21 )
22
23 type Timespec struct {
24 Sec int64
25 Nsec int32
26 Pad_cgo_0 [4]byte
27 }
28
29 type Timeval struct {
30 Sec int64
31 Usec int32
32 Pad_cgo_0 [4]byte
33 }
34
35 type Rusage struct {
36 Utime Timeval
37 Stime Timeval
38 Maxrss int32
39 Ixrss int32
40 Idrss int32
41 Isrss int32
42 Minflt int32
43 Majflt int32
44 Nswap int32
45 Inblock int32
46 Oublock int32
47 Msgsnd int32
48 Msgrcv int32
49 Nsignals int32
50 Nvcsw int32
51 Nivcsw int32
52 }
53
54 type Rlimit struct {
55 Cur int64
56 Max int64
57 }
58
59 type _Gid_t uint32
60
61 const (
62 S_IFMT = 0xf000
63 S_IFIFO = 0x1000
64 S_IFCHR = 0x2000
65 S_IFDIR = 0x4000
66 S_IFBLK = 0x6000
67 S_IFREG = 0x8000
68 S_IFLNK = 0xa000
69 S_IFSOCK = 0xc000
70 S_ISUID = 0x800
71 S_ISGID = 0x400
72 S_ISVTX = 0x200
73 S_IRUSR = 0x100
74 S_IWUSR = 0x80
75 S_IXUSR = 0x40
76 )
77
78 type Stat_t struct {
79 Dev uint32
80 Ino uint32
81 Mode uint16
82 Nlink uint16
83 Uid uint32
84 Gid uint32
85 Rdev uint32
86 Atimespec Timespec
87 Mtimespec Timespec
88 Ctimespec Timespec
89 Size int64
90 Blocks int64
91 Blksize uint32
92 Flags uint32
93 Gen uint32
94 Lspare int32
95 Birthtimespec Timespec
96 }
97
98 type Statfs_t struct {
99 Version uint32
100 Type uint32
101 Flags uint64
102 Bsize uint64
103 Iosize uint64
104 Blocks uint64
105 Bfree uint64
106 Bavail int64
107 Files uint64
108 Ffree int64
109 Syncwrites uint64
110 Asyncwrites uint64
111 Syncreads uint64
112 Asyncreads uint64
113 Spare [10]uint64
114 Namemax uint32
115 Owner uint32
116 Fsid Fsid
117 Charspare [80]int8
118 Fstypename [16]int8
119 Mntfromname [88]int8
120 Mntonname [88]int8
121 }
122
123 type Flock_t struct {
124 Start int64
125 Len int64
126 Pid int32
127 Type int16
128 Whence int16
129 Sysid int32
130 Pad_cgo_0 [4]byte
131 }
132
133 type Dirent struct {
134 Fileno uint32
135 Reclen uint16
136 Type uint8
137 Namlen uint8
138 Name [256]int8
139 }
140
141 type Fsid struct {
142 Val [2]int32
143 }
144
145 const (
146 pathMax = 0x400
147 )
148
149 type RawSockaddrInet4 struct {
150 Len uint8
151 Family uint8
152 Port uint16
153 Addr [4]byte
154 Zero [8]int8
155 }
156
157 type RawSockaddrInet6 struct {
158 Len uint8
159 Family uint8
160 Port uint16
161 Flowinfo uint32
162 Addr [16]byte
163 Scope_id uint32
164 }
165
166 type RawSockaddrUnix struct {
167 Len uint8
168 Family uint8
169 Path [104]int8
170 }
171
172 type RawSockaddrDatalink struct {
173 Len uint8
174 Family uint8
175 Index uint16
176 Type uint8
177 Nlen uint8
178 Alen uint8
179 Slen uint8
180 Data [46]int8
181 }
182
183 type RawSockaddr struct {
184 Len uint8
185 Family uint8
186 Data [14]int8
187 }
188
189 type RawSockaddrAny struct {
190 Addr RawSockaddr
191 Pad [92]int8
192 }
193
194 type _Socklen uint32
195
196 type Linger struct {
197 Onoff int32
198 Linger int32
199 }
200
201 type Iovec struct {
202 Base *byte
203 Len uint32
204 }
205
206 type IPMreq struct {
207 Multiaddr [4]byte
208 Interface [4]byte
209 }
210
211 type IPMreqn struct {
212 Multiaddr [4]byte
213 Address [4]byte
214 Ifindex int32
215 }
216
217 type IPv6Mreq struct {
218 Multiaddr [16]byte
219 Interface uint32
220 }
221
222 type Msghdr struct {
223 Name *byte
224 Namelen uint32
225 Iov *Iovec
226 Iovlen int32
227 Control *byte
228 Controllen uint32
229 Flags int32
230 }
231
232 type Cmsghdr struct {
233 Len uint32
234 Level int32
235 Type int32
236 }
237
238 type Inet6Pktinfo struct {
239 Addr [16]byte
240 Ifindex uint32
241 }
242
243 type IPv6MTUInfo struct {
244 Addr RawSockaddrInet6
245 Mtu uint32
246 }
247
248 type ICMPv6Filter struct {
249 Filt [8]uint32
250 }
251
252 const (
253 SizeofSockaddrInet4 = 0x10
254 SizeofSockaddrInet6 = 0x1c
255 SizeofSockaddrAny = 0x6c
256 SizeofSockaddrUnix = 0x6a
257 SizeofSockaddrDatalink = 0x36
258 SizeofLinger = 0x8
259 SizeofIPMreq = 0x8
260 SizeofIPMreqn = 0xc
261 SizeofIPv6Mreq = 0x14
262 SizeofMsghdr = 0x1c
263 SizeofCmsghdr = 0xc
264 SizeofInet6Pktinfo = 0x14
265 SizeofIPv6MTUInfo = 0x20
266 SizeofICMPv6Filter = 0x20
267 )
268
269 const (
270 PTRACE_TRACEME = 0x0
271 PTRACE_CONT = 0x7
272 PTRACE_KILL = 0x8
273 )
274
275 type Kevent_t struct {
276 Ident uint32
277 Filter int16
278 Flags uint16
279 Fflags uint32
280 Data int32
281 Udata *byte
282 }
283
284 type FdSet struct {
285 X__fds_bits [32]uint32
286 }
287
288 const (
289 sizeofIfMsghdr = 0x70
290 SizeofIfMsghdr = 0x70
291 sizeofIfData = 0x60
292 SizeofIfData = 0x60
293 SizeofIfaMsghdr = 0x14
294 SizeofIfmaMsghdr = 0x10
295 SizeofIfAnnounceMsghdr = 0x18
296 SizeofRtMsghdr = 0x5c
297 SizeofRtMetrics = 0x38
298 )
299
300 type ifMsghdr struct {
301 Msglen uint16
302 Version uint8
303 Type uint8
304 Addrs int32
305 Flags int32
306 Index uint16
307 Pad_cgo_0 [2]byte
308 Data ifData
309 }
310
311 type IfMsghdr struct {
312 Msglen uint16
313 Version uint8
314 Type uint8
315 Addrs int32
316 Flags int32
317 Index uint16
318 Pad_cgo_0 [2]byte
319 Data IfData
320 }
321
322 type ifData struct {
323 Type uint8
324 Physical uint8
325 Addrlen uint8
326 Hdrlen uint8
327 Link_state uint8
328 Vhid uint8
329 Baudrate_pf uint8
330 Datalen uint8
331 Mtu uint32
332 Metric uint32
333 Baudrate uint32
334 Ipackets uint32
335 Ierrors uint32
336 Opackets uint32
337 Oerrors uint32
338 Collisions uint32
339 Ibytes uint32
340 Obytes uint32
341 Imcasts uint32
342 Omcasts uint32
343 Iqdrops uint32
344 Noproto uint32
345 Hwassist uint64
346 Epoch int64
347 Lastchange Timeval
348 }
349
350 type IfData struct {
351 Type uint8
352 Physical uint8
353 Addrlen uint8
354 Hdrlen uint8
355 Link_state uint8
356 Spare_char1 uint8
357 Spare_char2 uint8
358 Datalen uint8
359 Mtu uint32
360 Metric uint32
361 Baudrate uint32
362 Ipackets uint32
363 Ierrors uint32
364 Opackets uint32
365 Oerrors uint32
366 Collisions uint32
367 Ibytes uint32
368 Obytes uint32
369 Imcasts uint32
370 Omcasts uint32
371 Iqdrops uint32
372 Noproto uint32
373 Hwassist uint32
374 Pad_cgo_0 [4]byte
375 Epoch int64
376 Lastchange Timeval
377 }
378
379 type IfaMsghdr struct {
380 Msglen uint16
381 Version uint8
382 Type uint8
383 Addrs int32
384 Flags int32
385 Index uint16
386 Pad_cgo_0 [2]byte
387 Metric int32
388 }
389
390 type IfmaMsghdr struct {
391 Msglen uint16
392 Version uint8
393 Type uint8
394 Addrs int32
395 Flags int32
396 Index uint16
397 Pad_cgo_0 [2]byte
398 }
399
400 type IfAnnounceMsghdr struct {
401 Msglen uint16
402 Version uint8
403 Type uint8
404 Index uint16
405 Name [16]int8
406 What uint16
407 }
408
409 type RtMsghdr struct {
410 Msglen uint16
411 Version uint8
412 Type uint8
413 Index uint16
414 Pad_cgo_0 [2]byte
415 Flags int32
416 Addrs int32
417 Pid int32
418 Seq int32
419 Errno int32
420 Fmask int32
421 Inits uint32
422 Rmx RtMetrics
423 }
424
425 type RtMetrics struct {
426 Locks uint32
427 Mtu uint32
428 Hopcount uint32
429 Expire uint32
430 Recvpipe uint32
431 Sendpipe uint32
432 Ssthresh uint32
433 Rtt uint32
434 Rttvar uint32
435 Pksent uint32
436 Weight uint32
437 Filler [3]uint32
438 }
439
440 const (
441 SizeofBpfVersion = 0x4
442 SizeofBpfStat = 0x8
443 SizeofBpfZbuf = 0xc
444 SizeofBpfProgram = 0x8
445 SizeofBpfInsn = 0x8
446 SizeofBpfHdr = 0x20
447 SizeofBpfZbufHeader = 0x20
448 )
449
450 type BpfVersion struct {
451 Major uint16
452 Minor uint16
453 }
454
455 type BpfStat struct {
456 Recv uint32
457 Drop uint32
458 }
459
460 type BpfZbuf struct {
461 Bufa *byte
462 Bufb *byte
463 Buflen uint32
464 }
465
466 type BpfProgram struct {
467 Len uint32
468 Insns *BpfInsn
469 }
470
471 type BpfInsn struct {
472 Code uint16
473 Jt uint8
474 Jf uint8
475 K uint32
476 }
477
478 type BpfHdr struct {
479 Tstamp Timeval
480 Caplen uint32
481 Datalen uint32
482 Hdrlen uint16
483 Pad_cgo_0 [6]byte
484 }
485
486 type BpfZbufHeader struct {
487 Kernel_gen uint32
488 Kernel_len uint32
489 User_gen uint32
490 X_bzh_pad [5]uint32
491 }
492
493 const (
494 _AT_FDCWD = -0x64
495 )
496
497 type Termios struct {
498 Iflag uint32
499 Oflag uint32
500 Cflag uint32
501 Lflag uint32
502 Cc [20]uint8
503 Ispeed uint32
504 Ospeed uint32
505 }
506
View as plain text