pub fn sys_getcwd(
_abi: &mut LinuxRiscv64Abi,
trapframe: &mut Trapframe,
) -> usizeExpand description
Linux sys_getcwd system call implementation Get current working directory
Arguments:
- buf: Buffer to store the current working directory path
- size: Size of the buffer
Returns:
- Number of bytes written to buffer on success
- usize::MAX on error