github.com/Andyfoo/golang/x/net@v0.0.0-20190901054642-57c1bf301704/internal/socket/zsys_freebsd_amd64.go (about) 1 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 // cgo -godefs defs_freebsd.go 3 4 package socket 5 6 type iovec struct { 7 Base *byte 8 Len uint64 9 } 10 11 type msghdr struct { 12 Name *byte 13 Namelen uint32 14 Pad_cgo_0 [4]byte 15 Iov *iovec 16 Iovlen int32 17 Pad_cgo_1 [4]byte 18 Control *byte 19 Controllen uint32 20 Flags int32 21 } 22 23 type cmsghdr struct { 24 Len uint32 25 Level int32 26 Type int32 27 } 28 29 type sockaddrInet struct { 30 Len uint8 31 Family uint8 32 Port uint16 33 Addr [4]byte /* in_addr */ 34 Zero [8]int8 35 } 36 37 type sockaddrInet6 struct { 38 Len uint8 39 Family uint8 40 Port uint16 41 Flowinfo uint32 42 Addr [16]byte /* in6_addr */ 43 Scope_id uint32 44 } 45 46 const ( 47 sizeofIovec = 0x10 48 sizeofMsghdr = 0x30 49 sizeofCmsghdr = 0xc 50 51 sizeofSockaddrInet = 0x10 52 sizeofSockaddrInet6 = 0x1c 53 )