syscall

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const SYS_CLOSE uintptr = 3
View Source
const SYS_GETDENTS64 uintptr = 217
View Source
const SYS_OPEN uintptr = 2
View Source
const SYS_READ uintptr = 0

cheat sheet: https://chromium.googlesource.com/chromiumos/docs/+/HEAD/constants/syscalls.md#x86_64-64_bit

View Source
const SYS_WRITE uintptr = 1

Variables

This section is empty.

Functions

func Close added in v0.0.3

func Close(fd int) error

func Getdents

func Getdents(fd int, buf []byte) (int, error)

func Open

func Open(path string, mode int, perm int) (uintptr, error)

func Read

func Read(fd int, buf []byte) (uintptr, error)

func Syscall

func Syscall(trap uintptr, a1 uintptr, a2 uintptr, a3 uintptr) uintptr

func Write

func Write(fd int, buf []byte) (uintptr, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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