syscalls

package
v0.0.0-...-ff5c20b Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INT = iota
	FD
	STR
	BUF
	OBUF
	LEN
	OFF
	PTR
)

Variables

This section is empty.

Functions

func Call

func Call(u models.Usercorn, num int, name string, getArgs func(n int) ([]uint64, error), strace bool) (uint64, error)

func RegArgs

func RegArgs(u models.Usercorn, regs []int) func(n int) ([]uint64, error)

func StackArgs

func StackArgs(u models.Usercorn) func(n int) ([]uint64, error)

func Trace

func Trace(u models.Usercorn, name string, args []uint64)

func TraceRet

func TraceRet(u models.Usercorn, name string, args []uint64, ret uint64)

func Uname

func Uname(u models.Usercorn, addr uint64, un *models.Uname) uint64

Types

type A

type A []int

type Iovec32

type Iovec32 struct {
	Base uint32
	Len  uint32
}

type Iovec64

type Iovec64 struct {
	Base uint64
	Len  uint64
}

type Syscall

type Syscall struct {
	Func func(u U, a []uint64) uint64
	Args []int
	Ret  int
}

type U

type U models.Usercorn

Jump to

Keyboard shortcuts

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