/external/clang/test/Analysis/ |
D | unix-api.c | 3 #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/ |
D | sys-openat.c | 11 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/ |
D | acpi.c | 40 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/ |
D | fcntl.in.h | 216 # 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)
|
D | open.c | 128 && ((flags & O_ACCMODE) == O_RDONLY in open() 129 || (O_SEARCH != O_RDONLY && (flags & O_ACCMODE) == O_SEARCH))) in open()
|
/external/vboot_reference/cgpt/ |
D | cgpt_boot.c | 23 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/ |
D | fdleak_dup2.c | 12 s1 = DO( open("/dev/null", O_RDONLY) ); in main() 13 s2 = DO( open("/dev/null", O_RDONLY) ); in main()
|
D | rlimit64_nofile.c | 89 if (open("/dev/null", O_RDONLY) < 0) in main() 95 if ((fd = open("/dev/null", O_RDONLY)) >= 0) in main()
|
D | rlimit_nofile.c | 86 if (open("/dev/null", O_RDONLY) < 0) in main() 92 if ((fd = open("/dev/null", O_RDONLY)) >= 0) in main()
|
/external/strace/xlat/ |
D | open_access_modes.h | 4 #if defined(O_RDONLY) || (defined(HAVE_DECL_O_RDONLY) && HAVE_DECL_O_RDONLY) 5 XLAT(O_RDONLY),
|
/external/compiler-rt/test/tsan/ |
D | fd_close_norace.cc | 8 int f = open("/dev/random", O_RDONLY); in Thread1() 16 int f = open("/dev/random", O_RDONLY); in Thread2()
|
/external/libvncserver/examples/ |
D | 1instance.c | 23 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/ |
D | fsetversion.c | 34 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK|O_LARGEFILE) 36 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK)
|
D | fgetversion.c | 34 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK|O_LARGEFILE) 36 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK)
|
D | fsetflags.c | 47 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK|O_LARGEFILE) 49 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK)
|
D | fgetflags.c | 38 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK|O_LARGEFILE) 40 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK)
|
/external/e2fsprogs/lib/ext2fs/ |
D | getsectsize.c | 48 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/ |
D | ssh-keysign.c | 190 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/ |
D | os-linux.h | 177 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/ |
D | file_keys.c | 26 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/ |
D | thumb.c | 88 if ( (fd = open(path, O_RDONLY|O_BINARY) == -1) ) { 90 if ( (fd = open(path, O_RDONLY)) == -1) {
|
/external/bison/m4/ |
D | fcntl-o.m4 | 45 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/ |
D | mdev.c | 47 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()
|
D | pgrep.c | 118 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()
|
D | bootchartd.c | 56 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()
|