Expand description
Thin userspace helpers over the Strat9 VFS syscalls used by telnetd.
Re-exportsยง
use alloc::string::String;๐use alloc::vec::Vec;๐use strat9_syscall::call;๐use strat9_syscall::data::FileStat;๐use strat9_syscall::data::TimeSpec;๐use strat9_syscall::dirent::DirentIter;๐use strat9_syscall::error::Error;๐use strat9_syscall::flag::OpenFlags;๐use strat9_syscall::number;๐
Structsยง
- DirEntry
- One decoded directory entry.
Constantsยง
Functionsยง
- basename
- Last component of a path (
/for the root). - chmod
- civil_
from_ days - Convert days since 1970-01-01 to (year, month 1-12, day 1-31).
- err_
text - Short English description of an error.
- format_
mode drwxr-xr-xstyle mode string.- format_
time YYYY-MM-DD HH:MMfor a unix timestamp.- format_
time_ full YYYY-MM-DD HH:MM:SS.nnnnnnnnn(UTC) for a timestamp.- is_dir
- join
- link
- log
- mkdir
- normalize
- Collapse
.,..and duplicate/in an absolute path. - now
- Wall-clock time (
CLOCK_REALTIME). - open
- read_
dir - List a directory (entries
./..removed, sorted by name). - read_
file - Read up to
capbytes of a file. - read_
text_ file - Read a small text file, returning the byte count (0 on any error).
- rename
- resolve
- Resolve
pathagainstcwdinto a normalized absolute path. - rmdir
- sleep_
ms - stat
- unlink
- utimens
- Set atime/mtime.
None= both โnowโ (liketouch). - write_
all - Write the whole buffer, retrying on
EAGAIN(socket send window full).