Lines Matching refs:path

485         path: *const u8,  in open()
490 let path = check_and_clone_cstr(path, Some(MAX_PATHLEN))? in open() localVariable
498 &path, in open()
507 path: *const u8, in openat()
512 let path = check_and_clone_cstr(path, Some(MAX_PATHLEN))? in openat() localVariable
518 return do_sys_open(dirfd, &path, open_flags, mode, follow_symlink); in openat()
690 pub fn chdir(path: *const u8) -> Result<usize, SystemError> { in chdir()
691 if path.is_null() { in chdir()
695 let path = check_and_clone_cstr(path, Some(MAX_PATHLEN))? in chdir() localVariable
702 if !path.is_empty() { in chdir()
703 let cwd = match path.as_bytes()[0] { in chdir()
708 let path_split = path.split('/').filter(|&x| !x.is_empty()); in chdir()
801 pub fn mkdir(path: *const u8, mode: usize) -> Result<usize, SystemError> { in mkdir()
802 let path = check_and_clone_cstr(path, Some(MAX_PATHLEN))? in mkdir() localVariable
808 &path, in mkdir()
814 pub fn mkdir_at(dirfd: i32, path: *const u8, mode: usize) -> Result<usize, SystemError> { in mkdir_at()
815 let path = check_and_clone_cstr(path, Some(MAX_PATHLEN))? in mkdir_at() localVariable
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()
947 let path = check_and_clone_cstr(path, Some(MAX_PATHLEN))? in unlinkat() localVariable
953 match do_remove_dir(dirfd, &path) { in unlinkat()
963 match do_unlink_at(dirfd, &path) { in unlinkat()
973 pub fn rmdir(path: *const u8) -> Result<usize, SystemError> { in rmdir()
974 let path = check_and_clone_cstr(path, Some(MAX_PATHLEN))? in rmdir() localVariable
977 return do_remove_dir(AtFlags::AT_FDCWD.bits(), &path).map(|v| v as usize); in rmdir()
980 pub fn unlink(path: *const u8) -> Result<usize, SystemError> { in unlink()
981 let path = check_and_clone_cstr(path, Some(MAX_PATHLEN))? in unlink() localVariable
984 return do_unlink_at(AtFlags::AT_FDCWD.bits(), &path).map(|v| v as usize); in unlink()
1341 pub fn stat(path: *const u8, user_kstat: *mut PosixKstat) -> Result<usize, SystemError> { in stat()
1343 path, in stat()
1353 pub fn lstat(path: *const u8, user_kstat: *mut PosixKstat) -> Result<usize, SystemError> { in lstat()
1355 path, in lstat()
1365 pub fn statfs(path: *const u8, user_statfs: *mut PosixStatfs) -> Result<usize, SystemError> { in statfs()
1368 path, in statfs()
1373 let path = check_and_clone_cstr(path, Some(MAX_PATHLEN)) in statfs() localVariable
1378 let (_inode_begin, remain_path) = user_path_at(&pcb, fd as i32, &path)?; in statfs()
1400 path: *const u8, in do_statx()
1416 let ofd = Self::open(path, flags.bits(), ModeType::empty().bits, true)?; in do_statx()
1507 path: *const u8, in mknod()
1511 let path = check_and_clone_cstr(path, Some(MAX_PATHLEN))? in mknod() localVariable
1514 let path = path.as_str().trim(); in mknod() localVariable
1517 ROOT_INODE().lookup_follow_symlink(path, VFS_MAX_FOLLOW_SYMLINK_TIMES); in mknod()
1523 let (filename, parent_path) = rsplit_path(path); in mknod()
1558 path: *const u8, in readlink_at()
1562 let path = check_and_clone_cstr(path, Some(MAX_PATHLEN))? in readlink_at() localVariable
1565 let path = path.as_str().trim(); in readlink_at() localVariable
1568 let (inode, path) = user_path_at(&ProcessManager::current_pcb(), dirfd, path)?; in readlink_at()
1570 let inode = inode.lookup(path.as_str())?; in readlink_at()
1585 path: *const u8, in readlink()
1589 return Self::readlink_at(AtFlags::AT_FDCWD.bits(), path, user_buf, buf_size); in readlink()