gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/net/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  //go:build riscv64
     5  // +build riscv64
     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     uint64
    19  	Control    *byte
    20  	Controllen uint64
    21  	Flags      int32
    22  	Pad_cgo_0  [4]byte
    23  }
    24  
    25  type mmsghdr struct {
    26  	Hdr       msghdr
    27  	Len       uint32
    28  	Pad_cgo_0 [4]byte
    29  }
    30  
    31  type cmsghdr struct {
    32  	Len   uint64
    33  	Level int32
    34  	Type  int32
    35  }
    36  
    37  const (
    38  	sizeofIovec  = 0x10
    39  	sizeofMsghdr = 0x38
    40  )