equal
deleted
inserted
replaced
1 // cgo -godefs types_freebsd.go | go run mkpost.go |
1 // cgo -godefs types_freebsd.go | go run mkpost.go |
2 // Code generated by the command above; see README.md. DO NOT EDIT. |
2 // Code generated by the command above; see README.md. DO NOT EDIT. |
3 |
3 |
|
4 //go:build amd64 && freebsd |
4 // +build amd64,freebsd |
5 // +build amd64,freebsd |
5 |
6 |
6 package unix |
7 package unix |
7 |
8 |
8 const ( |
9 const ( |
121 Spare [10]uint64 |
122 Spare [10]uint64 |
122 Namemax uint32 |
123 Namemax uint32 |
123 Owner uint32 |
124 Owner uint32 |
124 Fsid Fsid |
125 Fsid Fsid |
125 Charspare [80]int8 |
126 Charspare [80]int8 |
126 Fstypename [16]int8 |
127 Fstypename [16]byte |
127 Mntfromname [1024]int8 |
128 Mntfromname [1024]byte |
128 Mntonname [1024]int8 |
129 Mntonname [1024]byte |
129 } |
130 } |
130 |
131 |
131 type statfs_freebsd11_t struct { |
132 type statfs_freebsd11_t struct { |
132 Version uint32 |
133 Version uint32 |
133 Type uint32 |
134 Type uint32 |
146 Spare [10]uint64 |
147 Spare [10]uint64 |
147 Namemax uint32 |
148 Namemax uint32 |
148 Owner uint32 |
149 Owner uint32 |
149 Fsid Fsid |
150 Fsid Fsid |
150 Charspare [80]int8 |
151 Charspare [80]int8 |
151 Fstypename [16]int8 |
152 Fstypename [16]byte |
152 Mntfromname [88]int8 |
153 Mntfromname [88]byte |
153 Mntonname [88]int8 |
154 Mntonname [88]byte |
154 } |
155 } |
155 |
156 |
156 type Flock_t struct { |
157 type Flock_t struct { |
157 Start int64 |
158 Start int64 |
158 Len int64 |
159 Len int64 |
244 Pad [92]int8 |
245 Pad [92]int8 |
245 } |
246 } |
246 |
247 |
247 type _Socklen uint32 |
248 type _Socklen uint32 |
248 |
249 |
|
250 type Xucred struct { |
|
251 Version uint32 |
|
252 Uid uint32 |
|
253 Ngroups int16 |
|
254 Groups [16]uint32 |
|
255 _ *byte |
|
256 } |
|
257 |
249 type Linger struct { |
258 type Linger struct { |
250 Onoff int32 |
259 Onoff int32 |
251 Linger int32 |
260 Linger int32 |
252 } |
261 } |
253 |
262 |
273 } |
282 } |
274 |
283 |
275 type Msghdr struct { |
284 type Msghdr struct { |
276 Name *byte |
285 Name *byte |
277 Namelen uint32 |
286 Namelen uint32 |
278 _ [4]byte |
|
279 Iov *Iovec |
287 Iov *Iovec |
280 Iovlen int32 |
288 Iovlen int32 |
281 _ [4]byte |
|
282 Control *byte |
289 Control *byte |
283 Controllen uint32 |
290 Controllen uint32 |
284 Flags int32 |
291 Flags int32 |
285 } |
292 } |
286 |
293 |
308 SizeofSockaddrInet4 = 0x10 |
315 SizeofSockaddrInet4 = 0x10 |
309 SizeofSockaddrInet6 = 0x1c |
316 SizeofSockaddrInet6 = 0x1c |
310 SizeofSockaddrAny = 0x6c |
317 SizeofSockaddrAny = 0x6c |
311 SizeofSockaddrUnix = 0x6a |
318 SizeofSockaddrUnix = 0x6a |
312 SizeofSockaddrDatalink = 0x36 |
319 SizeofSockaddrDatalink = 0x36 |
|
320 SizeofXucred = 0x58 |
313 SizeofLinger = 0x8 |
321 SizeofLinger = 0x8 |
|
322 SizeofIovec = 0x10 |
314 SizeofIPMreq = 0x8 |
323 SizeofIPMreq = 0x8 |
315 SizeofIPMreqn = 0xc |
324 SizeofIPMreqn = 0xc |
316 SizeofIPv6Mreq = 0x14 |
325 SizeofIPv6Mreq = 0x14 |
317 SizeofMsghdr = 0x30 |
326 SizeofMsghdr = 0x30 |
318 SizeofCmsghdr = 0xc |
327 SizeofCmsghdr = 0xc |
461 Version uint8 |
470 Version uint8 |
462 Type uint8 |
471 Type uint8 |
463 Addrs int32 |
472 Addrs int32 |
464 Flags int32 |
473 Flags int32 |
465 Index uint16 |
474 Index uint16 |
466 _ [2]byte |
475 _ uint16 |
467 Data ifData |
476 Data ifData |
468 } |
477 } |
469 |
478 |
470 type IfMsghdr struct { |
479 type IfMsghdr struct { |
471 Msglen uint16 |
480 Msglen uint16 |
472 Version uint8 |
481 Version uint8 |
473 Type uint8 |
482 Type uint8 |
474 Addrs int32 |
483 Addrs int32 |
475 Flags int32 |
484 Flags int32 |
476 Index uint16 |
485 Index uint16 |
477 _ [2]byte |
|
478 Data IfData |
486 Data IfData |
479 } |
487 } |
480 |
488 |
481 type ifData struct { |
489 type ifData struct { |
482 Type uint8 |
490 Type uint8 |
539 Version uint8 |
547 Version uint8 |
540 Type uint8 |
548 Type uint8 |
541 Addrs int32 |
549 Addrs int32 |
542 Flags int32 |
550 Flags int32 |
543 Index uint16 |
551 Index uint16 |
544 _ [2]byte |
552 _ uint16 |
545 Metric int32 |
553 Metric int32 |
546 } |
554 } |
547 |
555 |
548 type IfmaMsghdr struct { |
556 type IfmaMsghdr struct { |
549 Msglen uint16 |
557 Msglen uint16 |
550 Version uint8 |
558 Version uint8 |
551 Type uint8 |
559 Type uint8 |
552 Addrs int32 |
560 Addrs int32 |
553 Flags int32 |
561 Flags int32 |
554 Index uint16 |
562 Index uint16 |
555 _ [2]byte |
563 _ uint16 |
556 } |
564 } |
557 |
565 |
558 type IfAnnounceMsghdr struct { |
566 type IfAnnounceMsghdr struct { |
559 Msglen uint16 |
567 Msglen uint16 |
560 Version uint8 |
568 Version uint8 |
567 type RtMsghdr struct { |
575 type RtMsghdr struct { |
568 Msglen uint16 |
576 Msglen uint16 |
569 Version uint8 |
577 Version uint8 |
570 Type uint8 |
578 Type uint8 |
571 Index uint16 |
579 Index uint16 |
572 _ [2]byte |
580 _ uint16 |
573 Flags int32 |
581 Flags int32 |
574 Addrs int32 |
582 Addrs int32 |
575 Pid int32 |
583 Pid int32 |
576 Seq int32 |
584 Seq int32 |
577 Errno int32 |
585 Errno int32 |
621 Buflen uint64 |
629 Buflen uint64 |
622 } |
630 } |
623 |
631 |
624 type BpfProgram struct { |
632 type BpfProgram struct { |
625 Len uint32 |
633 Len uint32 |
626 _ [4]byte |
|
627 Insns *BpfInsn |
634 Insns *BpfInsn |
628 } |
635 } |
629 |
636 |
630 type BpfInsn struct { |
637 type BpfInsn struct { |
631 Code uint16 |
638 Code uint16 |
666 Ypixel uint16 |
673 Ypixel uint16 |
667 } |
674 } |
668 |
675 |
669 const ( |
676 const ( |
670 AT_FDCWD = -0x64 |
677 AT_FDCWD = -0x64 |
|
678 AT_EACCESS = 0x100 |
|
679 AT_SYMLINK_NOFOLLOW = 0x200 |
|
680 AT_SYMLINK_FOLLOW = 0x400 |
671 AT_REMOVEDIR = 0x800 |
681 AT_REMOVEDIR = 0x800 |
672 AT_SYMLINK_FOLLOW = 0x400 |
|
673 AT_SYMLINK_NOFOLLOW = 0x200 |
|
674 ) |
682 ) |
675 |
683 |
676 type PollFd struct { |
684 type PollFd struct { |
677 Fd int32 |
685 Fd int32 |
678 Events int16 |
686 Events int16 |