/external/valgrind/memcheck/tests/linux/ |
sys-openat.c | 11 int dfd = open ("/tmp", O_RDONLY); 12 __attribute__((unused)) int fd1 = openat (dfd, "abc", O_RDONLY); 14 __attribute__((unused)) int fd2 = openat (0x12345678, "/tmp/abc", O_RDONLY); 15 __attribute__((unused)) int fd3 = openat (AT_FDCWD, "abc", O_RDONLY); 17 __attribute__((unused)) int fd4 = openat (0x12345678, "abc", O_RDONLY);
|
/external/clang/test/Analysis/ |
unix-api.c | 3 #ifndef O_RDONLY 4 #define O_RDONLY 0 16 fd = open(path, O_RDONLY); // no-warning 24 fd = open(path, O_RDONLY, mode, NULL); // expected-warning{{Call to 'open' with more than three arguments}} 31 fd = open(path, O_RDONLY, NULL); // expected-warning{{Third argument to 'open' is not an integer}} 38 fd = open(path, O_RDONLY, ""); // expected-warning{{Third argument to 'open' is not an integer}} 48 fd = open(path, O_RDONLY, st); // expected-warning{{Third argument to 'open' is not an integer}} 58 fd = open(path, O_RDONLY, st.val); // no-warning 65 fd = open(path, O_RDONLY, &open); // expected-warning{{Third argument to 'open' is not an integer}} 72 fd = open(path, O_RDONLY, 0.0f); // expected-warning{{Third argument to 'open' is not an integer} [all...] |
/external/valgrind/none/tests/ |
fdleak_open.c | 9 (void) DO( open("/dev/null", O_RDONLY) );
|
fdleak_dup2.c | 12 s1 = DO( open("/dev/null", O_RDONLY) ); 13 s2 = DO( open("/dev/null", O_RDONLY) );
|
fdleak_dup.c | 11 s = DO( open("/dev/null", O_RDONLY) );
|
fdleak_fcntl.c | 12 s1 = DO( open("/dev/null", O_RDONLY) );
|
/external/strace/xlat/ |
open_access_modes.h | 6 #if defined(O_RDONLY) || (defined(HAVE_DECL_O_RDONLY) && HAVE_DECL_O_RDONLY) 7 XLAT(O_RDONLY),
|
/external/syslinux/com32/lib/ |
fopen.c | 11 int flags = O_RDONLY; 18 flags = O_RDONLY; 34 flags = (flags & ~(O_RDONLY | O_WRONLY)) | O_RDWR;
|
fopendev.c | 11 int flags = O_RDONLY; 18 flags = O_RDONLY; 34 flags = (flags & ~(O_RDONLY | O_WRONLY)) | O_RDWR;
|
/external/syslinux/com32/lib/sys/ |
zfopen.c | 12 int flags = O_RDONLY; 19 flags = O_RDONLY; 35 flags = (flags & ~(O_RDONLY | O_WRONLY)) | O_RDWR;
|
null_read.c | 51 .fileflags = O_RDONLY,
|
openconsole.c | 41 if (opendev(idev, odev, O_RDONLY) != 0)
|
/external/syslinux/com32/include/ |
fcntl.h | 12 /* None of these are actually supported, although O_RDONLY works */ 14 #define O_RDONLY 1
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
fcntl32.c | 43 {O_RDONLY, O_RDONLY}, 44 {O_RDONLY, O_WRONLY}, 45 {O_RDONLY, O_RDWR}, 46 {O_WRONLY, O_RDONLY}, 49 {O_RDWR, O_RDONLY},
|
/external/autotest/client/site_tests/security_Minijail_seccomp/src/ |
fail.c | 14 int fd_z = syscall(__NR_open, "/dev/zero", O_RDONLY); 15 int fd_n = syscall(__NR_open, "/dev/null", O_RDONLY);
|
ok.c | 14 int fd = syscall(__NR_open, "/dev/zero", O_RDONLY);
|
/external/compiler-rt/test/tsan/ |
fd_close_norace.cc | 8 int f = open("/dev/random", O_RDONLY); 16 int f = open("/dev/random", O_RDONLY);
|
fd_dup_norace2.cc | 25 // [pid 122196] open("/dev/urandom", O_RDONLY) = 3 26 // [pid 122196] open("/dev/urandom", O_RDONLY) = 4 43 fd = open("/dev/urandom", O_RDONLY); 44 int fd2 = open("/dev/urandom", O_RDONLY);
|
fd_dup_race.cc | 20 fd = open("/dev/random", O_RDONLY); 21 int fd2 = open("/dev/random", O_RDONLY);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
22-1.c | 29 fd = shm_open(SHM_NAME, O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR); 35 fd = shm_open(SHM_NAME, O_RDONLY | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
|
/external/libchrome/base/test/ |
test_file_util_linux.cc | 18 ScopedFD fd(open(file.value().c_str(), O_RDONLY));
|
/external/ltp/testcases/commands/eject/ |
eject_check_tray.c | 49 if ((fd = open(argv[1], O_RDONLY | O_NONBLOCK)) == -1)
|
/external/toybox/toys/other/ |
fsync.c | 31 loopfiles_rw(toys.optargs, O_RDONLY|O_NOATIME|O_NOCTTY|O_CLOEXEC|WARN_ONLY,
|
/external/toybox/toys/posix/ |
nohup.c | 39 xopen_stdio("/dev/null", O_RDONLY);
|
/external/valgrind/memcheck/tests/ |
erringfds.c | 12 fd = open("foo/bar/xyzzy", O_RDONLY); /* fails */
|