p9util

package
v0.0.0-...-c447958 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NodeUID and NodeGID are the owner and group for all files served
	// by musclefs. In Plan 9, both are set to the contents of
	// /dev/user. In Linux, the NodeUID is set to the current user's
	// login name and the NodeGID is set to the current user's primary
	// group name.
	NodeUID string
	NodeGID string
)

Functions

func NodeDir

func NodeDir(node *tree.Node) (dir p.Dir)

func NodeDirVar

func NodeDirVar(node *tree.Node, dir *p.Dir)

func NodeQID

func NodeQID(node *tree.Node) (qid p.Qid)

func NodeQIDVar

func NodeQIDVar(node *tree.Node, qid *p.Qid)

Types

type DirBuffer

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

func (*DirBuffer) Read

func (dirb *DirBuffer) Read(b []byte, offset int) (n int, err error)

From read(5): «For directories, read returns an integral number of directory entries exactly as in stat (see stat(5)), one for each member of the directory. The read request message must have offset equal to zero or the value of offset in the previous read on the directory, plus the number of bytes returned in the previous read. In other words, seeking other than to the beginning is illegal in a directory (see seek(2)).»

func (*DirBuffer) Reset

func (dirb *DirBuffer) Reset()

func (*DirBuffer) Write

func (dirb *DirBuffer) Write(dir *p.Dir)

Jump to

Keyboard shortcuts

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