syscallshim

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT. with command: counterfeiter -p -o /Users/hjortj1/go/src/code.cloudfoundry.org/goshims/syscallshim syscall AND THEN WE REMOVED A MESS OF STUFF THAT DOESNT COMPILE, SO CAVEAT EMPTOR AND ALL THAT

Code generated by counterfeiter. DO NOT EDIT. with command: counterfeiter -p -o /Users/hjortj1/go/src/code.cloudfoundry.org/goshims/syscallshim syscall

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Syscall

type Syscall interface {
	ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string)
	Getenv(key string) (value string, found bool)
	Setenv(key, value string) error
	Clearenv()
	Unsetenv(key string) error
	Environ() []string
	StringSlicePtr(ss []string) []*byte
	SlicePtrFromStrings(ss []string) ([]*byte, error)
	ForkExec(argv0 string, argv []string, attr *syscall.ProcAttr) (pid int, err error)
	StartProcess(argv0 string, argv []string, attr *syscall.ProcAttr) (pid int, handle uintptr, err error)
	Exec(argv0 string, argv []string, envv []string) (err error)
	CloseOnExec(fd int)
	SetNonblock(fd int, nonblocking bool) (err error)
	Close(fd int) error
	Dup(fd int) (int, error)
	Dup2(fd, newfd int) error
	Fstat(fd int, st *syscall.Stat_t) error
	Read(fd int, b []byte) (int, error)
	Write(fd int, b []byte) (int, error)
	Pread(fd int, b []byte, offset int64) (int, error)
	Pwrite(fd int, b []byte, offset int64) (int, error)
	Seek(fd int, offset int64, whence int) (int64, error)
	Pipe(fd []int) error
	FcntlFlock(fd uintptr, cmd int, lk *syscall.Flock_t) error
	ReadDirent(fd int, buf []byte) (int, error)
	Open(path string, openmode int, perm uint32) (fd int, err error)
	Mkdir(path string, perm uint32) error
	Stat(path string, st *syscall.Stat_t) error
	Lstat(path string, st *syscall.Stat_t) error
	Unlink(path string) error
	Rmdir(path string) error
	Chmod(path string, mode uint32) error
	Fchmod(fd int, mode uint32) error
	Chown(path string, uid, gid int) error
	Fchown(fd int, uid, gid int) error
	Lchown(path string, uid, gid int) error
	UtimesNano(path string, ts []syscall.Timespec) error
	Link(path, link string) error
	Rename(from, to string) error
	Truncate(path string, length int64) error
	Ftruncate(fd int, length int64) error
	Chdir(path string) error
	Fchdir(fd int) error
	Readlink(path string, buf []byte) (n int, err error)
	Symlink(path, link string) error
	Fsync(fd int) error
	Socket(proto, sotype, unused int) (fd int, err error)
	Bind(fd int, sa syscall.Sockaddr) error
	Listen(fd int, backlog int) error
	Accept(fd int) (newfd int, sa syscall.Sockaddr, err error)
	Getsockname(fd int) (sa syscall.Sockaddr, err error)
	Getpeername(fd int) (sa syscall.Sockaddr, err error)
	Connect(fd int, sa syscall.Sockaddr) error
	Recvfrom(fd int, p []byte, flags int) (n int, from syscall.Sockaddr, err error)
	Sendto(fd int, p []byte, flags int, to syscall.Sockaddr) error
	Recvmsg(fd int, p, oob []byte, flags int) (n, oobn, recvflags int, from syscall.Sockaddr, err error)
	Sendmsg(fd int, p, oob []byte, to syscall.Sockaddr, flags int) error
	SendmsgN(fd int, p, oob []byte, to syscall.Sockaddr, flags int) (n int, err error)
	GetsockoptInt(fd, level, opt int) (value int, err error)
	SetsockoptInt(fd, level, opt int, value int) error
	SetsockoptByte(fd, level, opt int, value byte) error
	SetsockoptLinger(fd, level, opt int, l *syscall.Linger) error
	Shutdown(fd int, how int) error
	SetsockoptICMPv6Filter(fd, level, opt int, filter *syscall.ICMPv6Filter) error
	SetsockoptIPMreq(fd, level, opt int, mreq *syscall.IPMreq) error
	SetsockoptIPv6Mreq(fd, level, opt int, mreq *syscall.IPv6Mreq) error
	SetsockoptInet4Addr(fd, level, opt int, value [4]byte) error
	SetsockoptString(fd, level, opt int, s string) error
	SetsockoptTimeval(fd, level, opt int, tv *syscall.Timeval) error
	Socketpair(domain, typ, proto int) (fd [2]int, err error)
	Getwd() (wd string, err error)
	CmsgLen(datalen int) int
	CmsgSpace(datalen int) int
	ParseSocketControlMessage(b []byte) ([]syscall.SocketControlMessage, error)
	UnixRights(fds ...int) []byte
	ParseUnixRights(m *syscall.SocketControlMessage) ([]int, error)
	StringByteSlice(s string) []byte
	ByteSliceFromString(s string) ([]byte, error)
	StringBytePtr(s string) *byte
	BytePtrFromString(s string) (*byte, error)
	Getpagesize() int
	Getgroups() (gids []int, err error)
	Setgroups(gids []int) (err error)
	Wait4(pid int, wstatus *syscall.WaitStatus, options int, rusage *syscall.Rusage) (wpid int, err error)
	GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error)
	GetsockoptIPMreq(fd, level, opt int) (*syscall.IPMreq, error)
	GetsockoptIPv6Mreq(fd, level, opt int) (*syscall.IPv6Mreq, error)
	GetsockoptIPv6MTUInfo(fd, level, opt int) (*syscall.IPv6MTUInfo, error)
	GetsockoptICMPv6Filter(fd, level, opt int) (*syscall.ICMPv6Filter, error)
	Utimes(path string, tv []syscall.Timeval) (err error)
	Futimes(fd int, tv []syscall.Timeval) (err error)
	Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error)
	Munmap(b []byte) (err error)
	PtraceAttach(pid int) (err error)
	PtraceDetach(pid int) (err error)
	Kill(pid int, signum syscall.Signal) (err error)
	Gettimeofday(tv *syscall.Timeval) error
	Access(path string, mode uint32) (err error)
	Mknod(path string, mode uint32, dev int) (err error)
	Mkfifo(path string, mode uint32) (err error)
	Getpgrp() (pid int)
	Setuid(uid int) (err error)
	Setgid(gid int) (err error)
	Getrlimit(resource int, rlim *syscall.Rlimit) (err error)
	Setrlimit(resource int, rlim *syscall.Rlimit) (err error)
	Fstatfs(fd int, buf *syscall.Statfs_t) (err error)
	Statfs(path string, buf *syscall.Statfs_t) (err error)
	RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)
	RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
	Getegid() int
	Geteuid() int
	Getgid() int
	Getppid() int
	Getpid() int
	Getuid() int
	Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
	Exit(code int)
	NsecToTimeval(nsec int64) (tv syscall.Timeval)
	TimespecToNsec(ts syscall.Timespec) int64
	NsecToTimespec(nsec int64) (ts syscall.Timespec)
	TimevalToNsec(tv syscall.Timeval) int64
	Chroot(path string) (err error)
	Flock(fd int, how int) (err error)
	Getpgid(pid int) (pgid int, err error)
	Getpriority(which int, who int) (prio int, err error)
	Getrusage(who int, rusage *syscall.Rusage) (err error)
	Mlock(b []byte) (err error)
	Mlockall(flags int) (err error)
	Mprotect(b []byte, prot int) (err error)
	Munlock(b []byte) (err error)
	Munlockall() (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)
	Setreuid(ruid int, euid int) (err error)
	Setsid() (pid int, err error)
	Settimeofday(tp *syscall.Timeval) (err error)
	Umask(newmask int) (oldmask int)
	Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
}

