...

Source file src/internal/syscall/unix/net_wasip1.go

Documentation: internal/syscall/unix

     1  // Copyright 2023 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 wasip1
     6  
     7  package unix
     8  
     9  import (
    10  	"syscall"
    11  	_ "unsafe"
    12  )
    13  
    14  func RecvfromInet4(fd int, p []byte, flags int, from *syscall.SockaddrInet4) (int, error) {
    15  	return 0, syscall.ENOSYS
    16  }
    17  
    18  func RecvfromInet6(fd int, p []byte, flags int, from *syscall.SockaddrInet6) (n int, err error) {
    19  	return 0, syscall.ENOSYS
    20  }
    21  
    22  func SendtoInet4(fd int, p []byte, flags int, to *syscall.SockaddrInet4) (err error) {
    23  	return syscall.ENOSYS
    24  }
    25  
    26  func SendtoInet6(fd int, p []byte, flags int, to *syscall.SockaddrInet6) (err error) {
    27  	return syscall.ENOSYS
    28  }
    29  
    30  func SendmsgNInet4(fd int, p, oob []byte, to *syscall.SockaddrInet4, flags int) (n int, err error) {
    31  	return 0, syscall.ENOSYS
    32  }
    33  
    34  func SendmsgNInet6(fd int, p, oob []byte, to *syscall.SockaddrInet6, flags int) (n int, err error) {
    35  	return 0, syscall.ENOSYS
    36  }
    37  
    38  func RecvmsgInet4(fd int, p, oob []byte, flags int, from *syscall.SockaddrInet4) (n, oobn int, recvflags int, err error) {
    39  	return 0, 0, 0, syscall.ENOSYS
    40  }
    41  
    42  func RecvmsgInet6(fd int, p, oob []byte, flags int, from *syscall.SockaddrInet6) (n, oobn int, recvflags int, err error) {
    43  	return 0, 0, 0, syscall.ENOSYS
    44  }
    45  

View as plain text