github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/internal/syscall/unix/net.go (about) 1 // Copyright 2021 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 unix 6 7 package unix 8 9 import ( 10 "github.com/shogo82148/std/syscall" 11 ) 12 13 //go:linkname RecvfromInet4 syscall.recvfromInet4 14 //go:noescape 15 func RecvfromInet4(fd int, p []byte, flags int, from *syscall.SockaddrInet4) (int, error) 16 17 //go:linkname RecvfromInet6 syscall.recvfromInet6 18 //go:noescape 19 func RecvfromInet6(fd int, p []byte, flags int, from *syscall.SockaddrInet6) (n int, err error) 20 21 //go:linkname SendtoInet4 syscall.sendtoInet4 22 //go:noescape 23 func SendtoInet4(fd int, p []byte, flags int, to *syscall.SockaddrInet4) (err error) 24 25 //go:linkname SendtoInet6 syscall.sendtoInet6 26 //go:noescape 27 func SendtoInet6(fd int, p []byte, flags int, to *syscall.SockaddrInet6) (err error) 28 29 //go:linkname SendmsgNInet4 syscall.sendmsgNInet4 30 //go:noescape 31 func SendmsgNInet4(fd int, p, oob []byte, to *syscall.SockaddrInet4, flags int) (n int, err error) 32 33 //go:linkname SendmsgNInet6 syscall.sendmsgNInet6 34 //go:noescape 35 func SendmsgNInet6(fd int, p, oob []byte, to *syscall.SockaddrInet6, flags int) (n int, err error) 36 37 //go:linkname RecvmsgInet4 syscall.recvmsgInet4 38 //go:noescape 39 func RecvmsgInet4(fd int, p, oob []byte, flags int, from *syscall.SockaddrInet4) (n, oobn int, recvflags int, err error) 40 41 //go:linkname RecvmsgInet6 syscall.recvmsgInet6 42 //go:noescape 43 func RecvmsgInet6(fd int, p, oob []byte, flags int, from *syscall.SockaddrInet6) (n, oobn int, recvflags int, err error)