Home
last modified time | relevance | path

Searched refs:statat (Results 1 – 10 of 10) sorted by relevance

/third_party/rust/crates/rustix/tests/fs/
Drenameat.rs12 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 …]
Dmkdirat.rs4 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()
Dmknodat.rs9 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()
Dy2038.rs11 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()
Dutimensat.rs4 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/
Dmod.rs46 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/
Dat.rs261 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()
Dmod.rs95 linkat, mkdirat, openat, readlinkat, renameat, statat, symlinkat, unlinkat, utimensat, RawMode,
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/
Dsyscalls.rs506 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/
Dsyscalls.rs402 pub(crate) fn statat(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result<Stat> { in statat() function