ModulesΒ§
- fd π
- fd_list π
- A very simple data structure for holding the FDs a WASI process is using. Keeps track of the first unused (i.e. freed) FD, which is slightly faster than doing a linear search of the entire array each time. Note, The Unix spec requires newly allocated FDs to always be the lowest-numbered FD available.
- inode_
guard π - notification π
- path_
posix π - Guest POSIX path helpers.
StructsΒ§
- Close
FdOutcome π - Result of removing an fd under
fd_map.write(), with an optional flush target captured beforedrop_one_handlemay clear the inode handle. - Ephemeral
Symlink πEntry - Fallback
File System - Fd
- FdInner
- Flush
Poller π - Inode
- Inode
Guard - Inode
Val - A file that Wasi knows about that may or may not be open
- Inode
Weak Guard - Notification
Inner - WasiFs
- Warning, modifying these fields directly may cause invariants to break and should be considered unsafe. These fields may be made private in a future release
- Wasi
FsRoot - Wasi
Inodes - Wasi
Inodes πProtected
EnumsΒ§
- Component
Resolution π - Kind
- The core of the filesystem abstraction. Includes directories, files, and symlinks.
- Symlink
Kind
ConstantsΒ§
- FS_
ROOT_ INO - FS_
STDERR_ INO - FS_
STDIN_ INO - The root inode and stdio inodes are the first inodes in the file system tree
- FS_
STDOUT_ INO - MAX_FD π
- MAX_
SYMLINKS - A completely arbitrary βbig enoughβ number used as the upper limit for the number of symlinks that can be traversed when resolving a path
- STDERR_
DEFAULT_ πRIGHTS - STDIN_
DEFAULT_ πRIGHTS - STDOUT_
DEFAULT_ πRIGHTS - VIRTUAL_
ROOT_ FD - the fd value of the virtual root
FunctionsΒ§
- default_
fs_ backing - Returns the default filesystem backing
- find_
writable_ πroot - fs_
error_ from_ wasi_ err - fs_
error_ into_ wasi_ err - virtual_
file_ type_ to_ wasi_ file_ type