syscall

package
v0.0.0-...-5ab7420 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Declarations only. Minigo won't parse this file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytePtrFromString

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

func Exit

func Exit(code int)

func Getdents

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

func Nanosleep

func Nanosleep(ts *Timespec)

func Open

func Open(path string, flag int, perm int) (int, error)

func ParseDirent

func ParseDirent(buf []byte, void int, names []string) (int, int, []string)

func Read

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

func ReadDirent

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

func Syscall

func Syscall(number uintptr, a1 uintptr, a2 uintptr, a3 uintptr) int

Actual definition is in assembly code

func Write

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

Types

type LinuxDirent64

type LinuxDirent64 struct {
	// contains filtered or unexported fields
}

http://man7.org/linux/man-pages/man2/getdents64.2.html#top_of_page

type Timespec

type Timespec struct {
	Sec  int
	Nsec int
}

Jump to

Keyboard shortcuts

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