Home
last modified time | relevance | path

Searched refs:RDONLY (Results 1 - 25 of 30) sorted by relevance

12

/third_party/rust/crates/rustix/tests/fs/
H A Dopenat2.rs26 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_openat2()
32 OFlags::RDONLY | OFlags::CLOEXEC, in test_openat2()
56 OFlags::RDONLY | OFlags::CLOEXEC, in test_openat2()
64 OFlags::RDONLY | OFlags::CLOEXEC, in test_openat2()
72 OFlags::RDONLY | OFlags::CLOEXEC, in test_openat2()
82 OFlags::RDONLY | OFlags::CLOEXEC, in test_openat2()
90 OFlags::RDONLY | OFlags::CLOEXEC, in test_openat2()
98 OFlags::RDONLY | OFlags::CLOEXEC, in test_openat2()
106 OFlags::RDONLY | OFlags::CLOEXEC, in test_openat2()
116 OFlags::RDONLY | OFlag in test_openat2()
[all...]
H A Dflock.rs6 let f = openat(cwd(), "Cargo.toml", OFlags::RDONLY, Mode::empty()).unwrap(); in test_flock()
9 let g = openat(cwd(), "Cargo.toml", OFlags::RDONLY, Mode::empty()).unwrap(); in test_flock()
15 let f = openat(cwd(), "Cargo.toml", OFlags::RDONLY, Mode::empty()).unwrap(); in test_flock()
17 let g = openat(cwd(), "Cargo.toml", OFlags::RDONLY, Mode::empty()).unwrap(); in test_flock()
24 let f = openat(cwd(), "Cargo.toml", OFlags::RDONLY, Mode::empty()).unwrap(); in test_flock()
28 let g = openat(cwd(), "Cargo.toml", OFlags::RDONLY, Mode::empty()).unwrap(); in test_flock()
H A Dlong_paths.rs7 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_long_paths()
26 let _ = openat(&dir, &long_path, OFlags::RDONLY, Mode::empty()).unwrap(); in test_long_paths()
27 let _ = openat(&dir, &too_long_path, OFlags::RDONLY, Mode::empty()).unwrap_err(); in test_long_paths()
H A Dinvalid_offset.rs18 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in invalid_offset_seek()
47 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in invalid_offset_fallocate()
77 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in invalid_offset_fadvise()
109 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in invalid_offset_pread()
129 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in invalid_offset_pwrite()
149 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in invalid_offset_copy_file_range()
H A Dfile.rs17 rustix::fs::OFlags::RDONLY, in test_file()
27 rustix::fs::OFlags::RDONLY, in test_file()
36 rustix::fs::OFlags::RDONLY, in test_file()
H A Ddir.rs6 rustix::fs::OFlags::RDONLY | rustix::fs::OFlags::CLOEXEC, in test_dir()
16 rustix::fs::OFlags::RDONLY | rustix::fs::OFlags::CLOEXEC, in test_dir()
H A Dmkdirat.rs7 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_mkdirat()
24 OFlags::RDONLY | OFlags::PATH, in test_mkdirat_with_o_path()
H A Dutimensat.rs10 OFlags::RDONLY | OFlags::CLOEXEC, in test_utimensat()
70 OFlags::RDONLY | OFlags::CLOEXEC, in test_utimensat_noent()
100 OFlags::RDONLY | OFlags::CLOEXEC, in test_utimensat_notdir()
H A Drenameat.rs18 OFlags::RDONLY | OFlags::PATH, in test_renameat()
41 OFlags::RDONLY | OFlags::PATH, in test_renameat_overwrite()
63 OFlags::RDONLY | OFlags::PATH, in test_renameat_with()
H A Dy2038.rs16 let dir = openat(&cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_y2038_with_utimensat()
73 let file = openat(&dir, "foo", OFlags::RDONLY, Mode::empty()).unwrap(); in test_y2038_with_utimensat()
115 let dir = openat(&cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_y2038_with_futimens()
169 let file = openat(&dir, "foo", OFlags::RDONLY, Mode::empty()).unwrap(); in test_y2038_with_futimens()
H A Dfcntl.rs10 rustix::fs::OFlags::RDONLY, in test_fcntl_dupfd_cloexec()
H A Dopenat.rs12 OFlags::RDONLY | OFlags::CLOEXEC, in test_openat_tmpfile()
H A Dfutimens.rs7 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_futimens()
H A Dmknodat.rs12 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_mknodat()
H A Dreaddir.rs150 rustix::fs::OFlags::RDONLY, in dir_from_openat()
/third_party/rust/crates/rustix/tests/io/
H A Dread_write.rs13 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_readwrite_pv()
51 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_readwrite_p()
76 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_readwrite_v()
103 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_readwrite()
157 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_pwritev2()
H A Dfrom_into.rs10 rustix::fs::OFlags::RDONLY, in test_owned()
/third_party/rust/crates/rustix/tests/mm/
H A Dmmap.rs14 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_mmap()
26 let file = openat(&dir, "foo", OFlags::RDONLY, Mode::empty()).unwrap(); in test_mmap()
43 let file = openat(&dir, "foo", OFlags::RDONLY, Mode::empty()).unwrap(); in test_mmap()
/third_party/ltp/testcases/network/nfsv4/locks/
H A Dlocktests.c52 RDONLY, RDONLY,
616 case RDONLY: in master()
782 case RDONLY: in slave()
784 P("TEST READ ONLY %d\n", RDONLY); in slave()
841 perror("RDONLY: fcntl"); in slave()
H A Dlocktests.h107 RDONLY, enumerator
/third_party/mksh/
H A Dvar.c277 vp->flag |= RDONLY; in isglobal()
282 vp->flag |= RDONLY; in isglobal()
351 vp->flag = DEFINED|RDONLY; in local()
363 (EXPORT | INTEGER | RDONLY | LJUST | RJUST | in local()
463 if ((vq->flag & RDONLY) && !no_ro_check) { in setstr()
758 * (INTEGER, RDONLY, EXPORT, TRACE, LJUST, RJUST, ZEROFIL, LCASEV,
948 if ((vpbase->flag & RDONLY) && in vtypeset()
949 (val || clr || (set & ~(EXPORT | RDONLY)))) in vtypeset()
1197 vp->flag &= ~(INTEGER|RDONLY|SPECIAL); in makenv()
1651 if ((vp->flag&RDONLY)) in set_array()
[all...]
/third_party/rust/crates/rustix/tests/process/
H A Dworking_directory.rs22 let orig_fd_cwd = rustix::fs::openat(rustix::fs::cwd(), ".", OFlags::RDONLY, Mode::empty()) in test_changing_working_directory()
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/
H A Dtypes.rs170 const RDONLY = linux_raw_sys::general::O_RDONLY; consts
511 const RDONLY = linux_raw_sys::general::MS_RDONLY as u64; consts
684 const RDONLY = linux_raw_sys::general::MS_RDONLY; consts
/third_party/rust/crates/rustix/src/backend/libc/fs/
H A Dtypes.rs203 const RDONLY = c::O_RDONLY; consts
838 const RDONLY = libc::ST_RDONLY as u64; consts
1162 const RDONLY = c::MS_RDONLY; consts
/third_party/rust/crates/rustix/src/io/
H A Dprocfs.rs412 let oflags = OFlags::RDONLY | OFlags::CLOEXEC | OFlags::NOFOLLOW | OFlags::NOCTTY; in open_and_check_file()

Completed in 12 milliseconds

12