linux

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dup3 added in v1.4.0

func Dup3(oldfd, newfd, flags int) error

Dup3 wraps unix.Dup3.

func Exec added in v1.4.0

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 added in v1.4.0

func Getwd() (wd string, err error)

Getwd wraps unix.Getwd.

func Open added in v1.4.0

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

Open wraps unix.Open.

func Openat added in v1.4.0

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 added in v1.4.0

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

Recvfrom wraps unix.Recvfrom.

func Sendmsg added in v1.4.0

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

Sendmsg wraps unix.Sendmsg.

func SetMempolicy added in v1.4.0

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

SetMempolicy wraps set_mempolicy.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL