csys

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	O_RDONLY = int32(os.O_RDONLY)
	O_WRONLY = int32(os.O_WRONLY)
	O_RDWR   = int32(os.O_RDWR)
	O_CREAT  = int32(os.O_CREATE)
	O_EXCL   = int32(os.O_EXCL)
	O_TRUNC  = int32(os.O_TRUNC)
)
View Source
const FIONREAD uintptr = 21531

Variables

This section is empty.

Functions

func Chmod

func Chmod(path *byte, mode Mode) int32

func GetTimeOfDay

func GetTimeOfDay(t *libc.TimeVal, p unsafe.Pointer) int32

func Ioctl

func Ioctl(fd uintptr, req uintptr, args ...interface{}) int32

func IsDir

func IsDir(mode Mode) int32

func Mkdir

func Mkdir(path *byte, mode Mode) int32

func Stat

func Stat(path *byte, dst *StatRes) int32

Types

type Mode

type Mode int32

type StatRes

type StatRes struct {
	Dev       int32
	Inode     int32
	Mode      Mode
	Links     int32
	UID       int32
	GID       int32
	RDev      int32
	Size      uint64
	ATime     libc.TimeVal
	MTime     libc.TimeVal
	CTime     libc.TimeVal
	BlockSize int32
	Blocks    int32
}

Jump to

Keyboard shortcuts

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