syscall

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package syscall provides a mockable wrapper for syscall.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) Accept

func (*Impl) Accept(fd int) (nfd int, sa syscall.Sockaddr, err error)

func (*Impl) Accept4

func (*Impl) Accept4(fd int, flags int) (nfd int, sa syscall.Sockaddr, err error)

func (*Impl) Access

func (*Impl) Access(path string, mode uint32) (err error)

func (*Impl) Acct

func (*Impl) Acct(path string) (err error)

func (*Impl) Adjtimex

func (*Impl) Adjtimex(buf *syscall.Timex) (state int, err error)

func (*Impl) AllThreadsSyscall

func (*Impl) AllThreadsSyscall(trap uintptr, a1 uintptr, a2 uintptr, a3 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)

func (*Impl) AllThreadsSyscall6

func (*Impl) AllThreadsSyscall6(trap uintptr, a1 uintptr, a2 uintptr, a3 uintptr, a4 uintptr, a5 uintptr, a6 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)

func (*Impl) AttachLsf

func (*Impl) AttachLsf(fd int, i []syscall.SockFilter) error

func (*Impl) Bind

func (*Impl) Bind(fd int, sa syscall.Sockaddr) (err error)

func (*Impl) BindToDevice

func (*Impl) BindToDevice(fd int, device string) (err error)

func (*Impl) BytePtrFromString

func (*Impl) BytePtrFromString(s string) (*byte, error)

func (*Impl) ByteSliceFromString

func (*Impl) ByteSliceFromString(s string) ([]byte, error)

func (*Impl) Chdir

func (*Impl) Chdir(path string) (err error)

func (*Impl) Chmod

func (*Impl) Chmod(path string, mode uint32) (err error)

func (*Impl) Chown

func (*Impl) Chown(path string, uid int, gid int) (err error)

func (*Impl) Chroot

func (*Impl) Chroot(path string) (err error)

func (*Impl) Clearenv

func (*Impl) Clearenv()

func (*Impl) Close

func (*Impl) Close(fd int) (err error)

func (*Impl) CloseOnExec

func (*Impl) CloseOnExec(fd int)

func (*Impl) CmsgLen

func (*Impl) CmsgLen(datalen int) int

func (*Impl) CmsgSpace

func (*Impl) CmsgSpace(datalen int) int

func (*Impl) Connect

func (*Impl) Connect(fd int, sa syscall.Sockaddr) (err error)

func (*Impl) Creat

func (*Impl) Creat(path string, mode uint32) (fd int, err error)

func (*Impl) DetachLsf

func (*Impl) DetachLsf(fd int) error

func (*Impl) Dup

func (*Impl) Dup(oldfd int) (fd int, err error)

func (*Impl) Dup2

func (*Impl) Dup2(oldfd int, newfd int) (err error)

func (*Impl) Dup3

func (*Impl) Dup3(oldfd int, newfd int, flags int) (err error)

func (*Impl) Environ

func (*Impl) Environ() []string

func (*Impl) EpollCreate

func (*Impl) EpollCreate(size int) (fd int, err error)

func (*Impl) EpollCreate1

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

func (*Impl) EpollCtl

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

func (*Impl) EpollWait

func (*Impl) EpollWait(epfd int, events []syscall.EpollEvent, msec int) (n int, err error)

func (*Impl) Exec

func (*Impl) Exec(argv0 string, argv []string, envv []string) (err error)

func (*Impl) Exit

func (*Impl) Exit(code int)

func (*Impl) Faccessat

func (*Impl) Faccessat(dirfd int, path string, mode uint32, flags int) (err error)

func (*Impl) Fallocate

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

func (*Impl) Fchdir

func (*Impl) Fchdir(fd int) (err error)

func (*Impl) Fchmod

func (*Impl) Fchmod(fd int, mode uint32) (err error)

func (*Impl) Fchmodat

func (*Impl) Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)

func (*Impl) Fchown

func (*Impl) Fchown(fd int, uid int, gid int) (err error)

func (*Impl) Fchownat

func (*Impl) Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)

func (*Impl) FcntlFlock

func (*Impl) FcntlFlock(fd uintptr, cmd int, lk *syscall.Flock_t) error

func (*Impl) Fdatasync

func (*Impl) Fdatasync(fd int) (err error)

func (*Impl) Flock

func (*Impl) Flock(fd int, how int) (err error)

func (*Impl) ForkExec

func (*Impl) ForkExec(argv0 string, argv []string, attr *syscall.ProcAttr) (pid int, err error)

func (*Impl) Fstat

func (*Impl) Fstat(fd int, stat *syscall.Stat_t) (err error)

func (*Impl) Fstatfs

func (*Impl) Fstatfs(fd int, buf *syscall.Statfs_t) (err error)

func (*Impl) Fsync

func (*Impl) Fsync(fd int) (err error)

