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 ¶
- func Dup3(oldfd, newfd, flags int) error
- func Exec(cmd string, args, env []string) error
- func GetPtyPeer(ptyFd uintptr, unsafePeerPath string, flags int) (*os.File, error)
- func Getwd() (wd string, err error)
- func Open(path string, mode int, perm uint32) (fd int, err error)
- func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error)
- func Readlinkat(dir *os.File, path string) (string, error)
- func Recvfrom(fd int, p []byte, flags int) (n int, from unix.Sockaddr, err error)
- func SchedSetaffinity(pid int, buf []byte) error
- func Sendmsg(fd int, p, oob []byte, to unix.Sockaddr, flags int) error
- func SetMempolicy(mode int, mask *unix.CPUSet) error
Functions ¶
func Dup3 ¶
Dup3 wraps unix.Dup3.
func Exec ¶
Exec wraps unix.Exec.
func GetPtyPeer ¶
GetPtyPeer is a wrapper for ioctl(TIOCGPTPEER).
func Getwd ¶
Getwd wraps unix.Getwd.
func Open ¶
Open wraps unix.Open.
func Openat ¶
Openat wraps unix.Openat.
func Readlinkat ¶
Readlinkat wraps unix.Readlinkat.
func Recvfrom ¶
Recvfrom wraps unix.Recvfrom.
func SchedSetaffinity ¶
SchedSetaffinity wraps sched_setaffinity syscall without unix.CPUSet size limitation.
func Sendmsg ¶
Sendmsg wraps unix.Sendmsg.
func SetMempolicy ¶
SetMempolicy wraps set_mempolicy.
Source Files ¶
- Version
- v1.5.0-rc.2
- Published
- Apr 3, 2026
- Platform
- darwin/amd64
- Imports
- 4 packages
- Last checked
- 25 minutes ago –
Tools for package owners.