type SyscallShim

type SyscallShim struct{}

func (*SyscallShim) Accept

func (sh *SyscallShim) Accept(fd int) (newfd int, sa syscall.Sockaddr, err error)

func (*SyscallShim) Access

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

func (*SyscallShim) Bind

func (sh *SyscallShim) Bind(fd int, sa syscall.Sockaddr) error

func (*SyscallShim) BytePtrFromString

func (sh *SyscallShim) BytePtrFromString(s string) (*byte, error)

func (*SyscallShim) ByteSliceFromString

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

func (*SyscallShim) Chdir

func (sh *SyscallShim) Chdir(path string) error

func (*SyscallShim) Chmod

func (sh *SyscallShim) Chmod(path string, mode uint32) error

func (*SyscallShim) Chown

func (sh *SyscallShim) Chown(path string, uid int, gid int) error

func (*SyscallShim) Chroot

func (sh *SyscallShim) Chroot(path string) (err error)

func (*SyscallShim) Clearenv

func (sh *SyscallShim) Clearenv()

func (*SyscallShim) Close

func (sh *SyscallShim) Close(fd int) error

func (*SyscallShim) CloseOnExec

func (sh *SyscallShim) CloseOnExec(fd int)

func (*SyscallShim) CmsgLen

func (sh *SyscallShim) CmsgLen(datalen int) int