func (*Impl) Ftruncate

func (*Impl) Ftruncate(fd int, length int64) (err error)

func (*Impl) Futimes

func (*Impl) Futimes(fd int, tv []syscall.Timeval) (err error)

func (*Impl) Futimesat

func (*Impl) Futimesat(dirfd int, path string, tv []syscall.Timeval) (err error)

func (*Impl) Getcwd

func (*Impl) Getcwd(buf []byte) (n int, err error)

func (*Impl) Getdents

func (*Impl) Getdents(fd int, buf []byte) (n int, err error)

func (*Impl) Getegid

func (*Impl) Getegid() (egid int)

func (*Impl) Getenv

func (*Impl) Getenv(key string) (value string, found bool)

func (*Impl) Geteuid

func (*Impl) Geteuid() (euid int)

func (*Impl) Getgid

func (*Impl) Getgid() (gid int)

func (*Impl) Getgroups

func (*Impl) Getgroups() (gids []int, err error)

func (*Impl) Getpagesize

func (*Impl) Getpagesize() int

func (*Impl) Getpeername

func (*Impl) Getpeername(fd int) (sa syscall.Sockaddr, err error)

func (*Impl) Getpgid

func (*Impl) Getpgid(pid int) (pgid int, err error)

func (*Impl) Getpgrp

func (*Impl) Getpgrp() (pid int)

func (*Impl) Getpid

func (*Impl) Getpid() (pid int)

func (*Impl) Getppid

func (*Impl) Getppid() (ppid int)

func (*Impl) Getpriority

func (*Impl) Getpriority(which int, who int) (prio int, err error)

func (*Impl) Getrlimit

func (*Impl) Getrlimit(resource int, rlim *syscall.Rlimit) (err error)

func (*Impl) Getrusage

func (*Impl) Getrusage(who int, rusage *syscall.Rusage) (err error)

func (*Impl) Getsockname

func (*Impl) Getsockname(fd int) (sa syscall.Sockaddr, err error)

func (*Impl) GetsockoptICMPv6Filter

func (*Impl) GetsockoptICMPv6Filter(fd int, level int, opt int) (*syscall.ICMPv6Filter, error)

func (*Impl) GetsockoptIPMreq

func (*Impl) GetsockoptIPMreq(fd int, level int, opt int) (*syscall.IPMreq, error)

func (*Impl) GetsockoptIPMreqn

func (*Impl) GetsockoptIPMreqn(fd int, level int, opt int) (*syscall.IPMreqn, error)

func (*Impl) GetsockoptIPv6MTUInfo

func (*Impl) GetsockoptIPv6MTUInfo(fd int, level int, opt int) (*syscall.IPv6MTUInfo, error)

func (*Impl) GetsockoptIPv6Mreq

func (*Impl) GetsockoptIPv6Mreq(fd int, level int, opt int) (*syscall.IPv6Mreq, error)

func (*Impl) GetsockoptInet4Addr

func (*Impl) GetsockoptInet4Addr(fd int, level int, opt int) (value [4]byte, err error)

func (*Impl) GetsockoptInt

func (*Impl) GetsockoptInt(fd int, level int, opt int) (value int, err error)

func (*Impl) GetsockoptUcred

func (*Impl) GetsockoptUcred(fd int, level int, opt int) (*syscall.Ucred, error)

func (*Impl) Gettid

func (*Impl) Gettid() (tid int)

func (*Impl) Gettimeofday

func (*Impl) Gettimeofday(tv *syscall.Timeval) (err error)

func (*Impl) Getuid

func (*Impl) Getuid() (uid int)

func (*Impl) Getwd

func (*Impl) Getwd() (wd string, err error)

func (*Impl) Getxattr

func (*Impl) Getxattr(path string, attr string, dest []byte) (sz int, err error)

func (*Impl) InotifyAddWatch

func (*Impl) InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error)

func (*Impl) InotifyInit

func (*Impl) InotifyInit() (fd int, err error)

func (*Impl) InotifyInit1

func (*Impl) InotifyInit1(flags int) (fd int, err error)

func (*Impl) InotifyRmWatch

func (*Impl) InotifyRmWatch(fd int, watchdesc uint32) (success int, err error)

func (*Impl) Ioperm

func (*Impl) Ioperm(from int, num int, on int) (err error)

func (*Impl) Iopl

func (*Impl) Iopl(level int) (err error)

func (*Impl) Kill

func (*Impl) Kill(pid int, sig syscall.Signal) (err error)

func (*Impl) Klogctl

func (*Impl) Klogctl(typ int, buf []byte) (n int, err error)

func (*Impl) Lchown

func (*Impl) Lchown(path string, uid int, gid int) (err error)
func (*Impl) Link(oldpath string, newpath string) (err error)

func (*Impl) Listen

func (*Impl) Listen(s int, n int) (err error)

func (*Impl) Listxattr

