Home
last modified time | relevance | path

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

12345678910>>...21

/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/toybox/toys/other/
Dacpi.c40 if ((fd = openat(dirfd, name, O_RDONLY)) < 0) return -1;
58 if (0 <= (dfd = open((TT.cpath=dirtree_path(tree, NULL)), O_RDONLY))) { in acpi_callback()
59 if ((fd = openat(dfd, "type", O_RDONLY)) < 0) goto done; in acpi_callback()
97 if (0 <= (dfd = open((TT.cpath=dirtree_path(tree, NULL)), O_RDONLY))) { in temp_callback()
122 if (0 <= (dfd = open((TT.cpath=dirtree_path(tree, &dfd)), O_RDONLY))) { in cool_callback()
/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)
Dopen.c128 && ((flags & O_ACCMODE) == O_RDONLY in open()
129 || (O_SEARCH != O_RDONLY && (flags & O_ACCMODE) == O_SEARCH))) in open()
/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()
Drlimit64_nofile.c89 if (open("/dev/null", O_RDONLY) < 0) in main()
95 if ((fd = open("/dev/null", O_RDONLY)) >= 0) in main()
Drlimit_nofile.c86 if (open("/dev/null", O_RDONLY) < 0) in main()
92 if ((fd = open("/dev/null", O_RDONLY)) >= 0) in main()
/external/strace/xlat/
Dopen_access_modes.h4 #if defined(O_RDONLY) || (defined(HAVE_DECL_O_RDONLY) && HAVE_DECL_O_RDONLY)
5 XLAT(O_RDONLY),
/external/compiler-rt/test/tsan/
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)
Dfsetflags.c47 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK|O_LARGEFILE)
49 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK)
Dfgetflags.c38 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK|O_LARGEFILE)
40 #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/openssh/
Dssh-keysign.c190 key_fd[i++] = open(_PATH_HOST_DSA_KEY_FILE, O_RDONLY); in main()
191 key_fd[i++] = open(_PATH_HOST_ECDSA_KEY_FILE, O_RDONLY); in main()
192 key_fd[i++] = open(_PATH_HOST_ED25519_KEY_FILE, O_RDONLY); in main()
193 key_fd[i++] = open(_PATH_HOST_RSA_KEY_FILE, O_RDONLY); in main()
/external/fio/os/
Dos-linux.h177 fd = open("/dev/rawctl", O_RDONLY); in fio_lookup_raw()
179 fd = open("/dev/raw/rawctl", O_RDONLY); in fio_lookup_raw()
236 fd = open(CACHE_LINE_FILE, O_RDONLY); in arch_cache_line_size()
/external/vboot_reference/host/lib/
Dfile_keys.c26 if ((fd = open(input_file, O_RDONLY)) == -1) { in BufferFromFile()
68 if( (input_fd = open(input_file, O_RDONLY)) == -1 ) { in DigestFile()
/external/libmtp/examples/
Dthumb.c88 if ( (fd = open(path, O_RDONLY|O_BINARY) == -1) ) {
90 if ( (fd = open(path, O_RDONLY)) == -1) {
/external/bison/m4/
Dfcntl-o.m445 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
68 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
80 int fd = open (file, O_RDONLY | O_NOATIME);
/external/toybox/toys/pending/
Dmdev.c47 fd = open(path, O_RDONLY); in make_device()
88 if (-1!=(fd = open("/etc/mdev.conf", O_RDONLY))) { in make_device()
201 if (type == S_IFBLK) close(open(temp, O_RDONLY)); // scan for partitions in make_device()
Dpgrep.c118 if ((fd = open(toybuf, O_RDONLY)) == -1) goto cmdline_fail; in pgrep_main()
125 if ((fd = open(toybuf, O_RDONLY)) == -1) continue; in pgrep_main()
139 if ((fd = open(toybuf, O_RDONLY)) == -1) continue; in pgrep_main()
Dbootchartd.c56 int rfd = open(fname, O_RDONLY); in dump_data_in_file()
81 if ((fd = open(filename, O_RDONLY)) != -1 ) { in dump_proc_data()
176 int i = 0, j = 0, fd = open("/proc/uptime", O_RDONLY); in start_logging()
229 if ((kcmd_line_fd = open("/proc/cmdline", O_RDONLY)) != -1) { in stop_logging()

12345678910>>...21