Documentation
¶
Index ¶
- func ClearKeepCaps() error
- func ClearRlimitNofileCache(lim *syscall.Rlimit)
- func Copy(dst io.Writer, src io.Reader) (copied int64, err error)
- func ExecutableMemfd(comment string, flags int) (*os.File, error)
- func GetPtyPeer(ptyFd uintptr, unsafePeerPath string, flags int) (*os.File, error)
- func GetSubreaper() (int, error)
- func SetKeepCaps() error
- func SetLinuxPersonality(personality int) error
- func SetParentDeathSignal(sig uintptr) error
- func SetSubreaper(i int) error
- func Setctty() error
- type ParentDeathSignal
- type Stat_t
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearKeepCaps ¶
func ClearKeepCaps() error
func ClearRlimitNofileCache ¶ added in v1.1.13
ClearRlimitNofileCache clears go runtime's nofile rlimit cache. The argument is process RLIMIT_NOFILE values. Relies on go.dev/cl/588076.
func Copy ¶ added in v1.2.0
Copy is like io.Copy except it uses sendfile(2) if the source and sink are both (*os.File) as an optimisation to make copies faster.
func ExecutableMemfd ¶ added in v1.2.0
func GetPtyPeer ¶ added in v1.2.8
GetPtyPeer is a wrapper for ioctl(TIOCGPTPEER).
func GetSubreaper ¶ added in v1.0.0
GetSubreaper returns the subreaper setting for the calling process
func SetKeepCaps ¶
func SetKeepCaps() error
func SetLinuxPersonality ¶ added in v1.2.0
SetLinuxPersonality sets the Linux execution personality. For more information see the personality syscall documentation. checkout getLinuxPersonalityFromStr() from libcontainer/specconv/spec_linux.go for type conversion.
func SetParentDeathSignal ¶
func SetSubreaper ¶ added in v0.1.0
SetSubreaper sets the value i as the subreaper setting for the calling process
Types ¶
type ParentDeathSignal ¶
type ParentDeathSignal int
func GetParentDeathSignal ¶
func GetParentDeathSignal() (ParentDeathSignal, error)
func (ParentDeathSignal) Restore ¶
func (p ParentDeathSignal) Restore() error
func (ParentDeathSignal) Set ¶
func (p ParentDeathSignal) Set() error
type Stat_t ¶ added in v1.0.0
type Stat_t struct {
// Name is the command run by the process.
Name string
// State is the state of the process.
State State
// StartTime is the number of clock ticks after system boot (since
// Linux 2.6).
StartTime uint64
}
Stat_t represents the information from /proc/[pid]/stat, as described in proc(5) with names based on the /proc/[pid]/status fields.