/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/libchrome/sandbox/linux/services/ |
proc_util_unittest.cc | 17 base::ScopedFD proc_fd(open("/proc/", O_RDONLY | O_DIRECTORY)); 20 int fd = open("/dev/null", O_RDONLY); 32 int proc_fd = open("/proc/", O_RDONLY | O_DIRECTORY); 40 int proc_fd = open("/proc/", O_RDONLY | O_DIRECTORY); 52 int open_directory_fd = open("/proc/self/", O_RDONLY | O_DIRECTORY);
|
/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/libchrome/base/test/ |
test_file_util_linux.cc | 18 ScopedFD fd(open(file.value().c_str(), O_RDONLY));
|
/external/toybox/toys/android/ |
load_policy.c | 23 int fd = xopen(path, O_RDONLY);
|
/external/toybox/toys/other/ |
fsfreeze.c | 26 int fd = xopen(*toys.optargs, O_RDONLY);
|
fsync.c | 31 loopfiles_rw(toys.optargs, O_RDONLY|O_NOATIME|O_NOCTTY|O_CLOEXEC,
|
/external/toybox/toys/posix/ |
nohup.c | 39 open("/dev/null", O_RDONLY);
|
/external/valgrind/memcheck/tests/ |
erringfds.c | 12 fd = open("foo/bar/xyzzy", O_RDONLY); /* fails */
|
mmaptest.c | 12 fd = open("dir", O_RDONLY);
|
/external/e2fsprogs/lib/e2p/ |
fgetversion.c | 34 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK|O_LARGEFILE) 36 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK)
|
fsetversion.c | 34 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK|O_LARGEFILE) 36 #define OPEN_FLAGS (O_RDONLY|O_NONBLOCK)
|
/system/vold/ |
AutoCloseFD.h | 30 AutoCloseFD(const char *path, int flags = O_RDONLY, int mode = 0): 32 AutoCloseFD(const std::string &path, int flags = O_RDONLY, int mode = 0):
|
/external/autotest/client/site_tests/security_AltSyscall/src/ |
read.c | 20 fd = open("/dev/zero", O_RDONLY);
|
/external/valgrind/memcheck/tests/darwin/ |
pth-undocumented.c | 30 dirfd = open("/", O_RDONLY);
|