/third_party/rust/crates/rustix/tests/fs/ |
H A D | openat2.rs | 26 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 D | flock.rs | 6 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 D | long_paths.rs | 7 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 D | invalid_offset.rs | 18 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 D | file.rs | 17 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 D | dir.rs | 6 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 D | mkdirat.rs | 7 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 D | utimensat.rs | 10 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 D | renameat.rs | 18 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 D | y2038.rs | 16 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 D | fcntl.rs | 10 rustix::fs::OFlags::RDONLY, in test_fcntl_dupfd_cloexec()
|
H A D | openat.rs | 12 OFlags::RDONLY | OFlags::CLOEXEC, in test_openat_tmpfile()
|
H A D | futimens.rs | 7 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_futimens()
|
H A D | mknodat.rs | 12 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_mknodat()
|
H A D | readdir.rs | 150 rustix::fs::OFlags::RDONLY, in dir_from_openat()
|
/third_party/rust/crates/rustix/tests/io/ |
H A D | read_write.rs | 13 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 D | from_into.rs | 10 rustix::fs::OFlags::RDONLY, in test_owned()
|
/third_party/rust/crates/rustix/tests/mm/ |
H A D | mmap.rs | 14 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 D | locktests.c | 52 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 D | locktests.h | 107 RDONLY, enumerator
|
/third_party/mksh/ |
H A D | var.c | 277 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 D | working_directory.rs | 22 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 D | types.rs | 170 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 D | types.rs | 203 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 D | procfs.rs | 412 let oflags = OFlags::RDONLY | OFlags::CLOEXEC | OFlags::NOFOLLOW | OFlags::NOCTTY; in open_and_check_file()
|