system
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- func ClearKeepCaps() error
- func ClearRlimitNofileCache(lim *syscall.Rlimit)
- func Copy(dst io.Writer, src io.Reader) (copied int64, err error)
- func Exec(cmd string, args []string, env []string) error
- func ExecutableMemfd(comment 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¶
funcClearKeepCaps¶
func ClearKeepCaps()error
funcClearRlimitNofileCache¶added inv1.1.13
ClearRlimitNofileCache clears go runtime's nofile rlimit cache. The argumentis process RLIMIT_NOFILE values. Relies on go.dev/cl/588076.
funcCopy¶added inv1.2.0
Copy is like io.Copy except it uses sendfile(2) if the source and sink areboth (*os.File) as an optimisation to make copies faster.
funcGetSubreaper¶added inv1.0.0
GetSubreaper returns the subreaper setting for the calling process
funcSetKeepCaps¶
func SetKeepCaps()error
funcSetLinuxPersonality¶added inv1.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.
funcSetSubreaper¶added inv0.1.0
SetSubreaper sets the value i as the subreaper setting for the calling process
Types¶
typeParentDeathSignal¶
type ParentDeathSignalint
funcGetParentDeathSignal¶
func GetParentDeathSignal() (ParentDeathSignal,error)
func (ParentDeathSignal)Restore¶
func (pParentDeathSignal) Restore()error
func (ParentDeathSignal)Set¶
func (pParentDeathSignal) Set()error
typeStat_t¶added inv1.0.0
type Stat_t struct {// Name is the command run by the process.Namestring// State is the state of the process.StateState// StartTime is the number of clock ticks after system boot (since// Linux 2.6).StartTimeuint64}
Stat_t represents the information from /proc/[pid]/stat, asdescribed in proc(5) with names based on the /proc/[pid]/statusfields.