Home
last modified time | relevance | path

Searched refs:open (Results 1 – 25 of 93) sorted by relevance

1234

/bionic/tests/
Dfdsan_test.cpp62 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 …]
Dfdtrack_test.cpp129 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);
Dfcntl_test.cpp42 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()
Dsys_statvfs_test.cpp64 int fd = open("/proc", O_RDONLY); in TEST()
72 int fd = open("/proc", O_RDONLY); in TEST()
Dsys_xattr_test.cpp72 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()
Dsys_vfs_test.cpp82 int fd = open("/proc", O_RDONLY); in TEST()
97 int fd = open("/proc", O_RDONLY); in TEST()
Dbug_26110743_test.cpp34 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.cpp36 int fd = open("/proc/version", O_RDONLY); in TEST()
Ddirent_test.cpp94 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/
Dfdtrack_test.cpp80 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/
Dfcntl.h38 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/
Dopen.cpp52 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);
Dbionic_systrace.cpp51 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()
Dpty.cpp51 return open("/dev/ptmx", flags); in posix_openpt()
135 *tty = open(name, O_RDWR | O_NOCTTY); in openpty()
Dandroid_profiling_dynamic.cpp148 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/
Dfcntl.h12 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/
Dgenerate-version-script.py17 with open(out_filename, "w") as fout:
18 with open(in_filename, "r") as fin:
/bionic/libc/tools/
Dgenfunctosyscallnrs.py14 parser.parse_open_file(open(file_path))
64 with open(output_path, "w") as output_file:
Dgenseccomp.py37 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:
Dndk_missing_symbols.py25 with open(os.devnull, 'w') as devnull:
/bionic/docs/
Dclang_fortify_anatomy.md30 - 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/
Dlibc.map.txt3 open;
/bionic/libc/upstream-openbsd/lib/libc/gen/
Ddaemon.c56 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR)) != -1) { in daemon()
/bionic/benchmarks/linker_relocation/regen/
Dgen_bench.py185 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/
Dutils.py99 f = open(dst, "r")
133 f = open(dst, "w")

1234