func (*Impl) Listxattr(path string, dest []byte) (sz int, err error)

func (*Impl) LsfJump

func (*Impl) LsfJump(code int, k int, jt int, jf int) *syscall.SockFilter

func (*Impl) LsfSocket

func (*Impl) LsfSocket(ifindex int, proto int) (int, error)

func (*Impl) LsfStmt

func (*Impl) LsfStmt(code int, k int) *syscall.SockFilter

func (*Impl) Lstat

func (*Impl) Lstat(path string, stat *syscall.Stat_t) (err error)

func (*Impl) Madvise

func (*Impl) Madvise(b []byte, advice int) (err error)

func (*Impl) Mkdir

func (*Impl) Mkdir(path string, mode uint32) (err error)

func (*Impl) Mkdirat

func (*Impl) Mkdirat(dirfd int, path string, mode uint32) (err error)

func (*Impl) Mkfifo

func (*Impl) Mkfifo(path string, mode uint32) (err error)

func (*Impl) Mknod

func (*Impl) Mknod(path string, mode uint32, dev int) (err error)

func (*Impl) Mknodat

func (*Impl) Mknodat(dirfd int, path string, mode uint32, dev int) (err error)

func (*Impl) Mlock

func (*Impl) Mlock(b []byte) (err error)

func (*Impl) Mlockall

func (*Impl) Mlockall(flags int) (err error)

func (*Impl) Mmap

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

func (*Impl) Mount

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

func (*Impl) Mprotect

func (*Impl) Mprotect(b []byte, prot int) (err error)

func (*Impl) Munlock

func (*Impl) Munlock(b []byte) (err error)

func (*Impl) Munlockall

func (*Impl) Munlockall() (err error)

func (*Impl) Munmap

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

func (*Impl) Nanosleep

func (*Impl) Nanosleep(time *syscall.Timespec, leftover *syscall.Timespec) (err error)

func (*Impl) NetlinkRIB

func (*Impl) NetlinkRIB(proto int, family int) ([]byte, error)

func (*Impl) NsecToTimespec

func (*Impl) NsecToTimespec(nsec int64) syscall.Timespec

func (*Impl) NsecToTimeval

func (*Impl) NsecToTimeval(nsec int64) syscall.Timeval

func (*Impl) Open

func (*Impl) Open(path string, mode int, perm uint32) (fd int, err error)

func (*Impl) Openat

func (*Impl) Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error)

func (*Impl) ParseDirent

func (*Impl) ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string)

func (*Impl) ParseNetlinkMessage

func (*Impl) ParseNetlinkMessage(b []byte) ([]syscall.NetlinkMessage, error)

func (*Impl) ParseNetlinkRouteAttr

func (*Impl) ParseNetlinkRouteAttr(m *syscall.NetlinkMessage) ([]syscall.NetlinkRouteAttr, error)

func (*Impl) ParseSocketControlMessage

func (*Impl) ParseSocketControlMessage(b []byte) ([]syscall.SocketControlMessage, error)

func (*Impl) ParseUnixCredentials

func (*Impl) ParseUnixCredentials(m *syscall.SocketControlMessage) (*syscall.Ucred, error)

func (*Impl) ParseUnixRights

func (*Impl) ParseUnixRights(m *syscall.SocketControlMessage) ([]int, error)

func (*Impl) Pause

func (*Impl) Pause() (err error)

func (*Impl) Pipe

func (*Impl) Pipe(p []int) error

func (*Impl) Pipe2

func (*Impl) Pipe2(p []int, flags int) error

func (*Impl) PivotRoot

func (*Impl) PivotRoot(newroot string, putold string) (err error)

func (*Impl) Pread

func (*Impl) Pread(fd int, p []byte, offset int64) (n int, err error)

func (*Impl) PtraceAttach

func (*Impl) PtraceAttach(pid int) (err error)

func (*Impl) PtraceCont

func (*Impl) PtraceCont(pid int, signal int) (err error)

func (*Impl) PtraceDetach

func (*Impl) PtraceDetach(pid int) (err error)

func (*Impl) PtraceGetEventMsg

func (*Impl) PtraceGetEventMsg(pid int) (msg uint, err error)

func (*Impl) PtraceGetRegs

func (*Impl) PtraceGetRegs(pid int, regsout *syscall.PtraceRegs) (err error)

func (*Impl) PtracePeekData

func (*Impl) PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error)

func (*Impl) PtracePeekText

func (*Impl) PtracePeekText(pid int, addr uintptr, out []byte) (count int, err error)

func (*Impl) PtracePokeData

func (*Impl) PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error)

func (*Impl) PtracePokeText

func (*Impl) PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error)

func (*Impl) PtraceSetOptions

func (*Impl) PtraceSetOptions(pid int, options int) (err error)

func (*Impl) PtraceSetRegs

