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

func Access(path string, mode uint32) (err error) {}

func Chmod(path string, mode uint32) (err error) {}

func Chown(path string, uid int, gid int) (err error) {}

func Creat(path string, mode uint32) (fd int, err error) {}

func EpollCreate(size int) (fd int, err error) {}

func FanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname string) (err error) {}

func Fchmodat(dirfd int, path string, mode uint32, flags int) error {}

func InotifyInit() (fd int, err error) {}

func Link(oldpath string, newpath string) (err error) {}

func Mkdir(path string, mode uint32) (err error) {}

func Mknod(path string, mode uint32, dev int) (err error) {}

func Open(path string, mode int, perm uint32) (fd int, err error) {}

func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {}

func Openat2(dirfd int, path string, how *OpenHow) (fd int, err error) {}

func Pipe(p []int) error {}

func Pipe2(p []int, flags int) error {}

func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {}

func Poll(fds []PollFd, timeout int) (n int, err error) {}

func Readlink(path string, buf []byte) (n int, err error) {}

func Rename(oldpath string, newpath string) (err error) {}

func Rmdir(path string) error {}

func Symlink(oldpath string, newpath string) (err error) {}

func Unlink(path string) error {}

func Utimes(path string, tv []Timeval) error {}

func UtimesNano(path string, ts []Timespec) error {}

func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error {}

func Futimesat(dirfd int, path string, tv []Timeval) error {}

func Futimes(fd int, tv []Timeval) (err error) {}

const ImplementsGetwd

func Getwd() (wd string, err error) {}

func Getgroups() (gids []int, err error) {}

func Setgroups(gids []int) (err error) {}

type WaitStatus

const mask

const core

const exited

const stopped

const shift

func (w WaitStatus) Exited() bool {}

func (w WaitStatus) Signaled() bool {}

func (w WaitStatus) Stopped() bool {}

func (w WaitStatus) Continued() bool {}

func (w WaitStatus) CoreDump() bool {}

func (w WaitStatus) ExitStatus() int {}

func (w WaitStatus) Signal() syscall.Signal {}

func (w WaitStatus) StopSignal() syscall.Signal {}

func (w WaitStatus) TrapCause() int {}

func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) {}

func Mkfifo(path string, mode uint32) error {}

func Mkfifoat(dirfd int, path string, mode uint32) error {}

func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {}

func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, _Socklen, error) {}

func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) {}

type SockaddrLinklayer

func (sa *SockaddrLinklayer) sockaddr() (unsafe.Pointer, _Socklen, error) {}

type SockaddrNetlink

func (sa *SockaddrNetlink) sockaddr() (unsafe.Pointer, _Socklen, error) {}

type SockaddrHCI

func (sa *SockaddrHCI) sockaddr() (unsafe.Pointer, _Socklen, error) {}

type SockaddrL2

func (sa *SockaddrL2) sockaddr() (unsafe.Pointer, _Socklen, error) {}

type SockaddrRFCOMM

func (sa *SockaddrRFCOMM) sockaddr() (unsafe.Pointer, _Socklen, error) {}

type SockaddrCAN

func (sa *SockaddrCAN) sockaddr() (unsafe.Pointer, _Socklen, error) {}

type SockaddrCANJ1939

func (sa *SockaddrCANJ1939) sockaddr() (unsafe.Pointer, _Socklen, error) {}

type SockaddrALG

func (sa *SockaddrALG) sockaddr() (unsafe.Pointer, _Socklen, error) {}

type SockaddrVM

func (sa *SockaddrVM) sockaddr() (unsafe.Pointer, _Socklen, error) {}

type SockaddrXDP

func (sa *SockaddrXDP) sockaddr() (unsafe.Pointer, _Socklen, error) {}

const px_proto_oe

type SockaddrPPPoE

func (sa *SockaddrPPPoE) sockaddr() (unsafe.Pointer, _Socklen, error) {}

type SockaddrTIPC

type TIPCAddr

func (sa *TIPCSocketAddr) tipcAddr() [12]byte {}

func (sa *TIPCSocketAddr) tipcAddrtype() uint8 {}

func (sa *TIPCServiceRange) tipcAddr() [12]byte {}

func (sa *TIPCServiceRange) tipcAddrtype() uint8 {}

