fd

package
v0.0.0-...-70d8496 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2019 License: BSD-3-Clause, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FD_READ    = 0x1
	FD_WRITE   = 0x2
	FD_CLOEXEC = 0x4
)

Variables

This section is empty.

Functions

func Close_panic

func Close_panic(f *Fd_t)

Types

type Cwd_t

type Cwd_t struct {
	sync.Mutex // to serialize chdirs
	Fd         *Fd_t
	Path       ustr.Ustr
}

func MkRootCwd

func MkRootCwd(fd *Fd_t) *Cwd_t

func (*Cwd_t) Canonicalpath

func (cwd *Cwd_t) Canonicalpath(p ustr.Ustr) ustr.Ustr

func (*Cwd_t) Fullpath

func (cwd *Cwd_t) Fullpath(p ustr.Ustr) ustr.Ustr

type Fd_t

type Fd_t struct {
	// fops is an interface implemented via a "pointer receiver", thus fops
	// is a reference, not a value
	Fops  fdops.Fdops_i
	Perms int
}

func Copyfd

func Copyfd(fd *Fd_t) (*Fd_t, defs.Err_t)

Jump to

Keyboard shortcuts

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