func (*Impl) PtraceSetRegs(pid int, regs *syscall.PtraceRegs) (err error)

func (*Impl) PtraceSingleStep

func (*Impl) PtraceSingleStep(pid int) (err error)

func (*Impl) PtraceSyscall

func (*Impl) PtraceSyscall(pid int, signal int) (err error)

func (*Impl) Pwrite

func (*Impl) Pwrite(fd int, p []byte, offset int64) (n int, err error)

func (*Impl) RawSyscall

func (*Impl) RawSyscall(trap uintptr, a1 uintptr, a2 uintptr, a3 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)

func (*Impl) RawSyscall6

func (*Impl) RawSyscall6(trap uintptr, a1 uintptr, a2 uintptr, a3 uintptr, a4 uintptr, a5 uintptr, a6 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)

func (*Impl) Read

func (*Impl) Read(fd int, p []byte) (n int, err error)

func (*Impl) ReadDirent

func (*Impl) ReadDirent(fd int, buf []byte) (n int, err error)
func (*Impl) Readlink(path string, buf []byte) (n int, err error)

func (*Impl) Reboot

func (*Impl) Reboot(cmd int) (err error)

func (*Impl) Recvfrom

func (*Impl) Recvfrom(fd int, p []byte, flags int) (n int, from syscall.Sockaddr, err error)

func (*Impl) Recvmsg

func (*Impl) Recvmsg(fd int, p []byte, oob []byte, flags int) (n int, oobn int, recvflags int, from syscall.Sockaddr, err error)

func (*Impl) Removexattr

func (*Impl) Removexattr(path string, attr string) (err error)

func (*Impl) Rename

func (*Impl) Rename(oldpath string, newpath string) (err error)

func (*Impl) Renameat

func (*Impl) Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)

func (*Impl) Rmdir

func (*Impl) Rmdir(path string) error

func (*Impl) Seek

func (*Impl) Seek(fd int, offset int64, whence int) (off int64, err error)

func (*Impl) Select

func (*Impl) Select(nfd int, r *syscall.FdSet, w *syscall.FdSet, e *syscall.FdSet, timeout *syscall.Timeval) (n int, err error)

func (*Impl) Sendfile

func (*Impl) Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)

func (*Impl) Sendmsg

func (*Impl) Sendmsg(fd int, p []byte, oob []byte, to syscall.Sockaddr, flags int) (err error)

func (*Impl) SendmsgN

func (*Impl) SendmsgN(fd int, p []byte, oob []byte, to syscall.Sockaddr, flags int) (n int, err error)

func (*Impl) Sendto

func (*Impl) Sendto(fd int, p []byte, flags int, to syscall.Sockaddr) (err error)

func (*Impl) SetLsfPromisc

func (*Impl) SetLsfPromisc(name string, m bool) error

func (*Impl) SetNonblock

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

func (*Impl) Setdomainname

func (*Impl) Setdomainname(p []byte) (err error)

func (*Impl) Setegid

func (*Impl) Setegid(egid int) (err error)

func (*Impl) Setenv

func (*Impl) Setenv(key string, value string) error

func (*Impl) Seteuid

func (*Impl) Seteuid(euid int) (err error)

func (*Impl) Setfsgid

func (*Impl) Setfsgid(gid int) (err error)

func (*Impl) Setfsuid

func (*Impl) Setfsuid(uid int) (err error)

func (*Impl) Setgid

func (*Impl) Setgid(gid int) (err error)

func (*Impl) Setgroups

func (*Impl) Setgroups(gids []int) (err error)

func (*Impl) Sethostname

func (*Impl) Sethostname(p []byte) (err error)

func (*Impl) Setpgid

func (*Impl) Setpgid(pid int, pgid int) (err error)

func (*Impl) Setpriority

func (*Impl) Setpriority(which int, who int, prio int) (err error)

func (*Impl) Setregid

func (*Impl) Setregid(rgid int, egid int) (err error)

func (*Impl) Setresgid

func (*Impl) Setresgid(rgid int, egid int, sgid int) (err error)

func (*Impl) Setresuid

func (*Impl) Setresuid(ruid int, euid int, suid int) (err error)

func (*Impl) Setreuid

func (*Impl) Setreuid(ruid int, euid int) (err error)

func (*Impl) Setrlimit

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

func (*Impl) Setsid

func (*Impl) Setsid() (pid int, err error)

func (*Impl) SetsockoptByte

func (*Impl) SetsockoptByte(fd int, level int, opt int, value byte) (err error)

func (*Impl) SetsockoptICMPv6Filter

func (*Impl) SetsockoptICMPv6Filter(fd int, level int, opt int, filter *syscall.ICMPv6Filter) error

func (*Impl) SetsockoptIPMreq

func (*Impl) SetsockoptIPMreq(fd int, level int, opt int, mreq *syscall.IPMreq) (err error)

func (*Impl) SetsockoptIPMreqn