func (sa *TIPCServiceName) tipcAddr() [12]byte {}

func (sa *TIPCServiceName) tipcAddrtype() uint8 {}

func (sa *SockaddrTIPC) sockaddr() (unsafe.Pointer, _Socklen, error) {}

type SockaddrL2TPIP

func (sa *SockaddrL2TPIP) sockaddr() (unsafe.Pointer, _Socklen, error) {}

type SockaddrL2TPIP6

func (sa *SockaddrL2TPIP6) sockaddr() (unsafe.Pointer, _Socklen, error) {}

type SockaddrIUCV

func (sa *SockaddrIUCV) sockaddr() (unsafe.Pointer, _Socklen, error) {}

type SockaddrNFC

func (sa *SockaddrNFC) sockaddr() (unsafe.Pointer, _Socklen, error) {}

type SockaddrNFCLLCP

func (sa *SockaddrNFCLLCP) sockaddr() (unsafe.Pointer, _Socklen, error) {}

var socketProtocol

func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {}

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

func Accept4(fd int, flags int) (nfd int, sa Sockaddr, err error) {}

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

func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) {}

func GetsockoptUcred(fd, level, opt int) (*Ucred, error) {}

func GetsockoptTCPInfo(fd, level, opt int) (*TCPInfo, error) {}

// GetsockoptTCPCCVegasInfo returns algorithm specific congestion control information for a socket using the "vegas"
// algorithm.
//
// The socket's congestion control algorighm can be retrieved via [GetsockoptString] with the [TCP_CONGESTION] option:
//
//	algo, err := unix.GetsockoptString(fd, unix.IPPROTO_TCP, unix.TCP_CONGESTION)
func GetsockoptTCPCCVegasInfo(fd, level, opt int) (*TCPVegasInfo, error) {}

// GetsockoptTCPCCDCTCPInfo returns algorithm specific congestion control information for a socket using the "dctp"
// algorithm.
//
// The socket's congestion control algorighm can be retrieved via [GetsockoptString] with the [TCP_CONGESTION] option:
//
//	algo, err := unix.GetsockoptString(fd, unix.IPPROTO_TCP, unix.TCP_CONGESTION)
func GetsockoptTCPCCDCTCPInfo(fd, level, opt int) (*TCPDCTCPInfo, error) {}

// GetsockoptTCPCCBBRInfo returns algorithm specific congestion control information for a socket using the "bbr"
// algorithm.
//
// The socket's congestion control algorighm can be retrieved via [GetsockoptString] with the [TCP_CONGESTION] option:
//
//	algo, err := unix.GetsockoptString(fd, unix.IPPROTO_TCP, unix.TCP_CONGESTION)
func GetsockoptTCPCCBBRInfo(fd, level, opt int) (*TCPBBRInfo, error) {}

// GetsockoptString returns the string value of the socket option opt for the
// socket associated with fd at the given socket level.
func GetsockoptString(fd, level, opt int) (string, error) {}

func GetsockoptTpacketStats(fd, level, opt int) (*TpacketStats, error) {}

func GetsockoptTpacketStatsV3(fd, level, opt int) (*TpacketStatsV3, error) {}

func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) {}

func SetsockoptPacketMreq(fd, level, opt int, mreq *PacketMreq) error {}

// SetsockoptSockFprog attaches a classic BPF or an extended BPF program to a
// socket to filter incoming packets.  See 'man 7 socket' for usage information.
func SetsockoptSockFprog(fd, level, opt int, fprog *SockFprog) error {}

func SetsockoptCanRawFilter(fd, level, opt int, filter []CanFilter) error {}

func SetsockoptTpacketReq(fd, level, opt int, tp *TpacketReq) error {}

func SetsockoptTpacketReq3(fd, level, opt int, tp *TpacketReq3) error {}

func SetsockoptTCPRepairOpt(fd, level, opt int, o []TCPRepairOpt) (err error) {}

func SetsockoptTCPMD5Sig(fd, level, opt int, s *TCPMD5Sig) error {}

// KeyctlString calls keyctl commands which return a string.
// These commands are KEYCTL_DESCRIBE and KEYCTL_GET_SECURITY.
func KeyctlString(cmd int, id int) (string, error) {}

