Home
last modified time | relevance | path

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

1234

/bionic/tests/
Dfdsan_test.cpp53 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 …]
Dfdtrack_test.cpp123 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);
Dfcntl_test.cpp35 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()
Dsys_xattr_test.cpp70 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()
Dsys_statvfs_test.cpp54 int fd = open("/proc", O_RDONLY); in TEST()
62 int fd = open("/proc", O_RDONLY); in TEST()
Dsys_vfs_test.cpp55 int fd = open("/proc", O_RDONLY); in TEST()
63 int fd = open("/proc", O_RDONLY); in TEST()
Dclang_fortify_tests.cpp111 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()
Ddirent_test.cpp90 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()
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()
/bionic/libc/include/bits/fortify/
Dfcntl.h38 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/
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/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.cpp49 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()
Dpty.cpp51 return open("/dev/ptmx", flags); in posix_openpt()
135 *slave = open(name, O_RDWR|O_NOCTTY); in openpty()
Dlibc_init_common.cpp139 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()
Dandroid_profiling_dynamic.cpp142 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/
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/
Dgenerate-NOTICE.py122 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")
Dgenfunctosyscallnrs.py16 parser.parse_open_file(open(file_path))
55 with open(output_path, "w") as output_file:
Dgenseccomp.py37 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/
Dgen_bench.py181 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/
Dlibc.map.txt3 open;
/bionic/libc/
DSECCOMP_ALLOWLIST_APP.TXT14 int open:open(const char *path, int oflag, ... ) lp32,x86_64
/bionic/libc/upstream-openbsd/lib/libc/gen/
Ddaemon.c56 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { in daemon()

1234