github.com/Andyfoo/golang/x/net@v0.0.0-20190901054642-57c1bf301704/internal/socket/zsys_freebsd_arm.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 uint32 9 } 10 11 type msghdr struct { 12 Name *byte 13 Namelen uint32 14 Iov *iovec 15 Iovlen int32 16 Control *byte 17 Controllen uint32 18 Flags int32 19 } 20 21 type cmsghdr struct { 22 Len uint32 23 Level int32 24 Type int32 25 } 26 27 type sockaddrInet struct { 28 Len uint8 29 Family uint8 30 Port uint16 31 Addr [4]byte /* in_addr */ 32 Zero [8]int8 33 } 34 35 type sockaddrInet6 struct { 36 Len uint8 37 Family uint8 38 Port uint16 39 Flowinfo uint32 40 Addr [16]byte /* in6_addr */ 41 Scope_id uint32 42 } 43 44 const ( 45 sizeofIovec = 0x8 46 sizeofMsghdr = 0x1c 47 sizeofCmsghdr = 0xc 48 49 sizeofSockaddrInet = 0x10 50 sizeofSockaddrInet6 = 0x1c 51 )