func (*SyscallShim) CmsgSpace

func (sh *SyscallShim) CmsgSpace(datalen int) int

func (*SyscallShim) Connect

func (sh *SyscallShim) Connect(fd int, sa syscall.Sockaddr) error

func (*SyscallShim) Dup

func (sh *SyscallShim) Dup(fd int) (int, error)

func (*SyscallShim) Dup2

func (sh *SyscallShim) Dup2(fd int, newfd int) error

func (*SyscallShim) Environ

func (sh *SyscallShim) Environ() []string

func (*SyscallShim) Exec

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

func (*SyscallShim) Exit

func (sh *SyscallShim) Exit(code int)

func (*SyscallShim) Faccessat

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

func (*SyscallShim) Fchdir

func (sh *SyscallShim) Fchdir(fd int) error

func (*SyscallShim) Fchmod

func (sh *SyscallShim) Fchmod(fd int, mode uint32) error

func (*SyscallShim) Fchown

func (sh *SyscallShim) Fchown(fd int, uid int, gid int) error

func (*SyscallShim) FcntlFlock

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

func (*SyscallShim) Flock

func (sh *SyscallShim) Flock(fd int, how int) (err error)

func (*SyscallShim) ForkExec

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

func (*SyscallShim) Fstat

func (sh *SyscallShim) Fstat(fd int, st *syscall.Stat_t) error

func (*SyscallShim) Fstatfs

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

func (*SyscallShim) Fsync

func (sh *SyscallShim) Fsync(fd int) error

func (*SyscallShim) Ftruncate

func (sh *SyscallShim) Ftruncate(fd int, length int64) error

func (*SyscallShim) Futimes

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

func (*SyscallShim) Getegid

func (sh *SyscallShim) Getegid() int

func (*SyscallShim) Getenv

func (sh *SyscallShim) Getenv(key string) (value string, found bool)

func (*SyscallShim) Geteuid

func (sh *SyscallShim) Geteuid() int

func (*SyscallShim) Getgid

func (sh *SyscallShim) Getgid() int

func (*SyscallShim) Getgroups

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

func (*SyscallShim) Getpagesize

func (sh *SyscallShim) Getpagesize() int

func (*SyscallShim) Getpeername

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

func (*SyscallShim) Getpgid

func (sh *SyscallShim) Getpgid(pid int) (pgid int, err error)

func (*SyscallShim) Getpgrp

func (sh *SyscallShim) Getpgrp() (pid int)

func (*SyscallShim) Getpid

func (sh *SyscallShim) Getpid() int

func (*SyscallShim) Getppid

func (sh *SyscallShim) Getppid() int

func (*SyscallShim) Getpriority

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

func (*SyscallShim) Getrlimit

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

func (*SyscallShim) Getrusage

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

func (*SyscallShim) Getsockname

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

func (*SyscallShim) GetsockoptICMPv6Filter

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

func (*SyscallShim) GetsockoptIPMreq

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

func (*SyscallShim) GetsockoptIPv6MTUInfo

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

