Home
last modified time | relevance | path

Searched refs:openat (Results 1 – 25 of 120) sorted by relevance

12345

/third_party/rust/crates/rustix/tests/fs/
Dinvalid_offset.rs16 use rustix::fs::{cwd, openat, seek, Mode, OFlags}; in invalid_offset_seek()
18 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in invalid_offset_seek()
19 let file = openat( in invalid_offset_seek()
45 use rustix::fs::{cwd, fallocate, openat, FallocateFlags, Mode, OFlags}; in invalid_offset_fallocate()
47 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in invalid_offset_fallocate()
48 let file = openat( in invalid_offset_fallocate()
75 use rustix::fs::{cwd, fadvise, openat, Advice, Mode, OFlags}; in invalid_offset_fadvise()
77 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in invalid_offset_fadvise()
78 let file = openat( in invalid_offset_fadvise()
106 use rustix::fs::{cwd, openat, Mode, OFlags}; in invalid_offset_pread()
[all …]
Drenameat.rs12 use rustix::fs::{cwd, openat, renameat, statat, AtFlags, Mode, OFlags}; in test_renameat()
15 let dir = openat( in test_renameat()
23 let _ = openat(&dir, "foo", OFlags::CREATE | OFlags::WRONLY, Mode::empty()).unwrap(); in test_renameat()
35 use rustix::fs::{cwd, openat, renameat, statat, AtFlags, Mode, OFlags}; in test_renameat_overwrite()
38 let dir = openat( in test_renameat_overwrite()
46 let _ = openat(&dir, "foo", OFlags::CREATE | OFlags::WRONLY, Mode::empty()).unwrap(); in test_renameat_overwrite()
47 let _ = openat(&dir, "bar", OFlags::CREATE | OFlags::WRONLY, Mode::empty()).unwrap(); in test_renameat_overwrite()
57 use rustix::fs::{cwd, openat, renameat_with, statat, AtFlags, Mode, OFlags, RenameFlags}; in test_renameat_with()
60 let dir = openat( in test_renameat_with()
68 let _ = openat(&dir, "foo", OFlags::CREATE | OFlags::WRONLY, Mode::empty()).unwrap(); in test_renameat_with()
[all …]
Dflock.rs4 use rustix::fs::{cwd, flock, openat, FlockOperation, Mode, OFlags}; in test_flock()
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()
Dutimensat.rs4 use rustix::fs::{cwd, openat, statat, utimensat, AtFlags, Mode, OFlags, Timespec, Timestamps}; in test_utimensat()
7 let dir = openat( in test_utimensat()
15 let _ = openat( in test_utimensat()
64 use rustix::fs::{cwd, openat, utimensat, AtFlags, Mode, OFlags, Timespec, Timestamps}; in test_utimensat_noent()
67 let dir = openat( in test_utimensat_noent()
94 use rustix::fs::{cwd, openat, utimensat, AtFlags, Mode, OFlags, Timespec, Timestamps}; in test_utimensat_notdir()
97 let dir = openat( in test_utimensat_notdir()
105 let foo = openat( in test_utimensat_notdir()
Dy2038.rs11 cwd, fstat, openat, statat, utimensat, AtFlags, Mode, OFlags, Timespec, Timestamps, in test_y2038_with_utimensat()
16 let dir = openat(&cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_y2038_with_utimensat()
33 let _ = openat(&dir, "foo", OFlags::CREATE | OFlags::WRONLY, Mode::RUSR).unwrap(); in test_y2038_with_utimensat()
73 let file = openat(&dir, "foo", OFlags::RDONLY, Mode::empty()).unwrap(); in test_y2038_with_utimensat()
110 cwd, fstat, futimens, openat, statat, AtFlags, Mode, OFlags, Timespec, Timestamps, in test_y2038_with_futimens()
115 let dir = openat(&cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_y2038_with_futimens()
132 let file = openat(&dir, "foo", OFlags::CREATE | OFlags::WRONLY, Mode::RUSR).unwrap(); in test_y2038_with_futimens()
169 let file = openat(&dir, "foo", OFlags::RDONLY, Mode::empty()).unwrap(); in test_y2038_with_futimens()
Dlong_paths.rs4 use rustix::fs::{cwd, mkdirat, openat, Mode, OFlags}; in test_long_paths()
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()
Dmkdirat.rs4 use rustix::fs::{cwd, mkdirat, openat, statat, unlinkat, AtFlags, FileType, Mode, OFlags}; in test_mkdirat()
7 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_mkdirat()
18 use rustix::fs::{cwd, mkdirat, openat, statat, unlinkat, AtFlags, FileType, Mode, OFlags}; in test_mkdirat_with_o_path()
21 let dir = openat( in test_mkdirat_with_o_path()
Dopenat.rs3 use rustix::fs::{cwd, openat, Mode, OFlags};
9 let dir = openat( in test_openat_tmpfile()
16 let f = match openat( in test_openat_tmpfile()
Dfutimens.rs4 use rustix::fs::{cwd, fstat, futimens, openat, Mode, OFlags, Timespec, Timestamps}; in test_futimens()
7 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_futimens()
9 let foo = openat( in test_futimens()
Dfile.rs14 rustix::fs::openat( in test_file()
24 let file = rustix::fs::openat( in test_file()
33 rustix::fs::openat( in test_file()
Ddir.rs3 let t = rustix::fs::openat( in test_dir()
13 let _file = rustix::fs::openat( in test_dir()
Dmknodat.rs9 use rustix::fs::{cwd, mknodat, openat, statat, unlinkat, AtFlags, FileType, Mode, OFlags}; in test_mknodat()
12 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_mknodat()
/third_party/rust/crates/rustix/tests/io/
Dread_write.rs9 use rustix::fs::{cwd, openat, Mode, OFlags}; in test_readwrite_pv()
13 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_readwrite_pv()
14 let foo = openat( in test_readwrite_pv()
47 use rustix::fs::{cwd, openat, Mode, OFlags}; in test_readwrite_p()
51 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_readwrite_p()
52 let foo = openat( in test_readwrite_p()
72 use rustix::fs::{cwd, openat, seek, Mode, OFlags}; in test_readwrite_v()
76 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_readwrite_v()
77 let foo = openat( in test_readwrite_v()
98 use rustix::fs::{cwd, openat, seek, Mode, OFlags}; in test_readwrite()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/fcntl/
Dopenat.c27 int ret = openat(0, "/dev/null", O_CREAT, TEST_MODE); in openat_0100()
30 ret = openat(0, "/dev/null", O_TMPFILE, TEST_MODE); in openat_0100()
33 ret = openat(0, "/dev/null", O_RDONLY); in openat_0100()
44 int ret = openat(0, "openat_test", O_CREAT, TEST_MODE); in openat_0200()
47 ret = openat(0, "openat_test", O_TMPFILE, TEST_MODE); in openat_0200()
50 ret = openat(0, "openat_test", O_RDONLY); in openat_0200()
/third_party/ltp/testcases/kernel/syscalls/openat/
Dopenat02.c122 TEST(openat(AT_FDCWD, TEST_FILE, O_APPEND | O_RDWR, 0777)); in testfunc_append()
153 TEST(openat(AT_FDCWD, TEST_FILE, O_CLOEXEC | O_RDWR, 0777)); in testfunc_cloexec()
209 TEST(openat(AT_FDCWD, LARGE_FILE, O_LARGEFILE | O_RDONLY, 0777)); in testfunc_largefile()
244 TEST(openat(AT_FDCWD, TEST_FILE, O_NOATIME | O_RDONLY, 0777)); in testfunc_noatime()
265 TEST(openat(AT_FDCWD, SFILE, O_NOFOLLOW | O_RDONLY, 0777)); in testfunc_nofollow()
279 TEST(openat(AT_FDCWD, TEST_FILE, O_TRUNC | O_RDWR, 0777)); in testfunc_trunc()
/third_party/rust/crates/rustix/tests/mm/
Dmmap.rs7 use rustix::fs::{cwd, openat, Mode, OFlags}; in test_mmap()
14 let dir = openat(cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); in test_mmap()
16 let file = openat( 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/musl/libc-test/src/functionalext/supplement/stat/
Dfutimesat.c37 int fd = openat(dir_fd, "test.txt", O_CREAT | O_RDWR | O_EXCL, 0666); in futimesat_0100()
89 int fd = openat(dir_fd, "test.txt", O_CREAT | O_RDWR | O_EXCL, 0666); in futimesat_0200()
144 int fd = openat(dir_fd, "test.txt", O_CREAT | O_RDWR | O_EXCL, 0666); in futimesat_time64_0200()
/third_party/musl/porting/linux/user/include/fortify/
Dfcntl.h36 int __openat_real(int, const char*, int, ...) __DIAGNOSE_RENAME(openat);
64 int openat(int dirfd, const char* const __DIAGNOSE_PASS_OBJECT_SIZE path, int flags) in openat() function
76 int openat(int dirfd, const char* const __DIAGNOSE_PASS_OBJECT_SIZE path, int flags, mode_t modes) in openat() function
/third_party/musl/ndk_musl_include/fortify/
Dfcntl.h36 int __openat_real(int, const char*, int, ...) __DIAGNOSE_RENAME(openat);
64 int openat(int dirfd, const char* const __DIAGNOSE_PASS_OBJECT_SIZE path, int flags) in openat() function
76 int openat(int dirfd, const char* const __DIAGNOSE_PASS_OBJECT_SIZE path, int flags, mode_t modes) in openat() function
/third_party/musl/src/fcntl/
Dopenat.c5 int openat(int fd, const char *filename, int flags, ...) in openat() function
19 weak_alias(openat, openat64);
/third_party/musl/libc-test/src/functionalext/fortify/
Dfcntl_ext.c137 int fd = openat(AT_FDCWD, "/proc/version", O_RDWR | O_CREAT, FILE_MODE_ALL); in openat_0010()
164 openat(AT_FDCWD, "/proc/version", flags); in openat_0020()
198 openat(AT_FDCWD, "/proc/version", flags); in openat_0030()
219 int fd = openat(AT_FDCWD, "/proc/version", O_RDWR); in openat_0040()
/third_party/ltp/testcases/network/nfs/nfs_stress/
Dnfs05_make_tree.c142 fd = openat(dirfd, "makefile", O_CREAT | O_RDWR, in thread_fn()
156 fd = openat(dirfd, cfile, O_CREAT | O_RDWR, in thread_fn()
173 dirfd = openat(dirfd, "dir", O_DIRECTORY); in thread_fn()
/third_party/flutter/engine/flutter/shell/platform/fuchsia/runtime/dart/utils/
Dfiles.cc62 int fd = openat(dirfd, path.c_str(), O_RDONLY); in ReadFileToStringAt()
69 int fd = openat(AT_FDCWD, path.c_str(), O_CREAT | O_TRUNC | O_WRONLY, 0666); in WriteFile()
/third_party/toybox/toys/other/
Dlspci.c50 if (-1 == (dirfd = openat(dirtree_parentfd(new), new->name, O_RDONLY)))
60 if (-1 == (fd = openat(dirfd, *fields, O_RDONLY))) {
/third_party/musl/porting/linux/user/include/
Dfcntl.h36 int openat(int, const char *, int, ...);
205 #define openat64 openat

12345