wsyscall

package
v0.0.0-...-d8f7d12 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MS_BIND = 1 << iota
	MS_RDONLY

	RUSAGE_CHILDREN = iota
	RUSAGE_SELF
	RUSAGE_THREAD
)

Variables

This section is empty.

Functions

func Fallocate

func Fallocate(fd int, mode uint32, off int64, len int64) error

func Getrusage

func Getrusage(who int, rusage *Rusage) error

func Ioctl

func Ioctl(fd int, request, argp uintptr) error

func Lstat

func Lstat(path string, statbuf *Stat_t) error

func Mount

func Mount(source string, target string, fstype string, flags uintptr,
	data string) error

func SetAllGid

func SetAllGid(gid int) error

func SetAllUid

func SetAllUid(uid int) error

func SetNetNamespace

func SetNetNamespace(fd int) error

func Stat

func Stat(path string, statbuf *Stat_t) error

func UnshareMountNamespace

func UnshareMountNamespace() error

func UnshareNetNamespace

func UnshareNetNamespace() (int, int, error)

Types

type Rusage

type Rusage struct {
	Utime    Timeval
	Stime    Timeval
	Maxrss   int64
	Ixrss    int64
	Idrss    int64
	Isrss    int64
	Minflt   int64
	Majflt   int64
	Nswap    int64
	Inblock  int64
	Oublock  int64
	Msgsnd   int64
	Msgrcv   int64
	Nsignals int64
	Nvcsw    int64
	Nivcsw   int64
}

type Stat_t

type Stat_t struct {
	Dev     uint64
	Ino     uint64
	Nlink   uint64
	Mode    uint32
	Uid     uint32
	Gid     uint32
	Rdev    uint64
	Size    int64
	Blksize int64
	Blocks  int64
	Atim    syscall.Timespec
	Mtim    syscall.Timespec
	Ctim    syscall.Timespec
}

type Timeval

type Timeval struct {
	Sec  int64
	Usec int64
}

Jump to

Keyboard shortcuts

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