/external/libmtp/examples/ |
thumb.c | 88 if ( (fd = open(path, O_RDONLY|O_BINARY) == -1) ) { 90 if ( (fd = open(path, O_RDONLY)) == -1) {
|
albumart.c | 120 if ( (fd = open(path, O_RDONLY|O_BINARY) == -1) ) { 122 if ( (fd = open(path, O_RDONLY)) == -1) {
|
/external/ltp/testcases/kernel/syscalls/msync/ |
msync04.c | 43 pagemap_fd = SAFE_OPEN("/proc/self/pagemap", O_RDONLY); 50 pageflags_fd = SAFE_OPEN("/proc/kpageflags", O_RDONLY);
|
/external/ltp/testcases/kernel/syscalls/splice/ |
splice01.c | 50 fd_out = SAFE_OPEN(TESTFILE2, O_RDONLY); 71 fd_in = SAFE_OPEN(TESTFILE1, O_RDONLY);
|
/external/ltp/testcases/kernel/syscalls/tee/ |
tee01.c | 53 fd_out = SAFE_OPEN(TESTFILE2, O_RDONLY); 75 fd_in = SAFE_OPEN(TESTFILE1, O_RDONLY);
|
/external/toybox/toys/other/ |
lspci.c | 50 if (-1 == (dirfd = openat(dirtree_parentfd(new), new->name, O_RDONLY))) 61 if (-1 == (fd = openat(dirfd, *fields, O_RDONLY))) {
|
nbd_client.c | 89 temp = open(toybuf, O_RDONLY); 96 close(open(device, O_RDONLY));
|
/external/vboot_reference/host/lib/ |
file_keys.c | 26 if ((fd = open(input_file, O_RDONLY)) == -1) { 68 if( (input_fd = open(input_file, O_RDONLY)) == -1 ) {
|
/external/ltp/testcases/kernel/logging/kmsg/ |
kmsg01.c | 96 f = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); 252 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); 268 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY); 284 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); 360 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); 413 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); 502 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); 503 fd2 = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); 538 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK);
|
/external/ltp/testcases/kernel/security/tomoyo/ |
tomoyo_new_test.c | 50 result = open("/etc/fstab", O_RDONLY); 200 result = open("/tmp/testfile0", O_RDONLY, 0600); 205 result = open("/tmp/testfile1", O_CREAT | O_RDONLY, 0600); 210 result = open("/tmp/testfile2", O_TRUNC | O_RDONLY, 0600); 215 result = open("/tmp/testfile3", O_TRUNC | O_CREAT | O_RDONLY, 0600); 220 result = open("/tmp/testfile4", O_APPEND | O_RDONLY, 0600); 225 result = open("/tmp/testfile5", O_APPEND | O_CREAT | O_RDONLY, 0600); 230 result = open("/tmp/testfile6", O_APPEND | O_TRUNC | O_RDONLY, 0600); 236 O_APPEND | O_TRUNC | O_CREAT | O_RDONLY, 0600);
|
tomoyo_rewrite_test.c | 76 show_prompt("open(O_RDONLY)"); 77 fd = open(REWRITE_PATH, O_RDONLY); 121 show_prompt("open(O_RDONLY)"); 122 fd = open(REWRITE_PATH, O_RDONLY);
|
/external/pdfium/third_party/libtiff/ |
tif_open.c | 55 m = O_RDONLY; 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/elfutils/libdw/ |
dwarf_getalt.c | 136 fd = TEMP_FAILURE_RETRY (open (id_path, O_RDONLY)); 145 fd = TEMP_FAILURE_RETRY (open (altpath, O_RDONLY)); 152 Dwarf *alt = dwarf_begin (fd, O_RDONLY);
|
/external/linux-kselftest/tools/testing/selftests/proc/ |
fd-003-kthread.c | 48 dir_fd = open(buf, O_RDONLY|O_DIRECTORY); 56 fd = openat(dir_fd, "stat", O_RDONLY); 90 fd = openat(dir_fd, "fd", O_RDONLY|O_DIRECTORY);
|
read.c | 43 fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK); 105 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY);
|
/external/ltp/testcases/kernel/syscalls/openat/ |
openat02.c | 210 TEST(openat(AT_FDCWD, LARGE_FILE, O_LARGEFILE | O_RDONLY, 0777)); 245 TEST(openat(AT_FDCWD, TEST_FILE, O_NOATIME | O_RDONLY, 0777)); 266 TEST(openat(AT_FDCWD, SFILE, O_NOFOLLOW | O_RDONLY, 0777));
|
/bionic/tests/ |
fcntl_test.cpp | 35 int fd = open("/proc/version", O_RDONLY); 55 fd = open("/proc/version", O_RDONLY); 59 fd = open64("/proc/version", O_RDONLY); 67 fd = openat(AT_FDCWD, "/proc/version", O_RDONLY); 71 fd = openat64(AT_FDCWD, "/proc/version", O_RDONLY); 152 int fd = open64("/proc/version", O_RDONLY); 171 int in = open("/proc/cpuinfo", O_RDONLY); 221 int in = open("/proc/version", O_RDONLY);
|
/external/iproute2/lib/ |
namespace.c | 51 netns = open(net_path, O_RDONLY | O_CLOEXEC); 103 return open(path, O_RDONLY);
|
/external/jemalloc_new/src/ |
pages.c | 456 fd = (int)syscall(SYS_open, "/proc/sys/vm/overcommit_memory", O_RDONLY | 459 fd = (int)syscall(SYS_open, "/proc/sys/vm/overcommit_memory", O_RDONLY); 467 AT_FDCWD, "/proc/sys/vm/overcommit_memory", O_RDONLY | O_CLOEXEC); 470 AT_FDCWD, "/proc/sys/vm/overcommit_memory", O_RDONLY); 477 fd = open("/proc/sys/vm/overcommit_memory", O_RDONLY | O_CLOEXEC); 479 fd = open("/proc/sys/vm/overcommit_memory", O_RDONLY); 546 "/sys/kernel/mm/transparent_hugepage/enabled", O_RDONLY); 548 int fd = open("/sys/kernel/mm/transparent_hugepage/enabled", O_RDONLY);
|
/external/libjpeg-turbo/md5/ |
md5hl.c | 93 f = _open(filename, O_RDONLY | O_BINARY); 95 f = open(filename, O_RDONLY);
|
/external/linux-kselftest/tools/testing/selftests/timers/ |
clocksource-switch.c | 47 fd = open("/sys/devices/system/clocksource/clocksource0/available_clocksource", O_RDONLY); 79 fd = open("/sys/devices/system/clocksource/clocksource0/current_clocksource", O_RDONLY);
|
/external/ltp/testcases/kernel/fs/ext4-new-features/ext4-inode-version/ |
ext4_test_inode_version.c | 79 if (open(filepath, O_RDONLY) == -1) { 112 if (open(filepath, O_RDONLY) == -1) {
|
/external/ltp/testcases/kernel/syscalls/dup2/ |
dup203.c | 95 if ((fd0 = open(filename0, O_RDONLY)) == -1) 99 if ((fd1 = open(filename1, O_RDONLY)) == -1)
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
fcntl33.c | 61 "open(O_RDONLY) conflicts with fcntl(F_SETLEASE, F_WRLCK)"}, 114 fd = SAFE_OPEN("file", O_RDONLY); 178 SAFE_OPEN("file", O_RDONLY);
|
/external/ltp/testcases/kernel/syscalls/ftruncate/ |
ftruncate03.c | 67 int flag = O_RDONLY; 144 if ((flag == O_RDONLY) && (wjh_ret == -1) && (errno == EINVAL)) { 154 } else //flag was O_RDONLY but return codes wrong
|