Home
last modified time | relevance | path

Searched refs:RDONLY (Results 1 – 25 of 34) sorted by relevance

12

/third_party/rust/crates/rustix/tests/fs/
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 | OFlags::CLOEXEC, in test_openat2()
[all …]
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()
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()
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()
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()
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()
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()
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()
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()
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()
Dfcntl.rs10 rustix::fs::OFlags::RDONLY, in test_fcntl_dupfd_cloexec()
Dopenat.rs12 OFlags::RDONLY | OFlags::CLOEXEC, in test_openat_tmpfile()
Dfutimens.rs7 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_futimens()
Dmknodat.rs12 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_mknodat()
Dreaddir.rs150 rustix::fs::OFlags::RDONLY, in dir_from_openat()
/third_party/rust/crates/rustix/tests/io/
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()
Dfrom_into.rs10 rustix::fs::OFlags::RDONLY, in test_owned()
/third_party/rust/crates/rustix/tests/mm/
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/mksh/
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()
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()
1861 vp->flag = DEFINED | RDONLY; in record_match()
[all …]
/third_party/ltp/testcases/network/nfsv4/locks/
Dlocktests.c52 RDONLY, RDONLY,
616 case RDONLY: in master()
782 case RDONLY: in slave()
784 P("TEST READ ONLY %d\n", RDONLY); in slave()
Dlocktests.h107 RDONLY, enumerator
/third_party/rust/crates/rustix/tests/process/
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/
Dtypes.rs170 const RDONLY = linux_raw_sys::general::O_RDONLY; constant
511 const RDONLY = linux_raw_sys::general::MS_RDONLY as u64; constant
684 const RDONLY = linux_raw_sys::general::MS_RDONLY; constant
/third_party/rust/crates/rustix/src/backend/libc/fs/
Dtypes.rs203 const RDONLY = c::O_RDONLY; constant
838 const RDONLY = libc::ST_RDONLY as u64; constant
1162 const RDONLY = c::MS_RDONLY; constant
/third_party/rust/crates/rustix/src/fs/
Dfd.rs281 crate::fs::OFlags::RDONLY => Ok((true, false)), in _is_file_read_write()

12