sys_getcwd

Function sys_getcwd 

Source
pub fn sys_getcwd(
    _abi: &mut LinuxRiscv64Abi,
    trapframe: &mut Trapframe,
) -> usize
Expand 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