github.com/Andyfoo/golang/x/net@v0.0.0-20190901054642-57c1bf301704/internal/socket/zsys_solaris_amd64.go (about)

     1  // Code generated by cmd/cgo -godefs; DO NOT EDIT.
     2  // cgo -godefs defs_solaris.go
     3  
     4  package socket
     5  
     6  type iovec struct {
     7  	Base *int8
     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  	Accrights    *int8
    19  	Accrightslen int32
    20  	Pad_cgo_2    [4]byte
    21  }
    22  
    23  type cmsghdr struct {
    24  	Len   uint32
    25  	Level int32
    26  	Type  int32
    27  }
    28  
    29  type sockaddrInet struct {
    30  	Family uint16
    31  	Port   uint16
    32  	Addr   [4]byte /* in_addr */
    33  	Zero   [8]int8
    34  }
    35  
    36  type sockaddrInet6 struct {
    37  	Family         uint16
    38  	Port           uint16
    39  	Flowinfo       uint32
    40  	Addr           [16]byte /* in6_addr */
    41  	Scope_id       uint32
    42  	X__sin6_src_id uint32
    43  }
    44  
    45  const (
    46  	sizeofIovec   = 0x10
    47  	sizeofMsghdr  = 0x30
    48  	sizeofCmsghdr = 0xc
    49  
    50  	sizeofSockaddrInet  = 0x10
    51  	sizeofSockaddrInet6 = 0x20
    52  )