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