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

     1  // Code generated by cmd/cgo -godefs; DO NOT EDIT.
     2  // cgo -godefs defs_linux.go
     3  
     4  // +build riscv64
     5  
     6  package socket
     7  
     8  type iovec struct {
     9  	Base *byte
    10  	Len  uint64
    11  }
    12  
    13  type msghdr struct {
    14  	Name       *byte
    15  	Namelen    uint32
    16  	Iov        *iovec
    17  	Iovlen     uint64
    18  	Control    *byte
    19  	Controllen uint64
    20  	Flags      int32
    21  	Pad_cgo_0  [4]byte
    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   uint64
    32  	Level int32
    33  	Type  int32
    34  }
    35  
    36  type sockaddrInet struct {
    37  	Family uint16
    38  	Port   uint16
    39  	Addr   [4]byte /* in_addr */
    40  	X__pad [8]uint8
    41  }
    42  
    43  type sockaddrInet6 struct {
    44  	Family   uint16
    45  	Port     uint16
    46  	Flowinfo uint32
    47  	Addr     [16]byte /* in6_addr */
    48  	Scope_id uint32
    49  }
    50  
    51  const (
    52  	sizeofIovec   = 0x10
    53  	sizeofMsghdr  = 0x38
    54  	sizeofMmsghdr = 0x40
    55  	sizeofCmsghdr = 0x10
    56  
    57  	sizeofSockaddrInet  = 0x10
    58  	sizeofSockaddrInet6 = 0x1c
    59  )