func (*Impl) SetsockoptIPMreqn(fd int, level int, opt int, mreq *syscall.IPMreqn) (err error)

func (*Impl) SetsockoptIPv6Mreq

func (*Impl) SetsockoptIPv6Mreq(fd int, level int, opt int, mreq *syscall.IPv6Mreq) (err error)

func (*Impl) SetsockoptInet4Addr

func (*Impl) SetsockoptInet4Addr(fd int, level int, opt int, value [4]byte) (err error)

func (*Impl) SetsockoptInt

func (*Impl) SetsockoptInt(fd int, level int, opt int, value int) (err error)

func (*Impl) SetsockoptLinger

func (*Impl) SetsockoptLinger(fd int, level int, opt int, l *syscall.Linger) (err error)

func (*Impl) SetsockoptString

func (*Impl) SetsockoptString(fd int, level int, opt int, s string) (err error)

func (*Impl) SetsockoptTimeval

func (*Impl) SetsockoptTimeval(fd int, level int, opt int, tv *syscall.Timeval) (err error)

func (*Impl) Settimeofday

func (*Impl) Settimeofday(tv *syscall.Timeval) (err error)

func (*Impl) Setuid

func (*Impl) Setuid(uid int) (err error)

func (*Impl) Setxattr

func (*Impl) Setxattr(path string, attr string, data []byte, flags int) (err error)

func (*Impl) Shutdown

func (*Impl) Shutdown(fd int, how int) (err error)

func (*Impl) SlicePtrFromStrings

func (*Impl) SlicePtrFromStrings(ss []string) ([]*byte, error)

func (*Impl) Socket

func (*Impl) Socket(domain int, typ int, proto int) (fd int, err error)

func (*Impl) Socketpair

func (*Impl) Socketpair(domain int, typ int, proto int) (fd [2]int, err error)

func (*Impl) Splice

func (*Impl) Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)

func (*Impl) StartProcess

func (*Impl) StartProcess(argv0 string, argv []string, attr *syscall.ProcAttr) (pid int, handle uintptr, err error)

func (*Impl) Stat

func (*Impl) Stat(path string, stat *syscall.Stat_t) (err error)

func (*Impl) Statfs

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

func (*Impl) StringBytePtr

func (*Impl) StringBytePtr(s string) *byte

func (*Impl) StringByteSlice

func (*Impl) StringByteSlice(s string) []byte

func (*Impl) StringSlicePtr

func (*Impl) StringSlicePtr(ss []string) []*byte
func (*Impl) Symlink(oldpath string, newpath string) (err error)

func (*Impl) Sync

func (*Impl) Sync()

func (*Impl) SyncFileRange

func (*Impl) SyncFileRange(fd int, off int64, n int64, flags int) (err error)

func (*Impl) Syscall

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

func (*Impl) Syscall6

func (*Impl) Syscall6(trap uintptr, a1 uintptr, a2 uintptr, a3 uintptr, a4 uintptr, a5 uintptr, a6 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)

func (*Impl) Sysinfo

func (*Impl) Sysinfo(info *syscall.Sysinfo_t) (err error)

func (*Impl) Tee

func (*Impl) Tee(rfd int, wfd int, len int, flags int) (n int64, err error)

func (*Impl) Tgkill

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

func (*Impl) Time

func (*Impl) Time(t *syscall.Time_t) (tt syscall.Time_t, err error)

func (*Impl) Times

func (*Impl) Times(tms *syscall.Tms) (ticks uintptr, err error)

func (*Impl) TimespecToNsec

func (*Impl) TimespecToNsec(ts syscall.Timespec) int64

func (*Impl) TimevalToNsec

func (*Impl) TimevalToNsec(tv syscall.Timeval) int64

func (*Impl) Truncate

func (*Impl) Truncate(path string, length int64) (err error)

func (*Impl) Umask

func (*Impl) Umask(mask int) (oldmask int)

func (*Impl) Uname

func (*Impl) Uname(buf *syscall.Utsname) (err error)

func (*Impl) UnixCredentials

func (*Impl) UnixCredentials(ucred *syscall.Ucred) []byte

func (*Impl) UnixRights

func (*Impl) UnixRights(fds ...int) []byte
func (*Impl) Unlink(path string) error

func (*Impl) Unlinkat

func (*Impl) Unlinkat(dirfd int, path string) error

func (*Impl) Unmount

func (*Impl) Unmount(target string, flags int) (err error)

func (*Impl) Unsetenv

func (*Impl) Unsetenv(key string) error

func (*Impl) Unshare

func (*Impl) Unshare(flags int) (err error)

func (*Impl) Ustat

func (*Impl) Ustat(dev int, ubuf *syscall.Ustat_t) (err error)

func (*Impl) Utime

func (*Impl) Utime(path string, buf *syscall.Utimbuf) (err error)

