kubernetes/vendor/golang.org/x/sys/unix/syscall_unix.go

var Stdin

var Stdout

var Stderr

var errEAGAIN

var errEINVAL

var errENOENT

var signalNameMapOnce

var signalNameMap

// errnoErr returns common boxed Errno values, to prevent
// allocations at runtime.
func errnoErr(e syscall.Errno) error {}

// ErrnoName returns the error name for error number e.
func ErrnoName(e syscall.Errno) string {}

// SignalName returns the signal name for signal number s.
func SignalName(s syscall.Signal) string {}

// SignalNum returns the syscall.Signal for signal named s,
// or 0 if a signal with such name is not found.
// The signal name should start with "SIG".
func SignalNum(s string) syscall.Signal {}

// clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte.
func clen(n []byte) int {}

type mmapper

func (m *mmapper) Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {}

func (m *mmapper) Munmap(data []byte) (err error) {}

func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {}

func Munmap(b []byte) (err error) {}

func MmapPtr(fd int, offset int64, addr unsafe.Pointer, length uintptr, prot int, flags int) (ret unsafe.Pointer, err error) {}

func MunmapPtr(addr unsafe.Pointer, length uintptr) (err error) {}

func Read(fd int, p []byte) (n int, err error) {}

func Write(fd int, p []byte) (n int, err error) {}

func Pread(fd int, p []byte, offset int64) (n int, err error) {}

func Pwrite(fd int, p []byte, offset int64) (n int, err error) {}

var SocketDisableIPv6

type Sockaddr

type SockaddrInet4

type SockaddrInet6

type SockaddrUnix

func Bind(fd int, sa Sockaddr) (err error) {}

func Connect(fd int, sa Sockaddr) (err error) {}

func Getpeername(fd int) (sa Sockaddr, err error) {}

func GetsockoptByte(fd, level, opt int) (value byte, err error) {}

func GetsockoptInt(fd, level, opt int) (value int, err error) {}

func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error) {}

func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error) {}

func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error) {}

func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) {}

func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error) {}

func GetsockoptLinger(fd, level, opt int) (*Linger, error) {}

func GetsockoptTimeval(fd, level, opt int) (*Timeval, error) {}

func GetsockoptUint64(fd, level, opt int) (value uint64, err error) {}

func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) {}

// Recvmsg receives a message from a socket using the recvmsg system call. The
// received non-control data will be written to p, and any "out of band"
// control data will be written to oob. The flags are passed to recvmsg.
//
// The results are:
//   - n is the number of non-control data bytes read into p
//   - oobn is the number of control data bytes read into oob; this may be interpreted using [ParseSocketControlMessage]
//   - recvflags is flags returned by recvmsg
//   - from is the address of the sender
//
// If the underlying socket type is not SOCK_DGRAM, a received message
// containing oob data and a single '\0' of non-control data is treated as if
// the message contained only control data, i.e. n will be zero on return.
func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {}

// RecvmsgBuffers receives a message from a socket using the recvmsg system
// call. This function is equivalent to Recvmsg, but non-control data read is
// scattered into the buffers slices.
func RecvmsgBuffers(fd int, buffers [][]byte, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {}

// Sendmsg sends a message on a socket to an address using the sendmsg system
// call. This function is equivalent to SendmsgN, but does not return the
// number of bytes actually sent.
func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) {}

// SendmsgN sends a message on a socket to an address using the sendmsg system
// call. p contains the non-control data to send, and oob contains the "out of
// band" control data. The flags are passed to sendmsg. The number of
// non-control bytes actually written to the socket is returned.
//
// Some socket types do not support sending control data without accompanying
// non-control data. If p is empty, and oob contains control data, and the
// underlying socket type is not SOCK_DGRAM, p will be treated as containing a
// single '\0' and the return value will indicate zero bytes sent.
//
// The Go function Recvmsg, if called with an empty p and a non-empty oob,
// will read and ignore this additional '\0'.  If the message is received by
// code that does not use Recvmsg, or that does not use Go at all, that code
// will need to be written to expect and ignore the additional '\0'.
//
// If you need to send non-empty oob with p actually empty, and if the
// underlying socket type supports it, you can do so via a raw system call as
// follows:
//
//	msg := &unix.Msghdr{
//	    Control: &oob[0],
//	}
//	msg.SetControllen(len(oob))
//	n, _, errno := unix.Syscall(unix.SYS_SENDMSG, uintptr(fd), uintptr(unsafe.Pointer(msg)), flags)
func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) {}

// SendmsgBuffers sends a message on a socket to an address using the sendmsg
// system call. This function is equivalent to SendmsgN, but the non-control
// data is gathered from buffers.
func SendmsgBuffers(fd int, buffers [][]byte, oob []byte, to Sockaddr, flags int) (n int, err error) {}

func Send(s int, buf []byte, flags int) (err error) {}

func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error) {}

func SetsockoptByte(fd, level, opt int, value byte) (err error) {}

func SetsockoptInt(fd, level, opt int, value int) (err error) {}

func SetsockoptInet4Addr(fd, level, opt int, value [4]byte) (err error) {}

func SetsockoptIPMreq(fd, level, opt int, mreq *IPMreq) (err error) {}

func SetsockoptIPv6Mreq(fd, level, opt int, mreq *IPv6Mreq) (err error) {}

func SetsockoptICMPv6Filter(fd, level, opt int, filter *ICMPv6Filter) error {}

func SetsockoptLinger(fd, level, opt int, l *Linger) (err error) {}

func SetsockoptString(fd, level, opt int, s string) (err error) {}

func SetsockoptTimeval(fd, level, opt int, tv *Timeval) (err error) {}

func SetsockoptUint64(fd, level, opt int, value uint64) (err error) {}

func Socket(domain, typ, proto int) (fd int, err error) {}

func Socketpair(domain, typ, proto int) (fd [2]int, err error) {}

var ioSync

func CloseOnExec(fd int) {}

func SetNonblock(fd int, nonblocking bool) (err error) {}

// Exec calls execve(2), which replaces the calling executable in the process
// tree. argv0 should be the full path to an executable ("/bin/ls") and the
// executable name should also be the first argument in argv (["ls", "-l"]).
// envv are the environment variables that should be passed to the new
// process (["USER=go", "PWD=/tmp"]).
func Exec(argv0 string, argv []string, envv []string) error {}

// Lutimes sets the access and modification times tv on path. If path refers to
// a symlink, it is not dereferenced and the timestamps are set on the symlink.
// If tv is nil, the access and modification times are set to the current time.
// Otherwise tv must contain exactly 2 elements, with access time as the first
// element and modification time as the second element.
func Lutimes(path string, tv []Timeval) error {}

// emptyIovecs reports whether there are no bytes in the slice of Iovec.
func emptyIovecs(iov []Iovec) bool {}

// Setrlimit sets a resource limit.
func Setrlimit(resource int, rlim *Rlimit) error {}