gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/net/internal/socket/defs_openbsd.go (about)

     1  // Copyright 2017 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build ignore
     6  // +build ignore
     7  
     8  package socket
     9  
    10  /*
    11  #include <sys/socket.h>
    12  
    13  #include <netinet/in.h>
    14  */
    15  import "C"
    16  
    17  type iovec C.struct_iovec
    18  
    19  type msghdr C.struct_msghdr
    20  
    21  type cmsghdr C.struct_cmsghdr
    22  
    23  const (
    24  	sizeofIovec  = C.sizeof_struct_iovec
    25  	sizeofMsghdr = C.sizeof_struct_msghdr
    26  )