// KeyctlGetKeyringID implements the KEYCTL_GET_KEYRING_ID command.
// See the full documentation at:
// http://man7.org/linux/man-pages/man3/keyctl_get_keyring_ID.3.html
func KeyctlGetKeyringID(id int, create bool) (ringid int, err error) {}

// KeyctlSetperm implements the KEYCTL_SETPERM command. The perm value is the
// key handle permission mask as described in the "keyctl setperm" section of
// http://man7.org/linux/man-pages/man1/keyctl.1.html.
// See the full documentation at:
// http://man7.org/linux/man-pages/man3/keyctl_setperm.3.html
func KeyctlSetperm(id int, perm uint32) error {}

// KeyctlJoinSessionKeyring implements the KEYCTL_JOIN_SESSION_KEYRING command.
// See the full documentation at:
// http://man7.org/linux/man-pages/man3/keyctl_join_session_keyring.3.html
func KeyctlJoinSessionKeyring(name string) (ringid int, err error) {}

// KeyctlSearch implements the KEYCTL_SEARCH command.
// See the full documentation at:
// http://man7.org/linux/man-pages/man3/keyctl_search.3.html
func KeyctlSearch(ringid int, keyType, description string, destRingid int) (id int, err error) {}

// KeyctlInstantiateIOV implements the KEYCTL_INSTANTIATE_IOV command. This
// command is similar to KEYCTL_INSTANTIATE, except that the payload is a slice
// of Iovec (each of which represents a buffer) instead of a single buffer.
// See the full documentation at:
// http://man7.org/linux/man-pages/man3/keyctl_instantiate_iov.3.html
func KeyctlInstantiateIOV(id int, payload []Iovec, ringid int) error {}

// KeyctlDHCompute implements the KEYCTL_DH_COMPUTE command. This command
// computes a Diffie-Hellman shared secret based on the provide params. The
// secret is written to the provided buffer and the returned size is the number
// of bytes written (returning an error if there is insufficient space in the
// buffer). If a nil buffer is passed in, this function returns the minimum
// buffer length needed to store the appropriate data. Note that this differs
// from KEYCTL_READ's behavior which always returns the requested payload size.
// See the full documentation at:
// http://man7.org/linux/man-pages/man3/keyctl_dh_compute.3.html
func KeyctlDHCompute(params *KeyctlDHParams, buffer []byte) (size int, err error) {}

// KeyctlRestrictKeyring implements the KEYCTL_RESTRICT_KEYRING command. This
// command limits the set of keys that can be linked to the keyring, regardless
// of keyring permissions. The command requires the "setattr" permission.
//
// When called with an empty keyType the command locks the keyring, preventing
// any further keys from being linked to the keyring.
//
// The "asymmetric" keyType defines restrictions requiring key payloads to be
// DER encoded X.509 certificates signed by keys in another keyring. Restrictions
// for "asymmetric" include "builtin_trusted", "builtin_and_secondary_trusted",
// "key_or_keyring:<key>", and "key_or_keyring:<key>:chain".
//
// As of Linux 4.12, only the "asymmetric" keyType defines type-specific
// restrictions.
//
// See the full documentation at:
// http://man7.org/linux/man-pages/man3/keyctl_restrict_keyring.3.html
// http://man7.org/linux/man-pages/man2/keyctl.2.html
func KeyctlRestrictKeyring(ringid int, keyType string, restriction string) error {}

func recvmsgRaw(fd int, iov []Iovec, oob []byte, flags int, rsa *RawSockaddrAny) (n, oobn int, recvflags int, err error) {}

func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Socklen, flags int) (n int, err error) {}

// BindToDevice binds the socket associated with fd to device.
func BindToDevice(fd int, device string) (err error) {}

func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err error) {}

func PtracePeekText(pid int, addr uintptr, out []byte) (count int, err error) {}

func PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error) {}

func PtracePeekUser(pid int, addr uintptr, out []byte) (count int, err error) {}

func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (count int, err error) {}

func PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error) {}

func PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error) {}

func PtracePokeUser(pid int, addr uintptr, data []byte) (count int, err error) {}

const elfNT_PRSTATUS

func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) {}

func PtraceSetRegs(pid int, regs *PtraceRegs) (err error) {}

