golang.org/x/net@v0.25.1-0.20240516223405-c87a5b62e243/internal/socket/zsys_linux_loong64.go (about)

     1  // Code generated by cmd/cgo -godefs; DO NOT EDIT.
     2  // cgo -godefs defs_linux.go
     3  
     4  //go:build loong64
     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  const (
    37  	sizeofIovec  = 0x10
    38  	sizeofMsghdr = 0x38
    39  )