Versions in this module Expand all Collapse all v1 v1.1.0 Jun 6, 2023 Changes in this version + const FdPreopen + const FdStderr + const FdStdin + const FdStdout + type Context struct + func DefaultContext(fs fsapi.FS) *Context + func NewContext(max uint32, args, environ [][]byte, stdin io.Reader, stdout, stderr io.Writer, ...) (sysCtx *Context, err error) + func (c *Context) Args() [][]byte + func (c *Context) ArgsSize() uint32 + func (c *Context) Environ() [][]byte + func (c *Context) EnvironSize() uint32 + func (c *Context) FS() *FSContext + func (c *Context) Nanosleep(ns int64) + func (c *Context) Nanotime() int64 + func (c *Context) NanotimeResolution() sys.ClockResolution + func (c *Context) NewFSContext(stdin io.Reader, stdout, stderr io.Writer, rootFS fsapi.FS) (err error) + func (c *Context) Osyield() + func (c *Context) RandSource() io.Reader + func (c *Context) Walltime() (sec int64, nsec int32) + func (c *Context) WalltimeNanos() int64 + func (c *Context) WalltimeResolution() sys.ClockResolution + type FSContext struct + func (c *FSContext) Close() (err error) + func (c *FSContext) CloseFile(fd int32) syscall.Errno + func (c *FSContext) CloseReaddir(idx int32) + func (c *FSContext) LookupFile(fd int32) (*FileEntry, bool) + func (c *FSContext) LookupReaddir(idx int32, f *FileEntry) (*Readdir, syscall.Errno) + func (c *FSContext) OpenFile(fs fsapi.FS, path string, flag int, perm fs.FileMode) (int32, syscall.Errno) + func (c *FSContext) Renumber(from, to int32) syscall.Errno + func (c *FSContext) RootFS() fsapi.FS + type FileEntry struct + FS fsapi.FS + File fsapi.File + IsPreopen bool + Name string + type FileTable = descriptor.Table[int32, *FileEntry] + type Readdir struct + func NewReaddir(dirInit func() ([]fsapi.Dirent, syscall.Errno), ...) (*Readdir, syscall.Errno) + func (d *Readdir) Advance() syscall.Errno + func (d *Readdir) Cookie() uint64 + func (d *Readdir) Peek() (*fsapi.Dirent, syscall.Errno) + func (d *Readdir) Reset() syscall.Errno + func (d *Readdir) Rewind(cookie int64) syscall.Errno + func (d *Readdir) Skip(n uint64) + type ReaddirTable = descriptor.Table[int32, *Readdir] + type StdinFile struct + func (StdinFile) AccessMode() int + func (StdinFile) PollRead(*time.Duration) (ready bool, errno syscall.Errno) + func (f *StdinFile) Read(buf []byte) (int, syscall.Errno)