Lines Matching refs:path
25 path: *const u8, in do_faccessat()
43 let path = check_and_clone_cstr(path, Some(MAX_PATHLEN))?; in do_faccessat() localVariable
44 let path = path.to_str().map_err(|_| SystemError::EINVAL)?; in do_faccessat() localVariable
46 let (inode, path) = user_path_at(&ProcessManager::current_pcb(), dirfd, path)?; in do_faccessat()
49 let _inode = inode.lookup_follow_symlink(path.as_str(), VFS_MAX_FOLLOW_SYMLINK_TIMES)?; in do_faccessat()
55 pub fn do_fchmodat(dirfd: i32, path: *const u8, _mode: ModeType) -> Result<usize, SystemError> { in do_fchmodat()
56 let path = check_and_clone_cstr(path, Some(MAX_PATHLEN))?; in do_fchmodat() localVariable
57 let path = path.to_str().map_err(|_| SystemError::EINVAL)?; in do_fchmodat() localVariable
59 let (inode, path) = user_path_at(&ProcessManager::current_pcb(), dirfd, path)?; in do_fchmodat()
62 let _inode = inode.lookup_follow_symlink(path.as_str(), VFS_MAX_FOLLOW_SYMLINK_TIMES)?; in do_fchmodat()
72 path: &str, in do_fchownat()
83 let (inode, path) = user_path_at(&ProcessManager::current_pcb(), dirfd, path)?; in do_fchownat()
87 inode.lookup_follow_symlink2(path.as_str(), VFS_MAX_FOLLOW_SYMLINK_TIMES, false) in do_fchownat()
89 inode.lookup(path.as_str()) in do_fchownat()
154 path: &str, in do_sys_open()
160 return do_sys_openat2(dfd, path, how, follow_symlink); in do_sys_open()
165 path: &str, in do_sys_openat2()
170 let path = path.trim(); in do_sys_openat2() localVariable
172 let (inode_begin, path) = user_path_at(&ProcessManager::current_pcb(), dirfd, path)?; in do_sys_openat2()
174 &path, in do_sys_openat2()
190 let (filename, parent_path) = rsplit_path(&path); in do_sys_openat2()
256 Some(path) => {
257 let (inode_begin, path) =
258 user_path_at(&ProcessManager::current_pcb(), dirfd, path.as_str())?;
260 inode_begin.lookup(path.as_str())?
262 inode_begin.lookup_follow_symlink(path.as_str(), VFS_MAX_FOLLOW_SYMLINK_TIMES)?
298 pub fn do_utimes(path: &str, times: Option<[PosixTimeval; 2]>) -> Result<usize, SystemError> { in do_utimes()
300 let (inode_begin, path) = user_path_at(
303 path,
305 let inode = inode_begin.lookup_follow_symlink(path.as_str(), VFS_MAX_FOLLOW_SYMLINK_TIMES)?;