func PtraceSetOptions(pid int, options int) (err error) {}

func PtraceGetEventMsg(pid int) (msg uint, err error) {}

func PtraceCont(pid int, signal int) (err error) {}

func PtraceSyscall(pid int, signal int) (err error) {}

func PtraceSingleStep(pid int) (err error) {}

func PtraceInterrupt(pid int) (err error) {}

func PtraceAttach(pid int) (err error) {}

func PtraceSeize(pid int) (err error) {}

func PtraceDetach(pid int) (err error) {}

func Reboot(cmd int) (err error) {}

func direntIno(buf []byte) (uint64, bool) {}

func direntReclen(buf []byte) (uint64, bool) {}

func direntNamlen(buf []byte) (uint64, bool) {}

func Mount(source string, target string, fstype string, flags uintptr, data string) (err error) {}

// MountSetattr is a wrapper for mount_setattr(2).
// https://man7.org/linux/man-pages/man2/mount_setattr.2.html
//
// Requires kernel >= 5.12.
func MountSetattr(dirfd int, pathname string, flags uint, attr *MountAttr) error {}

func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {}

func Dup2(oldfd, newfd int) error {}

func fsconfigCommon(fd int, cmd uint, key string, value *byte, aux int) (err error) {}

// FsconfigSetFlag is equivalent to fsconfig(2) called
// with cmd == FSCONFIG_SET_FLAG.
//
// fd is the filesystem context to act upon.
// key the parameter key to set.
func FsconfigSetFlag(fd int, key string) (err error) {}

// FsconfigSetString is equivalent to fsconfig(2) called
// with cmd == FSCONFIG_SET_STRING.
//
// fd is the filesystem context to act upon.
// key the parameter key to set.
// value is the parameter value to set.
func FsconfigSetString(fd int, key string, value string) (err error) {}

// FsconfigSetBinary is equivalent to fsconfig(2) called
// with cmd == FSCONFIG_SET_BINARY.
//
// fd is the filesystem context to act upon.
// key the parameter key to set.
// value is the parameter value to set.
func FsconfigSetBinary(fd int, key string, value []byte) (err error) {}

// FsconfigSetPath is equivalent to fsconfig(2) called
// with cmd == FSCONFIG_SET_PATH.
//
// fd is the filesystem context to act upon.
// key the parameter key to set.
// path is a non-empty path for specified key.
// atfd is a file descriptor at which to start lookup from or AT_FDCWD.
func FsconfigSetPath(fd int, key string, path string, atfd int) (err error) {}

// FsconfigSetPathEmpty is equivalent to fsconfig(2) called
// with cmd == FSCONFIG_SET_PATH_EMPTY. The same as
// FconfigSetPath but with AT_PATH_EMPTY implied.
func FsconfigSetPathEmpty(fd int, key string, path string, atfd int) (err error) {}

// FsconfigSetFd is equivalent to fsconfig(2) called
// with cmd == FSCONFIG_SET_FD.
//
// fd is the filesystem context to act upon.
// key the parameter key to set.
// value is a file descriptor to be assigned to specified key.
func FsconfigSetFd(fd int, key string, value int) (err error) {}

// FsconfigCreate is equivalent to fsconfig(2) called
// with cmd == FSCONFIG_CMD_CREATE.
//
// fd is the filesystem context to act upon.
func FsconfigCreate(fd int) (err error) {}

// FsconfigReconfigure is equivalent to fsconfig(2) called
// with cmd == FSCONFIG_CMD_RECONFIGURE.
//
// fd is the filesystem context to act upon.
func FsconfigReconfigure(fd int) (err error) {}

func Getpgrp() (pid int) {}

func Getrandom(buf []byte, flags int) (n int, err error) {}

//go:linkname syscall_prlimit syscall.prlimit
func syscall_prlimit(pid, resource int, newlimit, old *syscall.Rlimit) error

func Prlimit(pid, resource int, newlimit, old *Rlimit) error {}

