sys

package
v0.0.0-...-a9d482a Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchType

type ArchType int
const (
	ARCH_NONE ArchType = iota
	ARCH_ARM
	ARCH_ARM64
	ARCH_MIPS
	ARCH_PPC
	ARCH_SPARC
	ARCH_SPARC64
	ARCH_M68K
	ARCH_X86
	ARCH_X86_64
)

type Codec

type Codec struct {
	Arch ArchType
	OS   OSType
	Mem  memio.MemIO
}

func NewCodec

func NewCodec(arch ArchType, os OSType, mem memio.MemIO) (*Codec, error)

func (*Codec) DecodeCall

func (c *Codec) DecodeCall(n int, args []uint64) (Syscall, error)

func (*Codec) DecodeRet

func (c *Codec) DecodeRet(n int, args []uint64, ret uint64) (Syscall, error)

func (*Codec) GetName

func (c *Codec) GetName(n int) string

type Iovec32

type Iovec32 struct {
	Base uint32
	Len  uint32
}

type Iovec64

type Iovec64 struct {
	Base uint64
	Len  uint64
}

type OSType

type OSType int
const (
	OS_NONE OSType = iota
	OS_LINUX
	OS_DARWIN
	OS_WIN
	OS_FREEBSD
	OS_NETBSD
	OS_OPENBSD
	OS_SOLARIS
)

type Syscall

type Syscall interface {
	Base() *call.Generic
	String() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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