system

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2014 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotSupportedPlatform = errors.New("platform and architecture is not supported")
)

Functions

func ClearKeepCaps added in v1.0.1

func ClearKeepCaps() error

func CloseFdsFrom added in v0.11.0

func CloseFdsFrom(minFd int) error

func CreateMasterAndConsole added in v0.11.0

func CreateMasterAndConsole() (*os.File, string, error)

func GetClockTicks added in v0.11.0

func GetClockTicks() int

func GetLastAccess

func GetLastAccess(stat *syscall.Stat_t) syscall.Timespec

func GetLastModification

func GetLastModification(stat *syscall.Stat_t) syscall.Timespec

func GetProcessStartTime added in v0.10.0

func GetProcessStartTime(pid int) (string, error)

look in /proc to find the process start time so that we can verify that this pid has started after ourself

func Gettid added in v0.10.0

func Gettid() int

func LUtimesNano

func LUtimesNano(path string, ts []syscall.Timespec) error

func Lgetxattr

func Lgetxattr(path string, attr string) ([]byte, error)

func Lsetxattr

func Lsetxattr(path string, attr string, data []byte, flags int) error

func SetCloneFlags

func SetCloneFlags(cmd *exec.Cmd, flag uintptr)

func SetKeepCaps added in v1.0.1

func SetKeepCaps() error

func UsetCloseOnExec

func UsetCloseOnExec(fd uintptr) error

func UtimesNano

func UtimesNano(path string, ts []syscall.Timespec) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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