Module fs

Source

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 πŸ”’

StructsΒ§

EpollFd
EpollInterest
Represents all the EpollInterests that have occurred
EpollJoinGuard
Guard the cleans up the selector registrations
FallbackFileSystem
Fd
FdInner
Inode
InodeGuard
InodeVal
A file that Wasi knows about that may or may not be open
InodeWeakGuard
NotificationInner
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
WasiInodes
WasiInodesProtected πŸ”’

EnumsΒ§

Kind
The core of the filesystem abstraction. Includes directories, files, and symlinks.
WasiFsRoot

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_SYMLINKS
A completely aribtrary β€œ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Β§

create_dir_all πŸ”’
default_fs_backing
Returns the default filesystem backing
fs_error_from_wasi_err
fs_error_into_wasi_err
merge_filesystems πŸ”’
Merge the contents of one filesystem into another.
virtual_file_type_to_wasi_file_type