func (*Impl) Utimes

func (*Impl) Utimes(path string, tv []syscall.Timeval) (err error)

func (*Impl) UtimesNano

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

func (*Impl) Wait4

func (*Impl) Wait4(pid int, wstatus *syscall.WaitStatus, options int, rusage *syscall.Rusage) (wpid int, err error)

func (*Impl) Write

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

type Interface

type Interface interface {
	Accept(fd int) (nfd int, sa syscall.Sockaddr, err error)
	Accept4(fd int, flags int) (nfd int, sa syscall.Sockaddr, err error)
	Access(path string, mode uint32) (err error)
	Acct(path string) (err error)
	Adjtimex(buf *syscall.Timex) (state int, err error)
	AllThreadsSyscall(trap uintptr, a1 uintptr, a2 uintptr, a3 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)
	AllThreadsSyscall6(trap uintptr, a1 uintptr, a2 uintptr, a3 uintptr, a4 uintptr, a5 uintptr, a6 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)
	AttachLsf(fd int, i []syscall.SockFilter) error
	Bind(fd int, sa syscall.Sockaddr) (err error)
	BindToDevice(fd int, device string) (err error)
	BytePtrFromString(s string) (*byte, error)
	ByteSliceFromString(s string) ([]byte, error)
	Chdir(path string) (err error)
	Chmod(path string, mode uint32) (err error)
	Chown(path string, uid int, gid int) (err error)
	Chroot(path string) (err error)
	Clearenv()
	Close(fd int) (err error)
	CloseOnExec(fd int)
	CmsgLen(datalen int) int
	CmsgSpace(datalen int) int
	Connect(fd int, sa syscall.Sockaddr) (err error)
	Creat(path string, mode uint32) (fd int, err error)
	DetachLsf(fd int) error
	Dup(oldfd int) (fd int, err error)
	Dup2(oldfd int, newfd int) (err error)
	Dup3(oldfd int, newfd int, flags int) (err error)
	Environ() []string
	EpollCreate(size int) (fd int, err error)
	EpollCreate1(flag int) (fd int, err error)
	EpollCtl(epfd int, op int, fd int, event *syscall.EpollEvent) (err error)
	EpollWait(epfd int, events []syscall.EpollEvent, msec int) (n int, err error)
	Exec(argv0 string, argv []string, envv []string) (err error)
	Exit(code int)
	Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
	Fallocate(fd int, mode uint32, off int64, len int64) (err error)
	Fchdir(fd int) (err error)
	Fchmod(fd int, mode uint32) (err error)
	Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
	Fchown(fd int, uid int, gid int) (err error)
	Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
	FcntlFlock(fd uintptr, cmd int, lk *syscall.Flock_t) error
	Fdatasync(fd int) (err error)
	Flock(fd int, how int) (err error)
	ForkExec(argv0 string, argv []string, attr *syscall.ProcAttr) (pid int, err error)
	Fstat(fd int, stat *syscall.Stat_t) (err error)
	Fstatfs(fd int, buf *syscall.Statfs_t) (err error)
	Fsync(fd int) (err error)
	Ftruncate(fd int, length int64) (err error)
	Futimes(fd int, tv []syscall.Timeval) (err error)
	Futimesat(dirfd int, path string, tv []syscall.Timeval) (err error)
	Getcwd(buf []byte) (n int, err error)
	Getdents(fd int, buf []byte) (n int, err error)
	Getegid() (egid int)
	Getenv(key string) (value string, found bool)
	Geteuid() (euid int)
	Getgid() (gid int)
	Getgroups() (gids []int, err error)
	Getpagesize() int
	Getpeername(fd int) (sa syscall.Sockaddr, err error)
	Getpgid(pid int) (pgid int, err error)
	Getpgrp() (pid int)
	Getpid() (pid int)
	Getppid() (ppid int)
	Getpriority(which int, who int) (prio int, err error)
	Getrlimit(resource int, rlim *syscall.Rlimit) (err error)
	Getrusage(who int, rusage *syscall.Rusage) (err error)
	Getsockname(fd int) (sa syscall.Sockaddr, err error)
	GetsockoptICMPv6Filter(fd int, level int, opt int) (*syscall.ICMPv6Filter, error)
	GetsockoptIPMreq(fd int, level int, opt int) (*syscall.IPMreq, error)
	GetsockoptIPMreqn(fd int, level int, opt int) (*syscall.IPMreqn, error)
	GetsockoptIPv6MTUInfo(fd int, level int, opt int) (*syscall.IPv6MTUInfo, error)
	GetsockoptIPv6Mreq(fd int, level int, opt int) (*syscall.IPv6Mreq, error)
	GetsockoptInet4Addr(fd int, level int, opt int) (value [4]byte, err error)
	GetsockoptInt(fd int, level int, opt int) (value int, err error)
	GetsockoptUcred(fd int, level int, opt int) (*syscall.Ucred, error)
	Gettid() (tid int)
	Gettimeofday(tv *syscall.Timeval) (err error)
	Getuid() (uid int)
	Getwd() (wd string, err error)
	Getxattr(path string, attr string, dest []byte) (sz int, err error)
	InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error)
	InotifyInit() (fd int, err error)
	InotifyInit1(flags int) (fd int, err error)
	InotifyRmWatch(fd int, watchdesc uint32) (success int, err error)
	Ioperm(from int, num int, on int) (err error)
	Iopl(level int) (err error)
	Kill(pid int, sig syscall.Signal) (err error)
	Klogctl(typ int, buf []byte) (n int, err error)
	Lchown(path string, uid int, gid int) (err error)
	Link(oldpath string, newpath string) (err error)
	Listen(s int, n int) (err error)
	Listxattr(path string, dest []byte) (sz int, err error)
	LsfJump(code int, k int, jt int, jf int) *syscall.SockFilter
	LsfSocket(ifindex int, proto int) (int, error)
	LsfStmt(code int, k int) *syscall.SockFilter
	Lstat(path string, stat *syscall.Stat_t) (err error)
	Madvise(b []byte, advice int) (err error)
	Mkdir(path string, mode uint32) (err error)
	Mkdirat(dirfd int, path string, mode uint32) (err error)
	Mkfifo(path string, mode uint32) (err error)
	Mknod(path string, mode uint32, dev int) (err error)
	Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
	Mlock(b []byte) (err error)
	Mlockall(flags int) (err error)
	Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error)
	Mount(source string, target string, fstype string, flags uintptr, data string) (err error)
	Mprotect(b []byte, prot int) (err error)
	Munlock(b []byte) (err error)
	Munlockall() (err error)
	Munmap(b []byte) (err error)
	Nanosleep(time *syscall.Timespec, leftover *syscall.Timespec) (err error)
	NetlinkRIB(proto int, family int) ([]byte, error)
	NsecToTimespec(nsec int64) syscall.Timespec
	NsecToTimeval(nsec int64) syscall.Timeval
	Open(path string, mode int, perm uint32) (fd int, err error)
	Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error)
	ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string)
	ParseNetlinkMessage(b []byte) ([]syscall.NetlinkMessage, error)
	ParseNetlinkRouteAttr(m *syscall.NetlinkMessage) ([]syscall.NetlinkRouteAttr, error)
	ParseSocketControlMessage(b []byte) ([]syscall.SocketControlMessage, error)
	ParseUnixCredentials(m *syscall.SocketControlMessage) (*syscall.Ucred, error)
	ParseUnixRights(m *syscall.SocketControlMessage) ([]int, error)
	Pause() (err error)
	Pipe(p []int) error
	Pipe2(p []int, flags int) error
	PivotRoot(newroot string, putold string) (err error)
	Pread(fd int, p []byte, offset int64) (n int, err error)
	PtraceAttach(pid int) (err error)
	PtraceCont(pid int, signal int) (err error)
	PtraceDetach(pid int) (err error)
	PtraceGetEventMsg(pid int) (msg uint, err error)
	PtraceGetRegs(pid int, regsout *syscall.PtraceRegs) (err error)
	PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error)
	PtracePeekText(pid int, addr uintptr, out []byte) (count int, err error)
	PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error)
	PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error)
	PtraceSetOptions(pid int, options int) (err error)
	PtraceSetRegs(pid int, regs *syscall.PtraceRegs) (err error)
	PtraceSingleStep(pid int) (err error)
	PtraceSyscall(pid int, signal int) (err error)
	Pwrite(fd int, p []byte, offset int64) (n int, err error)
	RawSyscall(trap uintptr, a1 uintptr, a2 uintptr, a3 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)
	RawSyscall6(trap uintptr, a1 uintptr, a2 uintptr, a3 uintptr, a4 uintptr, a5 uintptr, a6 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)
	Read(fd int, p []byte) (n int, err error)
	ReadDirent(fd int, buf []byte) (n int, err error)
	Readlink(path string, buf []byte) (n int, err error)
	Reboot(cmd int) (err error)
	Recvfrom(fd int, p []byte, flags int) (n int, from syscall.Sockaddr, err error)
	Recvmsg(fd int, p []byte, oob []byte, flags int) (n int, oobn int, recvflags int, from syscall.Sockaddr, err error)
	Removexattr(path string, attr string) (err error)
	Rename(oldpath string, newpath string) (err error)
	Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
	Rmdir(path string) error
	Seek(fd int, offset int64, whence int) (off int64, err error)
	Select(nfd int, r *syscall.FdSet, w *syscall.FdSet, e *syscall.FdSet, timeout *syscall.Timeval) (n int, err error)
	Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
	Sendmsg(fd int, p []byte, oob []byte, to syscall.Sockaddr, flags int) (err error)
	SendmsgN(fd int, p []byte, oob []byte, to syscall.Sockaddr, flags int) (n int, err error)
	Sendto(fd int, p []byte, flags int, to syscall.Sockaddr) (err error)
	SetLsfPromisc(name string, m bool) error
	SetNonblock(fd int, nonblocking bool) (err error)
	Setdomainname(p []byte) (err error)
	Setegid(egid int) (err error)
	Setenv(key string, value string) error
	Seteuid(euid int) (err error)
	Setfsgid(gid int) (err error)
	Setfsuid(uid int) (err error)
	Setgid(gid int) (err error)
	Setgroups(gids []int) (err error)
	Sethostname(p []byte) (err error)
	Setpgid(pid int, pgid int) (err error)
	Setpriority(which int, who int, prio int) (err error)
	Setregid(rgid int, egid int) (err error)
	Setresgid(rgid int, egid int, sgid int) (err error)
	Setresuid(ruid int, euid int, suid int) (err error)
	Setreuid(ruid int, euid int) (err error)
	Setrlimit(resource int, rlim *syscall.Rlimit) (err error)
	Setsid() (pid int, err error)
	SetsockoptByte(fd int, level int, opt int, value byte) (err error)
	SetsockoptICMPv6Filter(fd int, level int, opt int, filter *syscall.ICMPv6Filter) error
	SetsockoptIPMreq(fd int, level int, opt int, mreq *syscall.IPMreq) (err error)
	SetsockoptIPMreqn(fd int, level int, opt int, mreq *syscall.IPMreqn) (err error)
	SetsockoptIPv6Mreq(fd int, level int, opt int, mreq *syscall.IPv6Mreq) (err error)
	SetsockoptInet4Addr(fd int, level int, opt int, value [4]byte) (err error)
	SetsockoptInt(fd int, level int, opt int, value int) (err error)
	SetsockoptLinger(fd int, level int, opt int, l *syscall.Linger) (err error)
	SetsockoptString(fd int, level int, opt int, s string) (err error)
	SetsockoptTimeval(fd int, level int, opt int, tv *syscall.Timeval) (err error)
	Settimeofday(tv *syscall.Timeval) (err error)
	Setuid(uid int) (err error)
	Setxattr(path string, attr string, data []byte, flags int) (err error)
	Shutdown(fd int, how int) (err error)
	SlicePtrFromStrings(ss []string) ([]*byte, error)
	Socket(domain int, typ int, proto int) (fd int, err error)
	Socketpair(domain int, typ int, proto int) (fd [2]int, err error)
	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
	StartProcess(argv0 string, argv []string, attr *syscall.ProcAttr) (pid int, handle uintptr, err error)
	Stat(path string, stat *syscall.Stat_t) (err error)
	Statfs(path string, buf *syscall.Statfs_t) (err error)
	StringBytePtr(s string) *byte
	StringByteSlice(s string) []byte
	StringSlicePtr(ss []string) []*byte
	Symlink(oldpath string, newpath string) (err error)
	Sync()
	SyncFileRange(fd int, off int64, n int64, flags int) (err error)
	Syscall(trap uintptr, a1 uintptr, a2 uintptr, a3 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)
	Syscall6(trap uintptr, a1 uintptr, a2 uintptr, a3 uintptr, a4 uintptr, a5 uintptr, a6 uintptr) (r1 uintptr, r2 uintptr, err syscall.Errno)
	Sysinfo(info *syscall.Sysinfo_t) (err error)
	Tee(rfd int, wfd int, len int, flags int) (n int64, err error)
	Tgkill(tgid int, tid int, sig syscall.Signal) (err error)
	Time(t *syscall.Time_t) (tt syscall.Time_t, err error)
	Times(tms *syscall.Tms) (ticks uintptr, err error)
	TimespecToNsec(ts syscall.Timespec) int64
	TimevalToNsec(tv syscall.Timeval) int64
	Truncate(path string, length int64) (err error)
	Umask(mask int) (oldmask int)
	Uname(buf *syscall.Utsname) (err error)
	UnixCredentials(ucred *syscall.Ucred) []byte
	UnixRights(fds ...int) []byte
	Unlink(path string) error
	Unlinkat(dirfd int, path string) error
	Unmount(target string, flags int) (err error)
	Unsetenv(key string) error
	Unshare(flags int) (err error)
	Ustat(dev int, ubuf *syscall.Ustat_t) (err error)
	Utime(path string, buf *syscall.Utimbuf) (err error)
	Utimes(path string, tv []syscall.Timeval) (err error)
	UtimesNano(path string, ts []syscall.Timespec) (err error)
	Wait4(pid int, wstatus *syscall.WaitStatus, options int, rusage *syscall.Rusage) (wpid int, err error)
	Write(fd int, p []byte) (n int, err error)
}

Jump to

Keyboard shortcuts

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