/third_party/rust/crates/rustix/tests/fs/ |
D | renameat.rs | 12 use rustix::fs::{cwd, openat, renameat, statat, AtFlags, Mode, OFlags}; in test_renameat() 24 let before = statat(&dir, "foo", AtFlags::empty()).unwrap(); in test_renameat() 26 let renamed = statat(&dir, "bar", AtFlags::empty()).unwrap(); in test_renameat() 35 use rustix::fs::{cwd, openat, renameat, statat, AtFlags, Mode, OFlags}; in test_renameat_overwrite() 48 let before = statat(&dir, "foo", AtFlags::empty()).unwrap(); in test_renameat_overwrite() 50 let renamed = statat(&dir, "bar", AtFlags::empty()).unwrap(); in test_renameat_overwrite() 57 use rustix::fs::{cwd, openat, renameat_with, statat, AtFlags, Mode, OFlags, RenameFlags}; in test_renameat_with() 69 let before = statat(&dir, "foo", AtFlags::empty()).unwrap(); in test_renameat_with() 77 let renamed = statat(&dir, "red", AtFlags::empty()).unwrap(); in test_renameat_with() 90 let green = statat(&dir, "green", AtFlags::empty()).unwrap(); in test_renameat_with() [all …]
|
D | mkdirat.rs | 4 use rustix::fs::{cwd, mkdirat, openat, statat, unlinkat, AtFlags, FileType, Mode, OFlags}; in test_mkdirat() 10 let stat = statat(&dir, "foo", AtFlags::empty()).unwrap(); in test_mkdirat() 18 use rustix::fs::{cwd, mkdirat, openat, statat, unlinkat, AtFlags, FileType, Mode, OFlags}; in test_mkdirat_with_o_path() 30 let stat = statat(&dir, "foo", AtFlags::empty()).unwrap(); in test_mkdirat_with_o_path()
|
D | mknodat.rs | 9 use rustix::fs::{cwd, mknodat, openat, statat, unlinkat, AtFlags, FileType, Mode, OFlags}; in test_mknodat() 18 let stat = statat(&dir, "foo", AtFlags::empty()).unwrap(); in test_mknodat() 24 let stat = statat(&dir, "foo", AtFlags::empty()).unwrap(); in test_mknodat()
|
D | y2038.rs | 11 cwd, fstat, openat, statat, utimensat, AtFlags, Mode, OFlags, Timespec, Timestamps, in test_y2038_with_utimensat() 47 let stat = statat(&dir, "foo", AtFlags::empty()).unwrap(); in test_y2038_with_utimensat() 110 cwd, fstat, futimens, openat, statat, AtFlags, Mode, OFlags, Timespec, Timestamps, in test_y2038_with_futimens() 146 let stat = statat(&dir, "foo", AtFlags::empty()).unwrap(); in test_y2038_with_futimens()
|
D | utimensat.rs | 4 use rustix::fs::{cwd, openat, statat, utimensat, AtFlags, Mode, OFlags, Timespec, Timestamps}; in test_utimensat() 35 let after = statat(&dir, "foo", AtFlags::empty()).unwrap(); in test_utimensat()
|
/third_party/rust/crates/rustix/benches/ |
D | mod.rs | 46 use rustix::fs::{cwd, statat, AtFlags}; in simple_statat() 50 statat(cwd(), "/", AtFlags::empty()).unwrap(); in simple_statat() 94 use rustix::fs::{cwd, statat, AtFlags}; in simple_statat_cstr() 98 statat(cwd(), rustix::cstr!("/"), AtFlags::empty()).unwrap(); in simple_statat_cstr()
|
/third_party/rust/crates/rustix/src/fs/ |
D | at.rs | 261 pub fn statat<P: path::Arg, Fd: AsFd>(dirfd: Fd, path: P, flags: AtFlags) -> io::Result<Stat> { in statat() function 262 path.into_with_c_str(|path| backend::fs::syscalls::statat(dirfd.as_fd(), path, flags)) in statat()
|
D | mod.rs | 95 linkat, mkdirat, openat, readlinkat, renameat, statat, symlinkat, unlinkat, utimensat, RawMode,
|
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/ |
D | syscalls.rs | 506 pub(crate) fn statat(dirfd: BorrowedFd<'_>, filename: &CStr, flags: AtFlags) -> io::Result<Stat> { in statat() function
|
/third_party/rust/crates/rustix/src/backend/libc/fs/ |
D | syscalls.rs | 402 pub(crate) fn statat(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result<Stat> { in statat() function
|