package unix

import "internal/syscall/unix"

Index

Constants

const (
	// UTIME_OMIT is the sentinel value to indicate that a time value should not
	// be changed. It is useful for example to indicate for example with UtimesNano
	// to avoid changing AccessTime or ModifiedTime.
	// Its value must match syscall/fs_js.go
	UTIME_OMIT = -0x2
)

Functions

func Fcntl

func Fcntl(fd int, cmd int, arg int) (int, error)

func HasNonblockFlag

func HasNonblockFlag(flag int) bool

func IsNonblock

func IsNonblock(fd int) (nonblocking bool, err error)

func KernelVersion

func KernelVersion() (major int, minor int)

func RecvfromInet4

func RecvfromInet4(fd int, p []byte, flags int, from *syscall.SockaddrInet4) (int, error)

func RecvfromInet6

func RecvfromInet6(fd int, p []byte, flags int, from *syscall.SockaddrInet6) (n int, err error)

func RecvmsgInet4

func RecvmsgInet4(fd int, p, oob []byte, flags int, from *syscall.SockaddrInet4) (n, oobn int, recvflags int, err error)

func RecvmsgInet6

func RecvmsgInet6(fd int, p, oob []byte, flags int, from *syscall.SockaddrInet6) (n, oobn int, recvflags int, err error)

func SendmsgNInet4

func SendmsgNInet4(fd int, p, oob []byte, to *syscall.SockaddrInet4, flags int) (n int, err error)

func SendmsgNInet6

func SendmsgNInet6(fd int, p, oob []byte, to *syscall.SockaddrInet6, flags int) (n int, err error)

func SendtoInet4

func SendtoInet4(fd int, p []byte, flags int, to *syscall.SockaddrInet4) (err error)

func SendtoInet6

func SendtoInet6(fd int, p []byte, flags int, to *syscall.SockaddrInet6) (err error)

Source Files

at_js.go fcntl_js.go kernel_version_other.go net_js.go nonblocking_js.go

Version
v1.21.3
Published
Oct 9, 2023
Platform
js/wasm
Imports
2 packages
Last checked
1 minute ago

Tools for package owners.