/bionic/tests/ |
D | fdsan_test.cpp | 53 int fd = open("/dev/null", O_RDONLY); in TEST_F() 60 int fd = open("/dev/null", O_RDONLY); in TEST_F() 67 int fd = open("/dev/null", O_RDONLY); in TEST_F() 74 int fd = open("/dev/null", O_RDONLY); in TEST_F() 82 int fd = open("/dev/null", O_RDONLY); in TEST_F() 90 int fd = open("/dev/null", O_RDONLY); in TEST_F() 98 int fd = open("/dev/null", O_RDONLY); in TEST_F() 106 int fd = open("/dev/null", O_RDONLY); in TEST_F() 133 int fd = open("/dev/null", O_RDONLY); in TEST_F() 147 int fd = open("/dev/null", O_RDONLY); in TEST_F() [all …]
|
D | fdtrack_test.cpp | 123 static int fd = open("/dev/null", O_WRONLY | O_CLOEXEC); in TEST() 143 fd1 = open("/dev/null", O_WRONLY | O_CLOEXEC); in TEST() 145 fd2 = open("/dev/null", O_WRONLY | O_CLOEXEC); in TEST() 147 fd3 = open("/dev/null", O_WRONLY | O_CLOEXEC); in TEST() 211 FDTRACK_TEST(open, open("/dev/null", O_WRONLY | O_CLOEXEC)); 294 int fd = open("/dev/null", O_RDONLY);
|
D | fcntl_test.cpp | 35 int fd = open("/proc/version", O_RDONLY); in TEST() 55 fd = open("/proc/version", O_RDONLY); in TEST() 152 int fd = open("/proc/version", O_RDONLY); in TEST() 183 int in = open("/proc/cpuinfo", O_RDONLY); in TEST() 233 int in = open("/proc/version", O_RDONLY); in TEST() 321 int fd = open(dir.path, O_TMPFILE | O_RDWR, perms); in TEST() 347 fd = open(dir.path, O_TMPFILE | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR); in TEST()
|
D | sys_xattr_test.cpp | 70 int fd = open(tf.path, O_PATH); in TEST() 88 int fd = open(tf.path, O_PATH); in TEST() 117 int fd = open(tf.path, O_PATH); in TEST()
|
D | sys_statvfs_test.cpp | 54 int fd = open("/proc", O_RDONLY); in TEST() 62 int fd = open("/proc", O_RDONLY); in TEST()
|
D | sys_vfs_test.cpp | 55 int fd = open("/proc", O_RDONLY); in TEST() 63 int fd = open("/proc", O_RDONLY); in TEST()
|
D | clang_fortify_tests.cpp | 111 int devnull = open("/dev/null", O_RDONLY); in SetUp() 281 open("/", 0, 0, 0); in FORTIFY_TEST() 291 EXPECT_FORTIFY_DEATH(open(target, O_CREAT)); in FORTIFY_TEST() 293 EXPECT_FORTIFY_DEATH(open(target, O_TMPFILE)); in FORTIFY_TEST() 308 EXPECT_NO_DEATH(open(target, O_RDONLY, 0777)); in FORTIFY_TEST()
|
D | dirent_test.cpp | 90 int proc_fd = open("/proc", O_DIRECTORY); in TEST() 131 int root_fd = open("/", O_DIRECTORY | O_RDONLY); in TEST() 141 int root_fd = open("/", O_DIRECTORY | O_RDONLY); in TEST() 154 int fd = open("/dev/null", O_RDONLY); in TEST() 162 int fd = open("/proc/self", O_RDONLY); in TEST()
|
D | bug_26110743_test.cpp | 34 int fd = open("/dev/null", O_RDWR | O_CLOEXEC); in ProcSelfReadlinkBody() 77 int fd = open("/dev/null", O_RDWR | O_CLOEXEC); in ProcTaskFdReadlinkBody()
|
/bionic/libc/include/bits/fortify/ |
D | fcntl.h | 38 int __open_real(const char*, int, ...) __RENAME(open); 49 int open(const char* pathname, int flags, mode_t modes, ...) __overloadable 59 int open(const char* const __pass_object_size pathname, int flags) in open() function 70 int open(const char* const __pass_object_size pathname, int flags, mode_t modes) in open() function 112 return open(pathname, flags); in open64() 120 return open(pathname, flags, modes); in open64()
|
/bionic/libfdtrack/ |
D | fdtrack_test.cpp | 80 TEST(fdtrack, open) { in TEST() argument 82 auto result = RunFdtrack([]() { fd = open("/dev/null", O_RDONLY | O_CLOEXEC); }); in TEST() 95 fd1 = open("/dev/null", O_RDONLY | O_CLOEXEC); in TEST() 96 fd2 = open("/dev/null", O_RDONLY | O_CLOEXEC); in TEST() 97 fd3 = open("/dev/null", O_RDONLY | O_CLOEXEC); in TEST()
|
/bionic/libc/bionic/ |
D | open.cpp | 52 return open(pathname, O_CREAT | O_TRUNC | O_WRONLY, mode); in creat() 56 int open(const char* pathname, int flags, ...) { in open() function 68 __strong_alias(open64, open);
|
D | bionic_systrace.cpp | 49 g_trace_marker_fd = open("/sys/kernel/tracing/trace_marker", O_CLOEXEC | O_WRONLY); in get_trace_marker_fd() 51 g_trace_marker_fd = open("/sys/kernel/debug/tracing/trace_marker", O_CLOEXEC | O_WRONLY); in get_trace_marker_fd()
|
D | pty.cpp | 51 return open("/dev/ptmx", flags); in posix_openpt() 135 *slave = open(name, O_RDWR|O_NOCTTY); in openpty()
|
D | libc_init_common.cpp | 139 int dev_null = TEMP_FAILURE_RETRY(open("/dev/null", O_RDWR)); in __nullify_closed_stdio() 142 dev_null = TEMP_FAILURE_RETRY(open("/sys/fs/selinux/null", O_RDWR)); in __nullify_closed_stdio()
|
D | android_profiling_dynamic.cpp | 142 ScopedFd maps_fd{ open("/proc/self/maps", O_RDONLY | O_CLOEXEC) }; in HandleTracedPerfSignal() 148 ScopedFd mem_fd{ open("/proc/self/mem", O_RDONLY | O_CLOEXEC) }; in HandleTracedPerfSignal()
|
/bionic/tools/versioner/tests/fortify_inline/headers/ |
D | fcntl.h | 12 int open(const char* name, int flags) in open() function 20 int open(const char* name, int flags, mode_t mode) in open() function
|
/bionic/tools/ |
D | generate-version-script.py | 17 with open(out_filename, "w") as fout: 18 with open(in_filename, "r") as fin:
|
/bionic/libc/tools/ |
D | generate-NOTICE.py | 122 with open(path, "r") as the_file: 124 content = open(path, "r").read().decode("utf-8") 127 content = open(path, "r").read().decode("iso-8859-1")
|
D | genfunctosyscallnrs.py | 16 parser.parse_open_file(open(file_path)) 55 with open(output_path, "w") as output_file:
|
D | genseccomp.py | 37 parser.parse_open_file(open(file_path)) 44 with open(file_path) as f: 93 with open(names_path) as f: 258 with open(output_path, "w") as output_file:
|
/bionic/benchmarks/linker_relocation/regen/ |
D | gen_bench.py | 181 with open(out_filename, 'w') as out: 246 with open(map_out_filename, 'w') as out: 290 ninja = open(out / 'build.ninja', 'w') 328 bp = open(out / 'Android.bp', 'w') 389 with open(Path(args.input)) as f:
|
/bionic/tools/versioner/tests/fortify_inline/platforms/ |
D | libc.map.txt | 3 open;
|
/bionic/libc/ |
D | SECCOMP_ALLOWLIST_APP.TXT | 14 int open:open(const char *path, int oflag, ... ) lp32,x86_64
|
/bionic/libc/upstream-openbsd/lib/libc/gen/ |
D | daemon.c | 56 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { in daemon()
|