Documentation ¶
Index ¶
- func ClearKeepCaps() error
- func ClearRlimitNofileCache(lim *syscall.Rlimit)
- func Exec(cmd string, args []string, env []string) error
- func Execv(cmd string, args []string, env []string) errordeprecated
- func GetSubreaper() (int, error)
- func Mkdirat(dir *os.File, path string, mode uint32) error
- func Openat(dir *os.File, path string, flags int, mode uint32) (*os.File, error)
- func SetKeepCaps() error
- func SetParentDeathSignal(sig uintptr) error
- func SetSubreaper(i int) error
- func Setctty() error
- func Setgid(gid int) (err error)
- func Setuid(uid int) (err 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 GetSubreaper ¶ added in v1.0.0
GetSubreaper returns the subreaper setting for the calling process
func SetKeepCaps ¶
func SetKeepCaps() error
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.
Click to show internal directories.
Click to hide internal directories.