func (*SyscallShim) GetsockoptIPv6Mreq

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

func (*SyscallShim) GetsockoptInet4Addr

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

func (*SyscallShim) GetsockoptInt

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

func (*SyscallShim) Gettimeofday

func (sh *SyscallShim) Gettimeofday(tv *syscall.Timeval) error

func (*SyscallShim) Getuid

func (sh *SyscallShim) Getuid() int

func (*SyscallShim) Getwd

func (sh *SyscallShim) Getwd() (wd string, err error)

func (*SyscallShim) Kill

func (sh *SyscallShim) Kill(pid int, signum syscall.Signal) (err error)

func (*SyscallShim) Lchown

func (sh *SyscallShim) Lchown(path string, uid int, gid int) error
func (sh *SyscallShim) Link(path string, link string) error

func (*SyscallShim) Listen

func (sh *SyscallShim) Listen(fd int, backlog int) error

func (*SyscallShim) Lstat

func (sh *SyscallShim) Lstat(path string, st *syscall.Stat_t) error

func (*SyscallShim) Mkdir

func (sh *SyscallShim) Mkdir(path string, perm uint32) error

func (*SyscallShim) Mkfifo

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

func (*SyscallShim) Mknod

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

func (*SyscallShim) Mlock

func (sh *SyscallShim) Mlock(b []byte) (err error)

func (*SyscallShim) Mlockall

func (sh *SyscallShim) Mlockall(flags int) (err error)

func (*SyscallShim) Mmap

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

func (*SyscallShim) Mprotect

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

func (*SyscallShim) Munlock

func (sh *SyscallShim) Munlock(b []byte) (err error)

func (*SyscallShim) Munlockall

func (sh *SyscallShim) Munlockall() (err error)

func (*SyscallShim) Munmap

func (sh *SyscallShim) Munmap(b []byte) (err error)

func (*SyscallShim) NsecToTimespec

func (sh *SyscallShim) NsecToTimespec(nsec int64) (ts syscall.Timespec)

func (*SyscallShim) NsecToTimeval

func (sh *SyscallShim) NsecToTimeval(nsec int64) (tv syscall.Timeval)

func (*SyscallShim) Open

func (sh *SyscallShim) Open(path string, openmode int, perm uint32) (fd int, err error)

func (*SyscallShim) ParseDirent

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

func (*SyscallShim) ParseSocketControlMessage

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

func (*SyscallShim) ParseUnixRights

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

func (*SyscallShim) Pipe

func (sh *SyscallShim) Pipe(fd []int) error

func (*SyscallShim) Pread

func (sh *SyscallShim) Pread(fd int, b []byte, offset int64) (int, error)

func (*SyscallShim) PtraceAttach

func (sh *SyscallShim) PtraceAttach(pid int) (err error)

func (*SyscallShim) PtraceDetach

func (sh *SyscallShim) PtraceDetach(pid int) (err error)

func (*SyscallShim) Pwrite

func (sh *SyscallShim) Pwrite(fd int, b []byte, offset int64) (int, error)

func (*SyscallShim) RawSyscall

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

func (*SyscallShim) RawSyscall6

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

func (*SyscallShim) Read

func (sh *SyscallShim) Read(fd int, b []byte) (int, error)

func (*SyscallShim) ReadDirent

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

func (*SyscallShim) Recvfrom

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

func (*SyscallShim) Recvmsg

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

func (*SyscallShim) Rename

func (sh *SyscallShim) Rename(from string, to string) error

func (*SyscallShim) Rmdir

func (sh *SyscallShim) Rmdir(path string) error

func (*SyscallShim) Seek

func (sh *SyscallShim) Seek(fd int, offset int64, whence int) (int64, error)

func (*SyscallShim) Sendfile

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

func (*SyscallShim) Sendmsg

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

func (*SyscallShim) SendmsgN

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

func (*SyscallShim) Sendto

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

func (*SyscallShim) SetNonblock

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

func (*SyscallShim) Setenv

func (sh *SyscallShim) Setenv(key string, value string) error

func (*SyscallShim) Setgid

