Home
last modified time | relevance | path

Searched refs:O_RDONLY (Results 1 - 25 of 965) sorted by relevance

12345678910>>...39

/third_party/ltp/testcases/kernel/syscalls/utimensat/
H A Dutimensat01.c56 {AT_FDCWD, TEST_FILE, NULL, 0, O_RDONLY, 0, 0400, 0},
57 {AT_FDCWD, TEST_FILE, &tnn, 0, O_RDONLY, 0, 0400, 0},
58 {AT_FDCWD, TEST_FILE, &too, 0, O_RDONLY, 0, 0400, 0},
59 {AT_FDCWD, TEST_FILE, &tno, 0, O_RDONLY, 0, 0400, 0},
60 {AT_FDCWD, TEST_FILE, &ton, 0, O_RDONLY, 0, 0400, 0},
61 {AT_FDCWD, TEST_FILE, &t11, 0, O_RDONLY, 0, 0400, 0},
64 {AT_FDCWD, TEST_FILE, NULL, 0, O_RDONLY, 0, 0666, 0},
65 {AT_FDCWD, TEST_FILE, &tnn, 0, O_RDONLY, 0, 0666, 0},
66 {AT_FDCWD, TEST_FILE, &too, 0, O_RDONLY, 0, 0666, 0},
67 {AT_FDCWD, TEST_FILE, &tno, 0, O_RDONLY,
[all...]
/third_party/musl/libc-test/src/functionalext/trace/
H A Dtrace_marker.c110 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY); in trace_marker_0010()
112 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY); in trace_marker_0010()
161 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY); in trace_marker_0020()
163 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY); in trace_marker_0020()
212 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY); in trace_marker_0030()
214 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY); in trace_marker_0030()
270 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0040()
272 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0040()
308 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0040()
310 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEN in trace_marker_0040()
[all...]
/third_party/ltp/testcases/kernel/syscalls/name_to_handle_at/
H A Dname_to_handle_at01.c34 {&dir_fd, TEST_FILE, 0, O_RDONLY},
37 {&dir_fd, TEST_FILE, AT_EMPTY_PATH, O_RDONLY},
40 {&dir_fd, TEST_FILE, AT_SYMLINK_FOLLOW, O_RDONLY},
43 {&dir_fd, TEST_FILE, AT_EMPTY_PATH | AT_SYMLINK_FOLLOW, O_RDONLY},
45 {&dir_fd, "", AT_EMPTY_PATH, O_RDONLY},
46 {&file_fd, "", AT_EMPTY_PATH, O_RDONLY},
49 {&fd_atcwd, TEST_FILE, 0, O_RDONLY},
52 {&fd_atcwd, TEST_FILE, AT_EMPTY_PATH, O_RDONLY},
55 {&fd_atcwd, TEST_FILE, AT_SYMLINK_FOLLOW, O_RDONLY},
58 {&fd_atcwd, TEST_FILE, AT_EMPTY_PATH | AT_SYMLINK_FOLLOW, O_RDONLY},
[all...]
/third_party/ltp/testcases/kernel/syscalls/open/
H A Dopen11.c9 * 1. Open regular file O_RDONLY
14 * 6. Open dir O_RDONLY
17 * 9. Open hard link file O_RDONLY
20 * 12. Open sym link file O_RDONLY
23 * 15. Open sym link dir O_RDONLY
26 * 18. Open device special file O_RDONLY
30 * 22. Open link file O_RDONLY | O_CREAT
31 * 23. Open symlink file O_RDONLY | O_CREAT
32 * 24. Open regular file O_RDONLY | O_CREAT
33 * 25. Open symlink dir O_RDONLY | O_CREA
[all...]
/third_party/ltp/testcases/kernel/syscalls/finit_module/
H A Dfinit_module02.c62 {"invalid-fd", &fd_invalid, "", O_RDONLY | O_CLOEXEC, 0, 0, 0, 0,
64 {"zero-fd", &fd_zero, "", O_RDONLY | O_CLOEXEC, 0, 0, EINVAL, 0, NULL},
65 {"null-param", &fd, NULL, O_RDONLY | O_CLOEXEC, 0, 0, EFAULT, 1, NULL},
66 {"invalid-param", &fd, "status=invalid", O_RDONLY | O_CLOEXEC, 0, 0,
68 {"invalid-flags", &fd, "", O_RDONLY | O_CLOEXEC, -1, 0, EINVAL, 0,
70 {"no-perm", &fd, "", O_RDONLY | O_CLOEXEC, 0, 1, EPERM, 0, NULL},
71 {"module-exists", &fd, "", O_RDONLY | O_CLOEXEC, 0, 0, EEXIST, 1,
77 {"directory", &fd_dir, "", O_RDONLY | O_CLOEXEC, 0, 0, 0, 0, dir_setup},
/third_party/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl32.c43 {O_RDONLY, O_RDONLY},
44 {O_RDONLY, O_WRONLY},
45 {O_RDONLY, O_RDWR},
46 {O_WRONLY, O_RDONLY},
49 {O_RDWR, O_RDONLY},
/third_party/pulseaudio/src/tests/
H A Dclose-test.c12 open("/dev/null", O_RDONLY); in main()
13 open("/dev/null", O_RDONLY); in main()
14 open("/dev/null", O_RDONLY); in main()
15 open("/dev/null", O_RDONLY); in main()
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dfchown.c36 int fd = open("test.txt", O_RDONLY | O_CREAT, TEST_MODE); in fchown_0100()
53 int fd = open("test.txt", O_RDONLY | O_CREAT, TEST_MODE); in fchown_0200()
70 int fd = open("test.txt", O_RDONLY | O_CREAT, TEST_MODE); in fchown_0300()
87 int fd = open("test.txt", O_RDONLY | O_CREAT, TEST_MODE); in fchown_0400()
101 int fd = open("test.txt", O_RDONLY | O_CREAT, TEST_MODE); in fchown_0500()
/third_party/ltp/testcases/kernel/syscalls/fsetxattr/
H A Dfsetxattr02.c76 .fflags = O_RDONLY,
85 .fflags = O_RDONLY,
94 .fflags = O_RDONLY,
104 .fflags = (O_RDONLY | O_NONBLOCK),
113 .fflags = O_RDONLY,
122 .fflags = O_RDONLY,
131 .fflags = O_RDONLY,
/third_party/ltp/testcases/kernel/syscalls/fgetxattr/
H A Dfgetxattr02.c84 .fflags = O_RDONLY,
95 .fflags = O_RDONLY,
106 .fflags = O_RDONLY,
117 .fflags = (O_RDONLY | O_NONBLOCK),
127 .fflags = O_RDONLY,
138 .fflags = O_RDONLY,
149 .fflags = O_RDONLY,
/third_party/toybox/toys/other/
H A Dacpi.c37 if ((fd = openat(dirfd, name, O_RDONLY)) < 0) return -1; in read_int_at()
55 if (0 <= (dfd = open((TT.cpath=dirtree_path(tree, NULL)), O_RDONLY))) { in acpi_callback()
56 if ((fd = openat(dfd, "type", O_RDONLY)) < 0) goto done; in acpi_callback()
94 if (0 <= (dfd = open((TT.cpath=dirtree_path(tree, NULL)), O_RDONLY))) { in temp_callback()
119 if (0 <= (dfd = open((TT.cpath=dirtree_path(tree, &dfd)), O_RDONLY))) { in cool_callback()
/third_party/musl/libc-test/src/functionalext/supplement/stdio/
H A Drename.c28 int fd = open(oldname, O_RDONLY | O_CREAT, TEST_MODE); in rename_0100()
34 fd = open(oldname, O_RDONLY); in rename_0100()
36 fd = open(newname, O_RDONLY); in rename_0100()
83 int fd = open(newname, O_RDONLY); in rename_0300()
H A Dfdsan.cpp46 int fd = open(DEV_NULL_PATH, O_RDONLY); in fdsan_test_get_tag_value()
57 int fd = open(DEV_NULL_PATH, O_RDONLY); in fdsan_test_overflow()
70 int fd = open(DEV_NULL_PATH, O_RDONLY); in fdsan_test_vfork()
103 int fd = open(DEV_NULL_PATH, O_RDONLY); in fdsan_test_fatal_level()
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dgetdents.c33 int fd = open("/data/data", O_RDONLY); in getdents_0100()
47 int fd = open("/getdents", O_RDONLY); in getdents_0200()
60 int fd = open("/data/data", O_RDONLY); in getdents_0300()
/third_party/ltp/testcases/kernel/containers/mqns/
H A Dmqns_01.c38 TST_EXP_FAIL(mq_open(MQNAME, O_RDONLY), ENOENT); in run()
46 TST_EXP_FAIL(mq_open(MQNAME, O_RDONLY), ENOENT); in run()
53 TST_EXP_POSITIVE(mq_open(MQNAME, O_RDONLY)); in run()
/third_party/musl/libc-test/src/functionalext/supplement/dirent/
H A Dfdopendir.c34 int fd = open("/data/data", O_RDONLY); in fdopendir_0100()
61 int fd = open("/data/data/test.txt", O_RDONLY); in fdopendir_0300()
74 int fd = open("/data/data/test.txt", O_RDONLY); in fdopendir_0400()
/third_party/ltp/testcases/kernel/syscalls/fanotify/
H A Dfanotify02.c77 fd = SAFE_OPEN(fname, O_RDONLY); in test01()
105 fd = SAFE_OPEN(fname, O_RDONLY); in test01()
109 fd = SAFE_OPEN(".", O_RDONLY | O_DIRECTORY); in test01()
183 fd_notify = SAFE_FANOTIFY_INIT(FAN_CLASS_NOTIF, O_RDONLY); in setup()
/third_party/ltp/testcases/kernel/logging/kmsg/
H A Dkmsg01.c77 f = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); in find_msg()
233 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); in test_read_nonblock()
249 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY); in test_read_block()
265 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); in test_partial_read()
341 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); in test_read_returns_first_message()
394 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); in test_messages_overwritten()
483 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); in test_seek()
484 fd2 = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); in test_seek()
519 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); in test_seek()
/third_party/ltp/testcases/kernel/security/tomoyo/
H A Dtomoyo_new_test.c50 result = open("/etc/fstab", O_RDONLY); in test_read_etc_fstab()
200 result = open("/tmp/testfile0", O_RDONLY, 0600); in test_file_open_0()
205 result = open("/tmp/testfile1", O_CREAT | O_RDONLY, 0600); in test_file_open_1()
210 result = open("/tmp/testfile2", O_TRUNC | O_RDONLY, 0600); in test_file_open_2()
215 result = open("/tmp/testfile3", O_TRUNC | O_CREAT | O_RDONLY, 0600); in test_file_open_3()
220 result = open("/tmp/testfile4", O_APPEND | O_RDONLY, 0600); in test_file_open_4()
225 result = open("/tmp/testfile5", O_APPEND | O_CREAT | O_RDONLY, 0600); in test_file_open_5()
230 result = open("/tmp/testfile6", O_APPEND | O_TRUNC | O_RDONLY, 0600); in test_file_open_6()
236 O_APPEND | O_TRUNC | O_CREAT | O_RDONLY, 0600); in test_file_open_7()
H A Dtomoyo_new_file_test.c190 fd = open("/dev/null", O_RDONLY); in stage_file_test()
195 fd = open("/dev/null", O_RDONLY); in stage_file_test()
202 fd = open("/dev/null", O_RDONLY); in stage_file_test()
207 fd = open("/dev/null", O_RDONLY); in stage_file_test()
214 fd = open("/dev/null", O_RDONLY); in stage_file_test()
219 fd = open("/dev/null", O_RDONLY); in stage_file_test()
226 fd = open("/dev/null", O_RDONLY); in stage_file_test()
231 fd = open("/dev/null", O_RDONLY); in stage_file_test()
277 fd = open("/dev/null", O_RDONLY); in stage_file_test()
282 fd = open("/dev/null", O_RDONLY); in stage_file_test()
[all...]
/third_party/libxml2/
H A Dgenerate_header.py30 with os.fdopen(os.open(config_json_path, os.O_RDONLY, 0o755), 'r') as file:
34 with os.fdopen(os.open(file_path, os.O_RDONLY, 0o755), 'r') as file:
76 with os.fdopen(os.open(xmlversion_json_path, os.O_RDONLY, 0o755), 'r') as file:
80 with os.fdopen(os.open(file_path, os.O_RDONLY, 0o755), 'r') as file:
/third_party/libphonenumber/cpp/src/phonenumbers/ohos/
H A Dupdate_libphonenumber.cc29 int metadataFd = open(METADATAINFO_PATH.c_str(), O_RDONLY); in LoadUpdateData()
30 int geocodingFd = open(GEOCODINGINFO_PATH.c_str(), O_RDONLY); in LoadUpdateData()
/third_party/musl/libc-test/src/functionalext/supplement/fortify/fortify_gtest/
H A Dfortify_open_chk_test.cpp18 int file = open("test.txt", O_RDONLY | O_CREAT, 0644); in HWTEST_F()
20 int fd = __open_chk("test.txt", O_RDONLY); in HWTEST_F()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/
H A D7-3.c35 roqueue = mq_open(qname, O_CREAT | O_RDONLY, S_IRUSR | S_IWUSR, NULL); in main()
42 roqueue2 = mq_open(qname, O_RDONLY, S_IRUSR | S_IWUSR, NULL); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
H A D22-1.c29 fd = shm_open(SHM_NAME, O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR); in main()
35 fd = shm_open(SHM_NAME, O_RDONLY | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); in main()

Completed in 10 milliseconds

12345678910>>...39