package system
import "github.com/opencontainers/runc/libcontainer/system"
Index ¶
- func GetParentNSeuid() int
- func GetProcessStartTime(pid int) (string, error)
- func RunningInUserNS() bool
- func UIDMapInUserNS(uidmap []user.IDMap) bool
- type Stat_t
- type State
Functions ¶
func GetParentNSeuid ¶
func GetParentNSeuid() int
GetParentNSeuid returns the euid within the parent user namespace Always returns os.Geteuid on non-linux
func GetProcessStartTime ¶
GetProcessStartTime is deprecated. Use Stat(pid) and Stat_t.StartTime instead.
func RunningInUserNS ¶
func RunningInUserNS() bool
RunningInUserNS is a stub for non-Linux systems Always returns false
func UIDMapInUserNS ¶
UIDMapInUserNS is a stub for non-Linux systems Always returns false
Types ¶
type Stat_t ¶
type Stat_t struct { // PID is the process ID. PID uint // 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.
func Stat ¶
Stat returns a Stat_t instance for the specified process.
type State ¶
type State rune
State is the status of a process.
const ( Dead State = 'X' DiskSleep State = 'D' Running State = 'R' Sleeping State = 'S' Stopped State = 'T' TracingStop State = 't' Zombie State = 'Z' )
func (State) String ¶
String forms of the state from proc(5)'s documentation for /proc/[pid]/status' "State" field.
Source Files ¶
- Version
- v1.0.0-rc10
- Published
- Jan 22, 2020
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 15 hours ago –
Tools for package owners.