StructsΒ§
- IoVec
- Linux iovec structure for vectored I/O operations This structure matches the Linux kernelβs definition for struct iovec
- Linux
Dirent64 - Linux struct linux_dirent64 (for getdents64 syscall)
- Linux
Stat - Linux stat structure for RISC-V 64-bit Matches asm-generic struct stat layout used by musl on 64-bit.
- Linux
Statx - Linux statx structure (matches Linux UAPI layout)
- Linux
Statx Timestamp - Linux statx timestamp structure
EnumsΒ§
- Open
Mode π
ConstantsΒ§
- FD_
CLOEXEC - F_DUPFD
- F_
DUPFD_ CLOEXEC - F_GETFD
- F_GETFL
- F_
GETLEASE - F_GETLK
- F_
GETOWN - F_
GETSIG - F_
NOTIFY - F_SETFD
- F_SETFL
- F_
SETLEASE - F_SETLK
- F_
SETLKW - F_
SETOWN - F_
SETSIG - GRND_
INSECURE - GRND_
NONBLOCK - GRND_
RANDOM - LOG_
FCNTL π - Linux sys_fcntl implementation for Scarlet VFS v2 Currently provides basic logging of commands to understand usage patterns
- MAX_
ARG_ πCOUNT - MAX_
PATH_ πLENGTH - O_
APPEND - O_ASYNC
- O_
CLOEXEC - O_CREAT
- O_
DIRECT - O_
DIRECTORY - O_DSYNC
- O_EXCL
- O_
LARGEFILE - O_
NOATIME - O_
NOCTTY - O_
NOFOLLOW - O_
NONBLOCK - O_PATH
- O_
RDONLY - O_RDWR
- O_SYNC
- O_
TMPFILE - O_TRUNC
- O_
WRONLY - RENAME_
EXCHANGE π - RENAME_
NOREPLACE π - RENAME_
WHITEOUT π - STATX_
ATIME - STATX_
BASIC_ STATS - STATX_
BLOCKS - STATX_
BTIME - STATX_
CTIME - STATX_
GID - STATX_
INO - STATX_
MODE - STATX_
MTIME - STATX_
NLINK - STATX_
SIZE - STATX_
TYPE - STATX_
UID - S_IFBLK
- S_IFCHR
- S_IFDIR
- S_IFIFO
- S_IFLNK
- S_IFMT
- S_IFREG
- S_
IFSOCK - S_IRGRP
- S_IROTH
- S_IRUSR
- S_IRWXG
- S_IRWXO
- S_IRWXU
- S_IWGRP
- S_IWOTH
- S_IWUSR
- S_IXGRP
- S_IXOTH
- S_IXUSR
StaticsΒ§
- XORSHIFT_
STATE π
FunctionsΒ§
- fill_
pseudo_ πrandom - fill_
statx_ πfrom_ stat - get_
path_ πstr_ v2 - Helper function to replace the missing get_path_str function TODO: This should be moved to a shared helper when VFS v2 provides public API
- is_
wl_ πshm_ path - next_
pseudo_ πrandom_ u64 - remap_
shm_ πpath - statx_
timestamp_ πfrom_ secs - stream_
error_ πto_ errno - sys_
chdir - Linux sys_chdir system call implementation (syscall 49) Change current working directory
- sys_
close - sys_dup
- sys_
dup3 - sys_
epoll_ create1 - Linux epoll_create1 implementation (stub)
- sys_
epoll_ ctl - Linux epoll_ctl implementation (stub)
- sys_
epoll_ pwait - Linux epoll_pwait implementation (stub)
- sys_
epoll_ wait - Linux epoll_wait implementation (stub)
- sys_
eventfd2 - eventfd2 - create file descriptor for event notification
- sys_
exec - Linux sys_exec system call implementation Executes a program specified by the given path, replacing the current process image with a new one. Also allows passing arguments and environment variables to the new program.
- sys_
execve - Linux execve system call implementation
- sys_
faccessat - Linux sys_faccessat implementation (dummy: always returns 0)
- sys_
faccessat2 - Linux faccessat2 system call (syscall 439)
- sys_
fallocate - Linux sys_fallocate - Manipulate file space
- sys_
fchmod - Linux sys_fchmod implementation (stub)
- sys_
fcntl - sys_
flock - Linux sys_flock - Apply or remove an advisory lock on an open file
- sys_
fsync - Linux sys_fsync system call implementation (stub) Synchronize a fileβs in-core state with storage device
- sys_
ftruncate - Linux sys_ftruncate implementation
- sys_
getcwd - Linux sys_getcwd system call implementation Get current working directory
- sys_
getdents64 - getdents64 syscall implementation
- sys_
getrandom - Linux sys_getrandom implementation
- sys_
ioctl - Linux ioctl system call implementation
- sys_
link - sys_
linkat - Linux sys_linkat implementation for Scarlet VFS v2
- sys_
lseek - sys_
mkdir - sys_
mkdirat - Linux sys_mkdirat implementation
- sys_
newfstat - Linux sys_newfstat implementation for Scarlet VFS v2
- sys_
newfstatat - Linux sys_newfstatat implementation for Scarlet VFS v2
- sys_
openat - Linux sys_openat implementation for Scarlet VFS v2
- sys_
ppoll - Minimal Linux ppoll implementation
- sys_
pread64 - sys_
pselect6 - Minimal Linux pselect6 implementation (stub)
- sys_
pwrite64 - sys_
read - sys_
readlinkat - Linux sys_readlinkat implementation
- sys_
readv - Linux readv system call implementation
- sys_
renameat2 - Linux sys_renameat2 system call implementation (syscall 276) Rename/move a file or directory with additional flags
- sys_
statx - Linux sys_statx implementation for Scarlet VFS v2
- sys_
umask - Linux sys_umask implementation (stub)
- sys_
unlink - sys_
unlinkat - Linux sys_unlinkat implementation for Scarlet VFS v2
- sys_
write - sys_
writev - Linux writev system call implementation
- to_
absolute_ πpath_ v2 - VFS v2 helper function for path absolutization using VfsManager