Home
last modified time | relevance | path

Searched refs:O_RDONLY (Results 1 – 25 of 621) sorted by relevance

12345678910>>...25

/external/clang/test/Analysis/
Dunix-api.c3 #ifndef O_RDONLY
4 #define O_RDONLY 0 macro
16 fd = open(path, O_RDONLY); // no-warning in open_1()
24 …fd = open(path, O_RDONLY, mode, NULL); // expected-warning{{Call to 'open' with more than three ar… in open_2()
31 fd = open(path, O_RDONLY, NULL); // expected-warning{{Third argument to 'open' is not an integer}} in open_3()
38 fd = open(path, O_RDONLY, ""); // expected-warning{{Third argument to 'open' is not an integer}} in open_4()
48 fd = open(path, O_RDONLY, st); // expected-warning{{Third argument to 'open' is not an integer}} in open_5()
58 fd = open(path, O_RDONLY, st.val); // no-warning in open_6()
65 …fd = open(path, O_RDONLY, &open); // expected-warning{{Third argument to 'open' is not an integer}} in open_7()
72 fd = open(path, O_RDONLY, 0.0f); // expected-warning{{Third argument to 'open' is not an integer}} in open_8()
/external/valgrind/memcheck/tests/linux/
Dsys-openat.c11 int dfd = open ("/tmp", O_RDONLY); in main()
12 __attribute__((unused)) int fd1 = openat (dfd, "abc", O_RDONLY); in main()
14 __attribute__((unused)) int fd2 = openat (0x12345678, "/tmp/abc", O_RDONLY); in main()
15 __attribute__((unused)) int fd3 = openat (AT_FDCWD, "abc", O_RDONLY); in main()
17 __attribute__((unused)) int fd4 = openat (0x12345678, "abc", O_RDONLY); in main()
/external/libchrome/sandbox/linux/services/
Dproc_util_unittest.cc17 base::ScopedFD proc_fd(open("/proc/", O_RDONLY | O_DIRECTORY)); in TEST()
20 int fd = open("/dev/null", O_RDONLY); in TEST()
32 int proc_fd = open("/proc/", O_RDONLY | O_DIRECTORY); in TEST()
40 int proc_fd = open("/proc/", O_RDONLY | O_DIRECTORY); in TEST()
52 int open_directory_fd = open("/proc/self/", O_RDONLY | O_DIRECTORY); in TEST()
Dproc_util.cc34 HANDLE_EINTR(open(path, O_RDONLY | O_DIRECTORY | O_CLOEXEC))); in OpenDirectory()
44 openat(proc_fd, "self/fd/", O_DIRECTORY | O_RDONLY | O_CLOEXEC)); in CountOpenFds()
74 openat(proc_fd, "self/fd/", O_DIRECTORY | O_RDONLY | O_CLOEXEC); in HasOpenDirectory()
110 HANDLE_EINTR(open("/proc/", O_DIRECTORY | O_RDONLY | O_CLOEXEC))); in HasOpenDirectory()
/external/libchrome/sandbox/linux/syscall_broker/
Dbroker_process_unittest.cc75 int fd = open_broker.Open(NULL, O_RDONLY); in TEST()
102 fd = open_broker.Open(kR_WhiteListed, O_RDONLY); in TestOpenFilePerms()
126 fd = open_broker.Open(kR_WhiteListedButDenied, O_RDONLY); in TestOpenFilePerms()
149 fd = open_broker.Open(kW_WhiteListed, O_RDONLY); in TestOpenFilePerms()
168 fd = open_broker.Open(kRW_WhiteListed, O_RDONLY); in TestOpenFilePerms()
187 fd = open_broker.Open(k_NotWhitelisted, O_RDONLY); in TestOpenFilePerms()
207 fd = open_broker.Open(kRW_WhiteListed, O_RDONLY | O_WRONLY | O_RDWR); in TestOpenFilePerms()
258 int cpuinfo_fd = open_broker->Open(kFileCpuInfo, O_RDONLY); in TestBadPaths()
267 fd = open_broker->Open(kNotAbsPath, O_RDONLY); in TestBadPaths()
272 fd = open_broker->Open(kDotDotStart, O_RDONLY); in TestBadPaths()
[all …]
Dbroker_file_permission_unittest.cc93 case O_RDONLY: in CheckPerm()
94 ASSERT_TRUE(perm.CheckOpen(path, O_RDONLY, &file_to_open, NULL)); in CheckPerm()
101 ASSERT_FALSE(perm.CheckOpen(path, O_RDONLY, &file_to_open, NULL)); in CheckPerm()
108 ASSERT_TRUE(perm.CheckOpen(path, O_RDONLY, &file_to_open, NULL)); in CheckPerm()
176 CheckPerm(perm, kPath, O_RDONLY, false); in TEST()
185 CheckPerm(perm, kPathFile, O_RDONLY, false); in TEST()
/external/strace/tests/
Dmq.expected1 mq_open\("strace-mq.test", O_RDONLY\|O_CREAT, 0700, NULL\) += 0
2 mq_getsetattr\(0, NULL, \{mq_flags=O_RDONLY, mq_maxmsg=[1-9][0-9]*, mq_msgsize=[1-9][0-9]*, mq_curm…
3 mq_getsetattr\(0, \{mq_flags=O_RDONLY, mq_maxmsg=[1-9][0-9]*, mq_msgsize=[1-9][0-9]*, mq_curmsg=0\}…
/external/valgrind/memcheck/tests/solaris/
Dsyscall_at.c22 int dfd = open(DIRECTORY, O_RDONLY); in main()
80 openat(dfd, FILENAME, O_RDONLY); in main()
81 openat(0x9038151, DIRECTORY FILENAME, O_RDONLY); in main()
82 openat(AT_FDCWD, FILENAME, O_RDONLY); in main()
83 openat(0x9038152, FILENAME, O_RDONLY); /* warning for this one */ in main()
/external/toybox/toys/other/
Dacpi.c37 if ((fd = openat(dirfd, name, O_RDONLY)) < 0) return -1;
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()
/external/opencv3/3rdparty/libtiff/
Dtif_open.c55 m = O_RDONLY; in _TIFFgetMode()
158 if (m == O_RDONLY )
162 if (m == O_RDONLY || m == O_RDWR)
245 if (m == O_RDONLY)
249 if (m == O_RDONLY)
253 if (m == O_RDONLY)
257 if (m == O_RDONLY)
273 if (tif->tif_mode == O_RDONLY) {
483 tif->tif_mode = O_RDONLY; /* XXX avoid flush */
Dtif_win32.c244 case O_RDONLY: dwMode = OPEN_EXISTING; break; in TIFFOpen()
253 (m == O_RDONLY)?GENERIC_READ:(GENERIC_READ | GENERIC_WRITE), in TIFFOpen()
255 (m == O_RDONLY)?FILE_ATTRIBUTE_READONLY:FILE_ATTRIBUTE_NORMAL, in TIFFOpen()
285 case O_RDONLY: dwMode = OPEN_EXISTING; break; in TIFFOpenW()
294 (m == O_RDONLY)?GENERIC_READ:(GENERIC_READ|GENERIC_WRITE), in TIFFOpenW()
296 (m == O_RDONLY)?FILE_ATTRIBUTE_READONLY:FILE_ATTRIBUTE_NORMAL, in TIFFOpenW()
/external/pdfium/third_party/libtiff/
Dtif_open.c55 m = O_RDONLY; in _TIFFgetMode()
158 if (m == O_RDONLY )
162 if (m == O_RDONLY || m == O_RDWR)
245 if (m == O_RDONLY)
249 if (m == O_RDONLY)
253 if (m == O_RDONLY)
257 if (m == O_RDONLY)
273 if (tif->tif_mode == O_RDONLY) {
483 tif->tif_mode = O_RDONLY; /* XXX avoid flush */
/external/bison/lib/
Dfcntl.in.h216 # define O_EXEC O_RDONLY /* This is often close enough in older systems. */
273 # define O_SEARCH O_RDONLY /* This is often close enough in older systems. */
284 #if ~O_ACCMODE & (O_RDONLY | O_WRONLY | O_RDWR | O_EXEC | O_SEARCH)
286 # define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR | O_EXEC | O_SEARCH)
/external/vboot_reference/cgpt/
Dcgpt_boot.c23 if (CGPT_OK != DriveOpen(params->drive_name, &drive, O_RDONLY, in CgptGetBootPartitionNumber()
69 int mode = O_RDONLY; in CgptBoot()
125 int fd = open(params->bootfile, O_RDONLY); in CgptBoot()
146 if (mode == O_RDONLY || CGPT_OK == WritePMBR(&drive)) in CgptBoot()
/external/valgrind/none/tests/
Dfdleak_dup2.c12 s1 = DO( open("/dev/null", O_RDONLY) ); in main()
13 s2 = DO( open("/dev/null", O_RDONLY) ); in main()
/external/strace/xlat/
Dopen_access_modes.h6 #if defined(O_RDONLY) || (defined(HAVE_DECL_O_RDONLY) && HAVE_DECL_O_RDONLY)
7 XLAT(O_RDONLY),
/external/autotest/client/site_tests/security_Minijail_seccomp/src/
Dfail.c14 int fd_z = syscall(__NR_open, "/dev/zero", O_RDONLY); in main()
15 int fd_n = syscall(__NR_open, "/dev/null", O_RDONLY); in main()
/external/compiler-rt/test/tsan/
Dfd_dup_race.cc20 fd = open("/dev/random", O_RDONLY); in main()
21 int fd2 = open("/dev/random", O_RDONLY); in main()
Dfd_dup_norace2.cc43 fd = open("/dev/urandom", O_RDONLY); in main()
44 int fd2 = open("/dev/urandom", O_RDONLY); in main()
Dfd_close_norace.cc8 int f = open("/dev/random", O_RDONLY); in Thread1()
16 int f = open("/dev/random", O_RDONLY); in Thread2()
/external/libvncserver/examples/
D1instance.c23 str->fd=open(str->filename,O_NONBLOCK|O_RDONLY); in open_control_file()
28 str->fd=open(str->filename,O_NONBLOCK|O_RDONLY); in open_control_file()
66 str->fd=open(str->filename,O_NONBLOCK|O_RDONLY); in get_next_message()
/external/e2fsprogs/lib/e2p/
Dfsetversion.c34 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK|O_LARGEFILE)
36 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK)
Dfgetversion.c34 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK|O_LARGEFILE)
36 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK)
/external/e2fsprogs/lib/ext2fs/
Dgetsectsize.c48 fd = ext2fs_open_file(file, O_RDONLY, 0); in ext2fs_get_device_sectsize()
96 fd = ext2fs_open_file(file, O_RDONLY, 0); in ext2fs_get_device_phys_sectsize()
/external/valgrind/none/tests/solaris/
Dproc_psinfo.c19 fd = open(path, O_RDONLY); in test_psinfo()
27 fd = openat(AT_FDCWD, path, O_RDONLY); in test_psinfo()

12345678910>>...25