Home
last modified time | relevance | path

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

12

/bionic/libc/bionic/
Dopen.cpp47 return open(pathname, O_CREAT | O_TRUNC | O_WRONLY, mode); in creat()
51 int open(const char* pathname, int flags, ...) { in open() function
63 __strong_alias(open64, open);
Dpthread_setname_np.cpp68 int fd = open(comm_name, O_CLOEXEC | O_WRONLY); in pthread_setname_np()
Dpty.cpp53 return open("/dev/ptmx", flags); in posix_openpt()
138 *slave = open(name, O_RDWR|O_NOCTTY); in openpty()
Dbionic_systrace.cpp80 g_trace_marker_fd = open("/sys/kernel/debug/tracing/trace_marker", O_CLOEXEC | O_WRONLY); in get_trace_marker_fd()
Dlibc_init_common.cpp138 int dev_null = TEMP_FAILURE_RETRY(open("/dev/null", O_RDWR)); in __nullify_closed_stdio()
141 dev_null = TEMP_FAILURE_RETRY(open("/sys/fs/selinux/null", O_RDWR)); in __nullify_closed_stdio()
/bionic/libc/include/
Dfcntl.h65 extern int open(const char*, int, ...);
86 extern int __open_real(const char*, int, ...) __RENAME(open);
97 int open(const char* pathname, int flags, ...) { in open() function
/bionic/tests/
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()
Dfortify_compilation_test.cpp209 open("/dev/null", O_CREAT); in test_open()
214 open("/dev/null", O_CREAT, 0, 0); in test_open()
Dsys_xattr_test.cpp70 int fd = open(tf.filename, O_PATH); in TEST()
87 int fd = open(tf.filename, O_PATH); in TEST()
Dfcntl_test.cpp25 int fd = open("/proc/version", O_RDONLY); in TEST()
45 fd = open("/proc/version", O_RDONLY); in TEST()
161 int in = open("/proc/cpuinfo", O_RDONLY); in TEST()
211 int in = open("/proc/version", O_RDONLY); in TEST()
DTemporaryFile.h47 fd = open(filename, O_RDWR); in reopen()
Ddlext_test.cpp110 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
124 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
144 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
338 int relro_fd = open(relro_file, O_RDWR | O_TRUNC); in CreateRelroFile()
363 relro_fd = open(relro_file, O_RDONLY); in CreateRelroFile()
/bionic/libc/tools/zoneinfo/
Dupdate-tzdata.py46 return open('%s/tzdata' % bionic_libc_zoneinfo_dir).read().split('\x00', 1)[0]
54 for line in open('extracted/%s' % region):
64 setup = open('setup', 'w')
79 ftp.retrbinary('RETR %s' % filename, open(filename, 'wb').write)
94 f = open(output_filename, 'wb')
190 tar = tarfile.open(data_filename, 'r')
/bionic/libc/upstream-openbsd/lib/libc/gen/
Ddaemon.c56 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { in daemon()
/bionic/libc/tools/
Dgenlibgcc_compat.py104 fd = open(build_output_file_path, 'r')
120 fres = open(file_path, 'w')
Dndk_missing_symbols.py25 with open(os.devnull, 'w') as devnull:
Dgenerate-NOTICE.py122 content = open(path, 'r').read().decode('utf-8')
125 content = open(path, 'r').read().decode('iso-8859-1')
Dcheck-symbols.py21 for line in open(path, 'r'):
Dcheck-symbols-glibc.py45 ignored_symbols |= set(open(f, 'r').read().splitlines())
Dsymbols.py24 f = open(txt_file, 'r')
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dfreopen.c90 f = open(file, oflags, DEFFILEMODE); in freopen()
96 f = open(file, oflags, DEFFILEMODE); in freopen()
Dfopen.c54 if ((f = open(file, oflags, DEFFILEMODE)) < 0) { in fopen()
/bionic/libc/kernel/tools/
Dutils.py76 f = open(dst, "r")
110 f = open(dst, "w")
/bionic/tools/relocation_packer/src/
Dmain.cc97 ScopedFd fd(open(file, O_RDWR)); in main()

12