unix

package
v0.0.0-...-6927186 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENOENT                   = linux.ENOENT
	EEXIST                   = linux.EEXIST
	EAGAIN                   = linux.EAGAIN
	ENOSPC                   = linux.ENOSPC
	EINVAL                   = linux.EINVAL
	EPOLLIN                  = linux.EPOLLIN
	EINTR                    = linux.EINTR
	ESRCH                    = linux.ESRCH
	ENODEV                   = linux.ENODEV
	BPF_F_RDONLY_PROG        = linux.BPF_F_RDONLY_PROG
	BPF_F_WRONLY_PROG        = linux.BPF_F_WRONLY_PROG
	BPF_OBJ_NAME_LEN         = linux.BPF_OBJ_NAME_LEN
	BPF_TAG_SIZE             = linux.BPF_TAG_SIZE
	SYS_BPF                  = linux.SYS_BPF
	F_DUPFD_CLOEXEC          = linux.F_DUPFD_CLOEXEC
	EPOLL_CTL_ADD            = linux.EPOLL_CTL_ADD
	EPOLL_CLOEXEC            = linux.EPOLL_CLOEXEC
	O_CLOEXEC                = linux.O_CLOEXEC
	O_NONBLOCK               = linux.O_NONBLOCK
	PROT_READ                = linux.PROT_READ
	PROT_WRITE               = linux.PROT_WRITE
	MAP_SHARED               = linux.MAP_SHARED
	PERF_TYPE_SOFTWARE       = linux.PERF_TYPE_SOFTWARE
	PERF_COUNT_SW_BPF_OUTPUT = linux.PERF_COUNT_SW_BPF_OUTPUT
	PerfBitWatermark         = linux.PerfBitWatermark
	PERF_SAMPLE_RAW          = linux.PERF_SAMPLE_RAW
	PERF_FLAG_FD_CLOEXEC     = linux.PERF_FLAG_FD_CLOEXEC
	RLIM_INFINITY            = linux.RLIM_INFINITY
	RLIMIT_MEMLOCK           = linux.RLIMIT_MEMLOCK
)

Variables

This section is empty.

Functions

func Close

func Close(fd int) (err error)

Close is a wrapper

func EpollCreate1

func EpollCreate1(flag int) (fd int, err error)

EpollCreate1 is a wrapper

func EpollCtl

func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error)

EpollCtl is a wrapper

func EpollWait

func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)

EpollWait is a wrapper

func Eventfd

func Eventfd(initval uint, flags int) (fd int, err error)

Eventfd is a wrapper

func FcntlInt

func FcntlInt(fd uintptr, cmd, arg int) (int, error)

FcntlInt is a wrapper

func Getpid

func Getpid() int

Getpid is a wrapper

func Gettid

func Gettid() int

Gettid is a wrapper

func Mmap

func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error)

Mmap is a wrapper

func Munmap

func Munmap(b []byte) (err error)

Munmap is a wrapper

func PerfEventOpen

func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error)

PerfEventOpen is a wrapper

func SetNonblock

func SetNonblock(fd int, nonblocking bool) (err error)

SetNonblock is a wrapper

func Setrlimit

func Setrlimit(resource int, rlim *Rlimit) (err error)

Setrlimit is a wrapper

func Statfs

func Statfs(path string, buf *Statfs_t) (err error)

Statfs is a wrapper

func Syscall

func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)

Syscall is a wrapper

func Tgkill

func Tgkill(tgid int, tid int, sig syscall.Signal) (err error)

Tgkill is a wrapper

func Uname

func Uname(buf *Utsname) (err error)

Uname is a wrapper

func Write

func Write(fd int, p []byte) (n int, err error)

Write is a wrapper

Types

type EpollEvent

type EpollEvent = linux.EpollEvent

EpollEvent is a wrapper

type PerfEventAttr

type PerfEventAttr = linux.PerfEventAttr

PerfEventAttr is a wrapper

type PerfEventMmapPage

type PerfEventMmapPage linux.PerfEventMmapPage

PerfEventMmapPage is a wrapper

type Rlimit

type Rlimit = linux.Rlimit

Rlimit is a wrapper

type Statfs_t

type Statfs_t = linux.Statfs_t

Statfs_t is a wrapper

type Utsname

type Utsname = linux.Utsname

Utsname is a wrapper

Jump to

Keyboard shortcuts

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