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