Home
last modified time | relevance | path

Searched refs:AtFlags (Results 1 – 25 of 26) sorted by relevance

12

/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()
12 unlinkat(&dir, "foo", AtFlags::REMOVEDIR).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()
32 unlinkat(&dir, "foo", AtFlags::REMOVEDIR).unwrap(); in test_mkdirat_with_o_path()
Dutimensat.rs4 use rustix::fs::{cwd, openat, statat, utimensat, AtFlags, Mode, OFlags, Timespec, Timestamps}; in test_utimensat()
33 utimensat(&dir, "foo", &times, AtFlags::empty()).unwrap(); in test_utimensat()
35 let after = statat(&dir, "foo", AtFlags::empty()).unwrap(); in test_utimensat()
64 use rustix::fs::{cwd, openat, utimensat, AtFlags, Mode, OFlags, Timespec, Timestamps}; in test_utimensat_noent()
86 utimensat(&dir, "foo", &times, AtFlags::empty()).unwrap_err(), in test_utimensat_noent()
94 use rustix::fs::{cwd, openat, utimensat, AtFlags, Mode, OFlags, Timespec, Timestamps}; in test_utimensat_notdir()
124 utimensat(&foo, "bar", &times, AtFlags::empty()).unwrap_err(), in test_utimensat_notdir()
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()
20 unlinkat(&dir, "foo", AtFlags::empty()).unwrap(); in test_mknodat()
24 let stat = statat(&dir, "foo", AtFlags::empty()).unwrap(); in test_mknodat()
26 unlinkat(&dir, "foo", AtFlags::empty()).unwrap(); in test_mknodat()
Dstatx.rs3 use rustix::fs::{AtFlags, StatxFlags}; in test_statx_unknown_flags()
14 let result = rustix::fs::statx(&f, "Cargo.toml", AtFlags::empty(), too_many_flags).unwrap(); in test_statx_unknown_flags()
25 use rustix::fs::{AtFlags, StatxFlags}; in test_statx_reserved()
33 match rustix::fs::statx(&f, "Cargo.toml", AtFlags::empty(), reserved) { in test_statx_reserved()
Dy2038.rs11 cwd, fstat, openat, statat, utimensat, AtFlags, Mode, OFlags, Timespec, Timestamps, in test_y2038_with_utimensat()
35 match utimensat(&dir, "foo", &timestamps, AtFlags::empty()) { 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()
Dfile.rs9 rustix::fs::AtFlags::empty(), in test_file()
/third_party/rust/crates/rustix/src/fs/
Dstatx.rs5 use crate::fs::AtFlags;
26 flags: AtFlags, in statx() argument
44 flags: AtFlags, in _statx() argument
58 flags: AtFlags, in statx_init() argument
Dat.rs18 use crate::fs::{AtFlags, Mode, OFlags, Stat, Timestamps};
135 flags: AtFlags, in linkat() argument
163 pub fn unlinkat<P: path::Arg, Fd: AsFd>(dirfd: Fd, path: P, flags: AtFlags) -> io::Result<()> { in unlinkat()
261 pub fn statat<P: path::Arg, Fd: AsFd>(dirfd: Fd, path: P, flags: AtFlags) -> io::Result<Stat> { in statat()
281 flags: AtFlags, in accessat() argument
299 flags: AtFlags, in utimensat() argument
383 flags: AtFlags, in chownat() argument
Dconstants.rs9 pub use backend::fs::types::AtFlags;
Dmod.rs105 pub use constants::{AtFlags, Dev};
/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/nix/test/
Dtest_unistd.rs166 stat::fstatat(dirfd, mkfifoat_name, fcntl::AtFlags::empty()).unwrap(); in test_mkfifoat()
430 use nix::fcntl::AtFlags;
433 "", AtFlags::AT_EMPTY_PATH);
436 "./sh", AtFlags::empty());
439 "/system/bin/sh", AtFlags::empty());
441 use nix::fcntl::AtFlags;
443 "", AtFlags::AT_EMPTY_PATH);
445 "./sh", AtFlags::empty());
447 "/bin/sh", AtFlags::empty());
1315 use nix::fcntl::AtFlags; in test_faccessat_none_not_existing()
[all …]
Dtest_stat.rs120 stat::fstatat(dirfd.unwrap(), &filename, fcntl::AtFlags::empty()); in test_fstatat()
396 use fcntl::{AtFlags, OFlag}; in test_mknodat()
415 AtFlags::AT_SYMLINK_NOFOLLOW, in test_mknodat()
/third_party/rust/crates/nix/src/sys/
Dstat.rs13 use crate::fcntl::{at_rawfd, AtFlags};
275 f: AtFlags, in fstatat() argument
335 FchmodatFlags::FollowSymlink => AtFlags::empty(), in fchmodat()
336 FchmodatFlags::NoFollowSymlink => AtFlags::AT_SYMLINK_NOFOLLOW, in fchmodat()
452 UtimensatFlags::FollowSymlink => AtFlags::empty(), in utimensat()
453 UtimensatFlags::NoFollowSymlink => AtFlags::AT_SYMLINK_NOFOLLOW, in utimensat()
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/
Dsyscalls.rs27 Access, Advice, AtFlags, FallocateFlags, FileType, FlockOperation, MemfdFlags, Mode, OFlags,
154 flags: AtFlags, in chownat() argument
414 match statx(fd, cstr!(""), AtFlags::EMPTY_PATH, StatxFlags::BASIC_STATS) { in fstat()
453 AtFlags::empty(), in stat()
506 pub(crate) fn statat(dirfd: BorrowedFd<'_>, filename: &CStr, flags: AtFlags) -> io::Result<Stat> { in statat()
531 fn statat_old(dirfd: BorrowedFd<'_>, filename: &CStr, flags: AtFlags) -> io::Result<Stat> { in statat_old()
566 AtFlags::SYMLINK_NOFOLLOW, in lstat()
721 flags: AtFlags, in statx() argument
1107 pub(crate) fn unlinkat(dirfd: BorrowedFd<'_>, pathname: &CStr, flags: AtFlags) -> io::Result<()> { in unlinkat()
1143 flags: AtFlags, in linkat() argument
[all …]
Dtypes.rs29 pub struct AtFlags: c::c_uint {
/third_party/rust/crates/rustix/src/backend/linux_raw/runtime/
Dsyscalls.rs17 use crate::fs::AtFlags;
43 flags: AtFlags, in execveat() argument
/third_party/rust/crates/rustix/src/
Druntime.rs27 use crate::fs::AtFlags;
248 flags: AtFlags, in execveat() argument
Dio_uring.rs729 pub open_flags: crate::fs::AtFlags,
730 pub statx_flags: crate::fs::AtFlags,
734 pub unlink_flags: crate::fs::AtFlags,
735 pub hardlink_flags: crate::fs::AtFlags,
/third_party/rust/crates/rustix/tests/net/
Dunix.rs16 use rustix::fs::{cwd, unlinkat, AtFlags};
69 unlinkat(cwd(), path, AtFlags::empty()).unwrap(); in server()
/third_party/rust/crates/rustix/src/backend/libc/fs/
Dsyscalls.rs159 use {super::super::offset::libc_openat, crate::fs::AtFlags};
303 flags: AtFlags, in linkat() argument
317 pub(crate) fn unlinkat(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result<()> { in unlinkat()
402 pub(crate) fn statat(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result<Stat> { in statat()
439 fn statat_old(dirfd: BorrowedFd<'_>, path: &CStr, flags: AtFlags) -> io::Result<Stat> { in statat_old()
462 flags: AtFlags, in accessat() argument
479 _flags: AtFlags, in accessat() argument
489 flags: AtFlags, in utimensat() argument
591 if flags.contains(AtFlags::SYMLINK_NOFOLLOW) { in utimensat()
660 flags: AtFlags, in utimensat_old() argument
[all …]
/third_party/rust/crates/nix/src/
Dfcntl.rs30 pub struct AtFlags: c_int {
325 let flags = if path.is_empty() { AtFlags::AT_EMPTY_PATH } else { AtFlags::empty() };
326 super::sys::stat::fstatat(dirfd, path, flags | AtFlags::AT_SYMLINK_NOFOLLOW)
329 Some(dirfd) => super::sys::stat::fstatat(dirfd, path, AtFlags::AT_SYMLINK_NOFOLLOW),
Dunistd.rs6 use crate::fcntl::{at_rawfd, AtFlags};
778 FchownatFlags::FollowSymlink => AtFlags::empty(),
779 FchownatFlags::NoFollowSymlink => AtFlags::AT_SYMLINK_NOFOLLOW,
923 env: &[SE], flags: super::fcntl::AtFlags) -> Result<Infallible> {
1262 LinkatFlags::SymlinkFollow => AtFlags::AT_SYMLINK_FOLLOW,
1263 LinkatFlags::NoSymlinkFollow => AtFlags::empty(),
1321 UnlinkatFlags::RemoveDir => AtFlags::AT_REMOVEDIR,
1322 UnlinkatFlags::NoRemoveDir => AtFlags::empty(),
2926 …Sized + NixPath>(dirfd: Option<RawFd>, path: &P, mode: AccessFlags, flags: AtFlags) -> Result<()> {
/third_party/rust/crates/rustix/src/backend/linux_raw/
Dconv.rs309 impl<'a, Num: ArgNumber> From<crate::fs::AtFlags> for ArgReg<'a, Num> {
311 fn from(flags: crate::fs::AtFlags) -> Self { in from()

12