Home
last modified time | relevance | path

Searched refs:dirfd (Results 1 – 5 of 5) sorted by relevance

/DragonOS/kernel/src/filesystem/vfs/
H A Dopen.rs24 dirfd: i32, in do_faccessat()
46 let (inode, path) = user_path_at(&ProcessManager::current_pcb(), dirfd, path)?; in do_faccessat()
55 pub fn do_fchmodat(dirfd: i32, path: *const u8, _mode: ModeType) -> Result<usize, SystemError> { in do_fchmodat()
59 let (inode, path) = user_path_at(&ProcessManager::current_pcb(), dirfd, path)?; in do_fchmodat()
71 dirfd: i32, in do_fchownat()
83 let (inode, path) = user_path_at(&ProcessManager::current_pcb(), dirfd, path)?; in do_fchownat()
164 dirfd: i32, in do_sys_openat2()
172 let (inode_begin, path) = user_path_at(&ProcessManager::current_pcb(), dirfd, path)?; in do_sys_openat2()
247 dirfd: i32, in do_utimensat()
258 user_path_at(&ProcessManager::current_pcb(), dirfd, path.as_str())?;
[all …]
H A Dcore.rs170 dirfd: i32, in do_mkdir_at()
176 user_path_at(&ProcessManager::current_pcb(), dirfd, path.trim())?; in do_mkdir_at()
187 pub fn do_remove_dir(dirfd: i32, path: &str) -> Result<u64, SystemError> { in do_remove_dir()
191 let (inode_begin, remain_path) = user_path_at(&pcb, dirfd, path)?; in do_remove_dir()
220 pub fn do_unlink_at(dirfd: i32, path: &str) -> Result<u64, SystemError> { in do_unlink_at()
224 let (inode_begin, remain_path) = user_path_at(&pcb, dirfd, path)?; in do_unlink_at()
379 dirfd: i32, in do_umount2()
383 let (work, rest) = user_path_at(&ProcessManager::current_pcb(), dirfd, target)?; in do_umount2()
H A Dutils.rs42 dirfd: i32, in user_path_at()
50 if dirfd != AtFlags::AT_FDCWD.bits() { in user_path_at()
54 .get_file_by_fd(dirfd) in user_path_at()
H A Dsyscall.rs506 dirfd: i32, in openat()
518 return do_sys_open(dirfd, &path, open_flags, mode, follow_symlink); in openat()
814 pub fn mkdir_at(dirfd: i32, path: *const u8, mode: usize) -> Result<usize, SystemError> { in mkdir_at()
818 do_mkdir_at(dirfd, &path, FileMode::from_bits_truncate(mode as u32))?; in mkdir_at()
944 pub fn unlinkat(dirfd: i32, path: *const u8, flags: u32) -> Result<usize, SystemError> { in unlinkat()
953 match do_remove_dir(dirfd, &path) { in unlinkat()
963 match do_unlink_at(dirfd, &path) { in unlinkat()
1557 dirfd: i32, in readlink_at()
1568 let (inode, path) = user_path_at(&ProcessManager::current_pcb(), dirfd, path)?; in readlink_at()
1602 dirfd: i32, in faccessat2()
[all …]
/DragonOS/kernel/src/syscall/
H A Dmod.rs147 let dirfd = args[0] as i32; in handle() localVariable
152 Self::openat(dirfd, path, flags, mode, true) in handle()
313 let dirfd = args[0] as i32; in handle() localVariable
316 Self::mkdir_at(dirfd, path, mode) in handle()
357 let dirfd = args[0] as i32; in handle() localVariable
360 Self::unlinkat(dirfd, path, flags) in handle()
958 let dirfd = args[0] as i32; in handle() localVariable
962 Self::readlink_at(dirfd, path, buf, bufsiz) in handle()
983 let dirfd = args[0] as i32; in handle() localVariable
986 Self::faccessat2(dirfd, pathname, mode, 0) in handle()
[all …]