blob: b4090ef3115d1773b7db96bed787cd28e21e58b9 [file] [log] [blame]
Don Newton98fd8812019-09-23 15:15:02 -04001// cgo -godefs -- -fsigned-char types_freebsd.go | go run mkpost.go
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
4// +build arm,freebsd
5
6package unix
7
8const (
9 SizeofPtr = 0x4
10 SizeofShort = 0x2
11 SizeofInt = 0x4
12 SizeofLong = 0x4
13 SizeofLongLong = 0x8
14)
15
16type (
17 _C_short int16
18 _C_int int32
19 _C_long int32
20 _C_long_long int64
21)
22
23type Timespec struct {
24 Sec int64
25 Nsec int32
26 _ [4]byte
27}
28
29type Timeval struct {
30 Sec int64
31 Usec int32
32 _ [4]byte
33}
34
35type 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
54type Rlimit struct {
55 Cur int64
56 Max int64
57}
58
59type _Gid_t uint32
60
61const (
62 _statfsVersion = 0x20140518
63 _dirblksiz = 0x400
64)
65
66type Stat_t struct {
Don Newton7577f072020-01-06 12:41:11 -050067 Dev uint64
68 Ino uint64
69 Nlink uint64
70 Mode uint16
71 _0 int16
72 Uid uint32
73 Gid uint32
74 _1 int32
75 Rdev uint64
76 Atim Timespec
77 Mtim Timespec
78 Ctim Timespec
79 Btim Timespec
80 Size int64
81 Blocks int64
82 Blksize int32
83 Flags uint32
84 Gen uint64
85 Spare [10]uint64
Don Newton98fd8812019-09-23 15:15:02 -040086}
87
88type stat_freebsd11_t struct {
Don Newton7577f072020-01-06 12:41:11 -050089 Dev uint32
90 Ino uint32
91 Mode uint16
92 Nlink uint16
93 Uid uint32
94 Gid uint32
95 Rdev uint32
96 Atim Timespec
97 Mtim Timespec
98 Ctim Timespec
99 Size int64
100 Blocks int64
101 Blksize int32
102 Flags uint32
103 Gen uint32
104 Lspare int32
105 Btim Timespec
Don Newton98fd8812019-09-23 15:15:02 -0400106}
107
108type Statfs_t struct {
109 Version uint32
110 Type uint32
111 Flags uint64
112 Bsize uint64
113 Iosize uint64
114 Blocks uint64
115 Bfree uint64
116 Bavail int64
117 Files uint64
118 Ffree int64
119 Syncwrites uint64
120 Asyncwrites uint64
121 Syncreads uint64
122 Asyncreads uint64
123 Spare [10]uint64
124 Namemax uint32
125 Owner uint32
126 Fsid Fsid
127 Charspare [80]int8
128 Fstypename [16]int8
129 Mntfromname [1024]int8
130 Mntonname [1024]int8
131}
132
133type statfs_freebsd11_t struct {
134 Version uint32
135 Type uint32
136 Flags uint64
137 Bsize uint64
138 Iosize uint64
139 Blocks uint64
140 Bfree uint64
141 Bavail int64
142 Files uint64
143 Ffree int64
144 Syncwrites uint64
145 Asyncwrites uint64
146 Syncreads uint64
147 Asyncreads uint64
148 Spare [10]uint64
149 Namemax uint32
150 Owner uint32
151 Fsid Fsid
152 Charspare [80]int8
153 Fstypename [16]int8
154 Mntfromname [88]int8
155 Mntonname [88]int8
156}
157
158type Flock_t struct {
159 Start int64
160 Len int64
161 Pid int32
162 Type int16
163 Whence int16
164 Sysid int32
165 _ [4]byte
166}
167
168type Dirent struct {
169 Fileno uint64
170 Off int64
171 Reclen uint16
172 Type uint8
173 Pad0 uint8
174 Namlen uint16
175 Pad1 uint16
176 Name [256]int8
177}
178
179type dirent_freebsd11 struct {
180 Fileno uint32
181 Reclen uint16
182 Type uint8
183 Namlen uint8
184 Name [256]int8
185}
186
187type Fsid struct {
188 Val [2]int32
189}
190
191const (
192 PathMax = 0x400
193)
194
195const (
196 FADV_NORMAL = 0x0
197 FADV_RANDOM = 0x1
198 FADV_SEQUENTIAL = 0x2
199 FADV_WILLNEED = 0x3
200 FADV_DONTNEED = 0x4
201 FADV_NOREUSE = 0x5
202)
203
204type RawSockaddrInet4 struct {
205 Len uint8
206 Family uint8
207 Port uint16
208 Addr [4]byte /* in_addr */
209 Zero [8]int8
210}
211
212type RawSockaddrInet6 struct {
213 Len uint8
214 Family uint8
215 Port uint16
216 Flowinfo uint32
217 Addr [16]byte /* in6_addr */
218 Scope_id uint32
219}
220
221type RawSockaddrUnix struct {
222 Len uint8
223 Family uint8
224 Path [104]int8
225}
226
227type RawSockaddrDatalink struct {
228 Len uint8
229 Family uint8
230 Index uint16
231 Type uint8
232 Nlen uint8
233 Alen uint8
234 Slen uint8
235 Data [46]int8
236}
237
238type RawSockaddr struct {
239 Len uint8
240 Family uint8
241 Data [14]int8
242}
243
244type RawSockaddrAny struct {
245 Addr RawSockaddr
246 Pad [92]int8
247}
248
249type _Socklen uint32
250
251type Linger struct {
252 Onoff int32
253 Linger int32
254}
255
256type Iovec struct {
257 Base *byte
258 Len uint32
259}
260
261type IPMreq struct {
262 Multiaddr [4]byte /* in_addr */
263 Interface [4]byte /* in_addr */
264}
265
266type IPMreqn struct {
267 Multiaddr [4]byte /* in_addr */
268 Address [4]byte /* in_addr */
269 Ifindex int32
270}
271
272type IPv6Mreq struct {
273 Multiaddr [16]byte /* in6_addr */
274 Interface uint32
275}
276
277type Msghdr struct {
278 Name *byte
279 Namelen uint32
280 Iov *Iovec
281 Iovlen int32
282 Control *byte
283 Controllen uint32
284 Flags int32
285}
286
287type Cmsghdr struct {
288 Len uint32
289 Level int32
290 Type int32
291}
292
293type Inet6Pktinfo struct {
294 Addr [16]byte /* in6_addr */
295 Ifindex uint32
296}
297
298type IPv6MTUInfo struct {
299 Addr RawSockaddrInet6
300 Mtu uint32
301}
302
303type ICMPv6Filter struct {
304 Filt [8]uint32
305}
306
307const (
308 SizeofSockaddrInet4 = 0x10
309 SizeofSockaddrInet6 = 0x1c
310 SizeofSockaddrAny = 0x6c
311 SizeofSockaddrUnix = 0x6a
312 SizeofSockaddrDatalink = 0x36
313 SizeofLinger = 0x8
314 SizeofIPMreq = 0x8
315 SizeofIPMreqn = 0xc
316 SizeofIPv6Mreq = 0x14
317 SizeofMsghdr = 0x1c
318 SizeofCmsghdr = 0xc
319 SizeofInet6Pktinfo = 0x14
320 SizeofIPv6MTUInfo = 0x20
321 SizeofICMPv6Filter = 0x20
322)
323
324const (
Don Newton7577f072020-01-06 12:41:11 -0500325 PTRACE_ATTACH = 0xa
326 PTRACE_CONT = 0x7
327 PTRACE_DETACH = 0xb
328 PTRACE_GETFPREGS = 0x23
329 PTRACE_GETFSBASE = 0x47
330 PTRACE_GETLWPLIST = 0xf
331 PTRACE_GETNUMLWPS = 0xe
332 PTRACE_GETREGS = 0x21
333 PTRACE_GETXSTATE = 0x45
334 PTRACE_IO = 0xc
335 PTRACE_KILL = 0x8
336 PTRACE_LWPEVENTS = 0x18
337 PTRACE_LWPINFO = 0xd
338 PTRACE_SETFPREGS = 0x24
339 PTRACE_SETREGS = 0x22
340 PTRACE_SINGLESTEP = 0x9
341 PTRACE_TRACEME = 0x0
Don Newton98fd8812019-09-23 15:15:02 -0400342)
343
Don Newton7577f072020-01-06 12:41:11 -0500344const (
345 PIOD_READ_D = 0x1
346 PIOD_WRITE_D = 0x2
347 PIOD_READ_I = 0x3
348 PIOD_WRITE_I = 0x4
349)
350
351const (
352 PL_FLAG_BORN = 0x100
353 PL_FLAG_EXITED = 0x200
354 PL_FLAG_SI = 0x20
355)
356
357const (
358 TRAP_BRKPT = 0x1
359 TRAP_TRACE = 0x2
360)
361
362type PtraceLwpInfoStruct struct {
363 Lwpid int32
364 Event int32
365 Flags int32
366 Sigmask Sigset_t
367 Siglist Sigset_t
368 Siginfo __Siginfo
369 Tdname [20]int8
370 Child_pid int32
371 Syscall_code uint32
372 Syscall_narg uint32
373}
374
375type __Siginfo struct {
376 Signo int32
377 Errno int32
378 Code int32
379 Pid int32
380 Uid uint32
381 Status int32
382 Addr *byte
383 Value [4]byte
384 X_reason [32]byte
385}
386
387type Sigset_t struct {
388 Val [4]uint32
389}
390
391type Reg struct {
392 R [13]uint32
393 R_sp uint32
394 R_lr uint32
395 R_pc uint32
396 R_cpsr uint32
397}
398
399type FpReg struct {
400 Fpr_fpsr uint32
401 Fpr [8][3]uint32
402}
403
404type PtraceIoDesc struct {
405 Op int32
406 Offs *byte
407 Addr *byte
408 Len uint
409}
410
Don Newton98fd8812019-09-23 15:15:02 -0400411type Kevent_t struct {
412 Ident uint32
413 Filter int16
414 Flags uint16
415 Fflags uint32
416 Data int32
417 Udata *byte
418}
419
420type FdSet struct {
421 Bits [32]uint32
422}
423
424const (
425 sizeofIfMsghdr = 0xa8
426 SizeofIfMsghdr = 0x70
427 sizeofIfData = 0x98
428 SizeofIfData = 0x60
429 SizeofIfaMsghdr = 0x14
430 SizeofIfmaMsghdr = 0x10
431 SizeofIfAnnounceMsghdr = 0x18
432 SizeofRtMsghdr = 0x5c
433 SizeofRtMetrics = 0x38
434)
435
436type ifMsghdr struct {
437 Msglen uint16
438 Version uint8
439 Type uint8
440 Addrs int32
441 Flags int32
442 Index uint16
443 _ [2]byte
444 Data ifData
445}
446
447type IfMsghdr struct {
448 Msglen uint16
449 Version uint8
450 Type uint8
451 Addrs int32
452 Flags int32
453 Index uint16
454 _ [2]byte
455 Data IfData
456}
457
458type ifData struct {
459 Type uint8
460 Physical uint8
461 Addrlen uint8
462 Hdrlen uint8
463 Link_state uint8
464 Vhid uint8
465 Datalen uint16
466 Mtu uint32
467 Metric uint32
468 Baudrate uint64
469 Ipackets uint64
470 Ierrors uint64
471 Opackets uint64
472 Oerrors uint64
473 Collisions uint64
474 Ibytes uint64
475 Obytes uint64
476 Imcasts uint64
477 Omcasts uint64
478 Iqdrops uint64
479 Oqdrops uint64
480 Noproto uint64
481 Hwassist uint64
482 _ [8]byte
483 _ [16]byte
484}
485
486type IfData struct {
487 Type uint8
488 Physical uint8
489 Addrlen uint8
490 Hdrlen uint8
491 Link_state uint8
492 Spare_char1 uint8
493 Spare_char2 uint8
494 Datalen uint8
495 Mtu uint32
496 Metric uint32
497 Baudrate uint32
498 Ipackets uint32
499 Ierrors uint32
500 Opackets uint32
501 Oerrors uint32
502 Collisions uint32
503 Ibytes uint32
504 Obytes uint32
505 Imcasts uint32
506 Omcasts uint32
507 Iqdrops uint32
508 Noproto uint32
509 Hwassist uint32
510 _ [4]byte
511 Epoch int64
512 Lastchange Timeval
513}
514
515type IfaMsghdr struct {
516 Msglen uint16
517 Version uint8
518 Type uint8
519 Addrs int32
520 Flags int32
521 Index uint16
522 _ [2]byte
523 Metric int32
524}
525
526type IfmaMsghdr struct {
527 Msglen uint16
528 Version uint8
529 Type uint8
530 Addrs int32
531 Flags int32
532 Index uint16
533 _ [2]byte
534}
535
536type IfAnnounceMsghdr struct {
537 Msglen uint16
538 Version uint8
539 Type uint8
540 Index uint16
541 Name [16]int8
542 What uint16
543}
544
545type RtMsghdr struct {
546 Msglen uint16
547 Version uint8
548 Type uint8
549 Index uint16
550 _ [2]byte
551 Flags int32
552 Addrs int32
553 Pid int32
554 Seq int32
555 Errno int32
556 Fmask int32
557 Inits uint32
558 Rmx RtMetrics
559}
560
561type RtMetrics struct {
562 Locks uint32
563 Mtu uint32
564 Hopcount uint32
565 Expire uint32
566 Recvpipe uint32
567 Sendpipe uint32
568 Ssthresh uint32
569 Rtt uint32
570 Rttvar uint32
571 Pksent uint32
572 Weight uint32
573 Filler [3]uint32
574}
575
576const (
577 SizeofBpfVersion = 0x4
578 SizeofBpfStat = 0x8
579 SizeofBpfZbuf = 0xc
580 SizeofBpfProgram = 0x8
581 SizeofBpfInsn = 0x8
582 SizeofBpfHdr = 0x20
583 SizeofBpfZbufHeader = 0x20
584)
585
586type BpfVersion struct {
587 Major uint16
588 Minor uint16
589}
590
591type BpfStat struct {
592 Recv uint32
593 Drop uint32
594}
595
596type BpfZbuf struct {
597 Bufa *byte
598 Bufb *byte
599 Buflen uint32
600}
601
602type BpfProgram struct {
603 Len uint32
604 Insns *BpfInsn
605}
606
607type BpfInsn struct {
608 Code uint16
609 Jt uint8
610 Jf uint8
611 K uint32
612}
613
614type BpfHdr struct {
615 Tstamp Timeval
616 Caplen uint32
617 Datalen uint32
618 Hdrlen uint16
619 _ [6]byte
620}
621
622type BpfZbufHeader struct {
623 Kernel_gen uint32
624 Kernel_len uint32
625 User_gen uint32
626 _ [5]uint32
627}
628
629type Termios struct {
630 Iflag uint32
631 Oflag uint32
632 Cflag uint32
633 Lflag uint32
634 Cc [20]uint8
635 Ispeed uint32
636 Ospeed uint32
637}
638
639type Winsize struct {
640 Row uint16
641 Col uint16
642 Xpixel uint16
643 Ypixel uint16
644}
645
646const (
647 AT_FDCWD = -0x64
648 AT_REMOVEDIR = 0x800
649 AT_SYMLINK_FOLLOW = 0x400
650 AT_SYMLINK_NOFOLLOW = 0x200
651)
652
653type PollFd struct {
654 Fd int32
655 Events int16
656 Revents int16
657}
658
659const (
660 POLLERR = 0x8
661 POLLHUP = 0x10
662 POLLIN = 0x1
663 POLLINIGNEOF = 0x2000
664 POLLNVAL = 0x20
665 POLLOUT = 0x4
666 POLLPRI = 0x2
667 POLLRDBAND = 0x80
668 POLLRDNORM = 0x40
669 POLLWRBAND = 0x100
670 POLLWRNORM = 0x4
671)
672
673type CapRights struct {
674 Rights [2]uint64
675}
676
677type Utsname struct {
678 Sysname [256]byte
679 Nodename [256]byte
680 Release [256]byte
681 Version [256]byte
682 Machine [256]byte
683}