/bionic/tests/ |
D | fdsan_test.cpp | 62 int fd = open("/dev/null", O_RDONLY); in TEST_F() 69 int fd = open("/dev/null", O_RDONLY); in TEST_F() 76 int fd = open("/dev/null", O_RDONLY); in TEST_F() 83 int fd = open("/dev/null", O_RDONLY); in TEST_F() 91 int fd = open("/dev/null", O_RDONLY); in TEST_F() 99 int fd = open("/dev/null", O_RDONLY); in TEST_F() 107 int fd = open("/dev/null", O_RDONLY); in TEST_F() 115 int fd = open("/dev/null", O_RDONLY); in TEST_F() 142 int fd = open("/dev/null", O_RDONLY); in TEST_F() 156 int fd = open("/dev/null", O_RDONLY); in TEST_F() [all …]
|
D | fdtrack_test.cpp | 129 static int fd = open("/dev/null", O_WRONLY | O_CLOEXEC); in TEST() 143 static int fd = open("/dev/null", O_WRONLY | O_CLOEXEC); in TEST() 164 fd1 = open("/dev/null", O_WRONLY | O_CLOEXEC); in TEST() 166 fd2 = open("/dev/null", O_WRONLY | O_CLOEXEC); in TEST() 168 fd3 = open("/dev/null", O_WRONLY | O_CLOEXEC); in TEST() 232 FDTRACK_TEST(open, open("/dev/null", O_WRONLY | O_CLOEXEC)); 341 int fd = open("/dev/null", O_RDONLY);
|
D | fcntl_test.cpp | 42 int fd = open("/proc/version", O_RDONLY); in TEST() 62 fd = open("/proc/version", O_RDONLY); in TEST() 159 int fd = open("/proc/version", O_RDONLY); in TEST() 190 int in = open("/proc/cpuinfo", O_RDONLY); in TEST() 240 int in = open("/proc/version", O_RDONLY); in TEST() 327 int fd = open(dir.path, O_TMPFILE | O_RDWR, perms); in TEST() 353 fd = open(dir.path, O_TMPFILE | O_RDWR | O_EXCL, S_IRUSR | S_IWUSR); in TEST()
|
D | sys_statvfs_test.cpp | 64 int fd = open("/proc", O_RDONLY); in TEST() 72 int fd = open("/proc", O_RDONLY); in TEST()
|
D | sys_xattr_test.cpp | 72 int fd = open(tf.path, O_PATH); in TEST() 90 int fd = open(tf.path, O_PATH); in TEST() 119 int fd = open(tf.path, O_PATH); in TEST()
|
D | sys_vfs_test.cpp | 82 int fd = open("/proc", O_RDONLY); in TEST() 97 int fd = open("/proc", 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()
|
D | _FILE_OFFSET_BITS_test.cpp | 36 int fd = open("/proc/version", O_RDONLY); in TEST()
|
D | dirent_test.cpp | 94 int proc_fd = open("/proc", O_DIRECTORY); in TEST() 150 int root_fd = open("/", O_DIRECTORY | O_RDONLY); in TEST() 164 int root_fd = open("/", O_DIRECTORY | O_RDONLY); in TEST() 180 int fd = open("/dev/null", O_RDONLY); in TEST() 188 int fd = open("/proc/self", O_RDONLY); in TEST()
|
/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/include/bits/fortify/ |
D | fcntl.h | 38 int __open_real(const char* _Nonnull, int, ...) __RENAME(open); 49 int open(const char* _Nonnull pathname, int flags, mode_t modes, ...) __overloadable 59 int open(const char* _Nonnull const __pass_object_size pathname, int flags) in open() function 70 int open(const char* _Nonnull const __pass_object_size pathname, int flags, mode_t modes) in open() function 111 return open(pathname, flags); in open64() 119 return open(pathname, flags, modes); in open64()
|
/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 | 51 g_trace_marker_fd = open("/sys/kernel/tracing/trace_marker", O_CLOEXEC | O_WRONLY); in get_trace_marker_fd() 53 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 *tty = open(name, O_RDWR | O_NOCTTY); in openpty()
|
D | android_profiling_dynamic.cpp | 148 ScopedFd maps_fd{ open("/proc/self/maps", O_RDONLY | O_CLOEXEC) }; in HandleTracedPerfSignal() 149 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 | genfunctosyscallnrs.py | 14 parser.parse_open_file(open(file_path)) 64 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 priority_file: 102 with open(names_path) as f: 271 with open(output_path, "w") as output_file:
|
D | ndk_missing_symbols.py | 25 with open(os.devnull, 'w') as devnull:
|
/bionic/docs/ |
D | clang_fortify_anatomy.md | 30 - Missing arguments to functions (e.g., `open()` with `O_CREAT`, but no mode 401 ## Breakdown of open 403 In Bionic, the [FORTIFY'ed implementation of `open`] is quite large. Much like 407 int open(const char* __path, int __flags, ...); 413 int __open_real(const char*, int, ...) __asm__(open); 418 int open(const char* pathname, int flags, mode_t modes, ...) __overloadable 425 int open(const char* const __attribute__((pass_object_size(1))) pathname, int flags) 430 "'open' called with O_CREAT or O_TMPFILE, but missing mode"))) { 441 int open(const char* const __attribute__((pass_object_size(1))) pathname, int flags, mode_t modes) 444 "'open' has superfluous mode bits; missing O_CREAT?") { [all …]
|
/bionic/tools/versioner/tests/fortify_inline/platforms/ |
D | libc.map.txt | 3 open;
|
/bionic/libc/upstream-openbsd/lib/libc/gen/ |
D | daemon.c | 56 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR)) != -1) { in daemon()
|
/bionic/benchmarks/linker_relocation/regen/ |
D | gen_bench.py | 185 with open(out_filename, 'w') as out: 251 with open(map_out_filename, 'w') as out: 295 ninja = open(out / 'build.ninja', 'w') 333 bp = open(out / 'Android.bp', 'w') 395 with open(Path(args.input)) as f:
|
/bionic/libc/kernel/tools/ |
D | utils.py | 99 f = open(dst, "r") 133 f = open(dst, "w")
|