// PrctlRetInt performs a prctl operation specified by option and further
// optional arguments arg2 through arg5 depending on option. It returns a
// non-negative integer that is returned by the prctl syscall.
func PrctlRetInt(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (int, error) {}

func Setuid(uid int) (err error) {}

func Setgid(gid int) (err error) {}

func Setreuid(ruid, euid int) (err error) {}

func Setregid(rgid, egid int) (err error) {}

func Setresuid(ruid, euid, suid int) (err error) {}

func Setresgid(rgid, egid, sgid int) (err error) {}

// SetfsgidRetGid sets fsgid for current thread and returns previous fsgid set.
// setfsgid(2) will return a non-nil error only if its caller lacks CAP_SETUID capability.
// If the call fails due to other reasons, current fsgid will be returned.
func SetfsgidRetGid(gid int) (int, error) {}

// SetfsuidRetUid sets fsuid for current thread and returns previous fsuid set.
// setfsgid(2) will return a non-nil error only if its caller lacks CAP_SETUID capability
// If the call fails due to other reasons, current fsuid will be returned.
func SetfsuidRetUid(uid int) (int, error) {}

func Setfsgid(gid int) error {}

func Setfsuid(uid int) error {}

func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) {}

const minIovec

// appendBytes converts bs to Iovecs and appends them to vecs.
func appendBytes(vecs []Iovec, bs [][]byte) []Iovec {}

// offs2lohi splits offs into its low and high order bits.
func offs2lohi(offs int64) (lo, hi uintptr) {}

func Readv(fd int, iovs [][]byte) (n int, err error) {}

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

func Preadv2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) {}

func readvRacedetect(iovecs []Iovec, n int, err error) {}

func Writev(fd int, iovs [][]byte) (n int, err error) {}

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

func Pwritev2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) {}

func writevRacedetect(iovecs []Iovec, n int) {}

const mremapFixed

const mremapDontunmap

const mremapMaymove

// Vmsplice splices user pages from a slice of Iovecs into a pipe specified by fd,
// using the specified flags.
func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {}

func isGroupMember(gid int) bool {}

func isCapDacOverrideSet() bool {}

func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {}

type fileHandle

type FileHandle

// NewFileHandle constructs a FileHandle.
func NewFileHandle(handleType int32, handle []byte) FileHandle {}

func (fh *FileHandle) Size() int   {}

func (fh *FileHandle) Type() int32 {}

func (fh *FileHandle) Bytes() []byte {}

// NameToHandleAt wraps the name_to_handle_at system call; it obtains
// a handle for a path name.
func NameToHandleAt(dirfd int, path string, flags int) (handle FileHandle, mountID int, err error) {}

// OpenByHandleAt wraps the open_by_handle_at system call; it opens a
// file via a handle as previously returned by NameToHandleAt.
func OpenByHandleAt(mountFD int, handle FileHandle, flags int) (fd int, err error) {}

// Klogset wraps the sys_syslog system call; it sets console_loglevel to
// the value specified by arg and passes a dummy pointer to bufp.
func Klogset(typ int, arg int) (err error) {}

type RemoteIovec

// MakeItimerval creates an Itimerval from interval and value durations.
func MakeItimerval(interval, value time.Duration) Itimerval {}

type ItimerWhich

const ItimerReal

const ItimerVirtual

const ItimerProf

// Getitimer wraps getitimer(2) to return the current value of the timer
// specified by which.
func Getitimer(which ItimerWhich) (Itimerval, error) {}

// Setitimer wraps setitimer(2) to arm or disarm the timer specified by which.
// It returns the previous value of the timer.
//
// If the Itimerval argument is the zero value, the timer will be disarmed.
func Setitimer(which ItimerWhich, it Itimerval) (Itimerval, error) {}

func PthreadSigmask(how int, set, oldset *Sigset_t) error {}

func Getresuid() (ruid, euid, suid int) {}

func Getresgid() (rgid, egid, sgid int) {}

// Pselect is a wrapper around the Linux pselect6 system call.
// This version does not modify the timeout argument.
func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {}

// SchedSetAttr is a wrapper for sched_setattr(2) syscall.
// https://man7.org/linux/man-pages/man2/sched_setattr.2.html
func SchedSetAttr(pid int, attr *SchedAttr, flags uint) error {}

// SchedGetAttr is a wrapper for sched_getattr(2) syscall.
// https://man7.org/linux/man-pages/man2/sched_getattr.2.html
func SchedGetAttr(pid int, flags uint) (*SchedAttr, error) {}