pub fn sys_openat(abi: &mut LinuxRiscv64Abi, trapframe: &mut Trapframe) -> usizeExpand description
Linux sys_openat implementation for Scarlet VFS v2
Opens a file relative to a directory file descriptor (dirfd) and path. If dirfd == AT_FDCWD, uses the current working directory as the base. Otherwise, resolves the base directory from the file descriptor. Uses VfsManager::open_relative for safe and efficient path resolution.
Arguments:
- abi: LinuxRiscv64Abi context
- trapframe: Trapframe containing syscall arguments
Returns:
- File descriptor on success
- usize::MAX (Linux -1) on error