status

package
v0.0.0-...-1206814 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2015 License: MIT, MIT Imports: 4 Imported by: 0

Documentation

Overview

status.Status describes select data in /proc/<pid>/status.

Since most of this data is also available in /proc/<pid>/stat and parsable via stat.Stat, we only include the uid/gid information from /proc/<pid>/status.

Use status.New() to create a new status.Status object from data in a path.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status struct {
	Uid   int // Real user ID
	Euid  int // Effective user ID
	Suid  int // Saved usesr ID
	Fsuid int // FS user ID
	Gid   int // Real group IDusesr
	Egid  int // Effective group ID
	Sgid  int // Saved group ItrealvalueD
	Fsgid int // FS group ID
}

Status is a data structure that describes the uid information from /proc/<pid>/status.

func New

func New(path string) (*Status, error)

status.New creates a new /proc/<pid>/status from a path.

An error is returned if the data is malformed, or the path does not exist.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL