Close the descriptor.
Update the descriptor's file-descriptor flags (APPEND / NONBLOCK / …).
Return the preopen's directory name for fd (e.g. ".").
Return the preopen description for fd, or null if not a preopen.
Read into the provided buffer list; returns total bytes read.
Read directory entries. Returns up to the entries starting from cookie.
The runtime is responsible for truncating to the guest's buffer size.
Seek; returns the new absolute offset.
Write the provided buffer list; returns total bytes written.
Create a directory at path relative to fdDir.
Open a path relative to the directory fdDir. Returns the new fd.
oflags / fdflags mirror preview1 semantics.
Remove an (empty) directory at path relative to fdDir.
Rename oldPath under oldFdDir to newPath under newFdDir.
Remove a file at path relative to fdDir.
Raw synchronous filesystem provider.
Mirrors the preview1 filesystem-syscall surface with JS-native shapes:
Uint8Arrayfor buffers,bigintfor 64-bit offsets, structuredFilestat/Fdstat/DirEntryrecords. No raw pointers — memory marshalling lives inwasix.ts, mirroringwasi.ts.All methods are synchronous. An
AsyncFileSystemProvidervariant (for IndexedDB / server-backed filesystems) ships in a later slice.Provider methods throw
WASIXErrorto signal a specific errno; any other thrown value is treated asEIOby the runtime.