package linux

import "github.com/opencontainers/runc/internal/linux"

Package linux provides minimal wrappers around Linux system calls, primarily to provide support for automatic EINTR-retries.

Index

Functions

func Dup3

func Dup3(oldfd, newfd, flags int) error

Dup3 wraps unix.Dup3.

func Exec

func Exec(cmd string, args []string, env []string) error

Exec wraps unix.Exec.

func GetPtyPeer

func GetPtyPeer(ptyFd uintptr, unsafePeerPath string, flags int) (*os.File, error)

GetPtyPeer is a wrapper for ioctl(TIOCGPTPEER).

func Getwd

func Getwd() (wd string, err error)

Getwd wraps unix.Getwd.

func Open

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

Open wraps unix.Open.

func Openat

func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error)

Openat wraps unix.Openat.

func Readlinkat

func Readlinkat(dir *os.File, path string) (string, error)

Readlinkat wraps unix.Readlinkat.

func Recvfrom

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

Recvfrom wraps unix.Recvfrom.

func Sendmsg

func Sendmsg(fd int, p, oob []byte, to unix.Sockaddr, flags int) error

Sendmsg wraps unix.Sendmsg.

func SetMempolicy

func SetMempolicy(mode uint, mask *unix.CPUSet) error

SetMempolicy wraps set_mempolicy.

Source Files

doc.go eintr.go linux.go

Version
v1.4.0-rc.3
Published
Nov 5, 2025
Platform
windows/amd64
Imports
4 packages
Last checked
14 minutes ago

Tools for package owners.