Function axprocess::link::deal_with_path
source · pub fn deal_with_path(
dir_fd: usize,
path_addr: Option<*const u8>,
force_dir: bool
) -> Option<FilePath>
Expand description
To deal with the path and return the canonicalized path
-
dir_fd
- The file descriptor of the directory, if it is AT_FDCWD, the call operates on the current working directory -
path_addr
- The address of the path, if it is null, the call operates on the file that is specified bydir_fd
-
force_dir
- If true, the path will be treated as a directory
The path will be dealt with links and the path will be canonicalized