Documentation
¶
Overview ¶
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 []string, 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 Sendmsg(fd int, p, oob []byte, to unix.Sockaddr, flags int) error
- func SetMempolicy(mode uint, mask *unix.CPUSet) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPtyPeer ¶
GetPtyPeer is a wrapper for ioctl(TIOCGPTPEER).
func Openat ¶ added in v1.4.0
Openat wraps unix.Openat.
func Readlinkat ¶
Readlinkat wraps unix.Readlinkat.
func Recvfrom ¶ added in v1.4.0
Recvfrom wraps unix.Recvfrom.
func Sendmsg ¶ added in v1.4.0
Sendmsg wraps unix.Sendmsg.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.