golang.org/x/net@v0.25.1-0.20240516223405-c87a5b62e243/internal/socket/defs_freebsd.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 7 package socket 8 9 /* 10 #include <sys/socket.h> 11 12 #include <netinet/in.h> 13 */ 14 import "C" 15 16 type iovec C.struct_iovec 17 18 type msghdr C.struct_msghdr 19 20 type cmsghdr C.struct_cmsghdr 21 22 const ( 23 sizeofIovec = C.sizeof_struct_iovec 24 sizeofMsghdr = C.sizeof_struct_msghdr 25 )