func (sh *SyscallShim) Setgid(gid int) (err error)

func (*SyscallShim) Setgroups

func (sh *SyscallShim) Setgroups(gids []int) (err error)

func (*SyscallShim) Setpgid

func (sh *SyscallShim) Setpgid(pid int, pgid int) (err error)

func (*SyscallShim) Setpriority

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

func (*SyscallShim) Setregid

func (sh *SyscallShim) Setregid(rgid int, egid int) (err error)

func (*SyscallShim) Setreuid

func (sh *SyscallShim) Setreuid(ruid int, euid int) (err error)

func (*SyscallShim) Setrlimit

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

func (*SyscallShim) Setsid

func (sh *SyscallShim) Setsid() (pid int, err error)

func (*SyscallShim) SetsockoptByte

func (sh *SyscallShim) SetsockoptByte(fd int, level int, opt int, value byte) error

func (*SyscallShim) SetsockoptICMPv6Filter

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

func (*SyscallShim) SetsockoptIPMreq

func (sh *SyscallShim) SetsockoptIPMreq(fd int, level int, opt int, mreq *syscall.IPMreq) error

func (*SyscallShim) SetsockoptIPv6Mreq

func (sh *SyscallShim) SetsockoptIPv6Mreq(fd int, level int, opt int, mreq *syscall.IPv6Mreq) error

func (*SyscallShim) SetsockoptInet4Addr

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

func (*SyscallShim) SetsockoptInt

func (sh *SyscallShim) SetsockoptInt(fd int, level int, opt int, value int) error

func (*SyscallShim) SetsockoptLinger

func (sh *SyscallShim) SetsockoptLinger(fd int, level int, opt int, l *syscall.Linger) error

func (*SyscallShim) SetsockoptString

func (sh *SyscallShim) SetsockoptString(fd int, level int, opt int, s string) error

func (*SyscallShim) SetsockoptTimeval

func (sh *SyscallShim) SetsockoptTimeval(fd int, level int, opt int, tv *syscall.Timeval) error

func (*SyscallShim) Settimeofday

func (sh *SyscallShim) Settimeofday(tp *syscall.Timeval) (err error)

func (*SyscallShim) Setuid

func (sh *SyscallShim) Setuid(uid int) (err error)

func (*SyscallShim) Shutdown

func (sh *SyscallShim) Shutdown(fd int, how int) error

func (*SyscallShim) SlicePtrFromStrings

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

func (*SyscallShim) Socket

func (sh *SyscallShim) Socket(proto int, sotype int, unused int) (fd int, err error)

func (*SyscallShim) Socketpair

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

func (*SyscallShim) StartProcess

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

func (*SyscallShim) Stat

func (sh *SyscallShim) Stat(path string, st *syscall.Stat_t) error

func (*SyscallShim) Statfs

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

func (*SyscallShim) StringBytePtr

func (sh *SyscallShim) StringBytePtr(s string) *byte

func (*SyscallShim) StringByteSlice

func (sh *SyscallShim) StringByteSlice(s string) []byte

func (*SyscallShim) StringSlicePtr

func (sh *SyscallShim) StringSlicePtr(ss []string) []*byte
func (sh *SyscallShim) Symlink(path string, link string) error

func (*SyscallShim) TimespecToNsec

func (sh *SyscallShim) TimespecToNsec(ts syscall.Timespec) int64

func (*SyscallShim) TimevalToNsec

func (sh *SyscallShim) TimevalToNsec(tv syscall.Timeval) int64

func (*SyscallShim) Truncate

func (sh *SyscallShim) Truncate(path string, length int64) error

func (*SyscallShim) Umask

func (sh *SyscallShim) Umask(newmask int) (oldmask int)

func (*SyscallShim) UnixRights

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

func (*SyscallShim) Unsetenv

func (sh *SyscallShim) Unsetenv(key string) error

func (*SyscallShim) Utimes

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

func (*SyscallShim) UtimesNano

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

func (*SyscallShim) Wait4

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

func (*SyscallShim) Write

func (sh *SyscallShim) Write(fd int, b []byte) (int, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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