Home
last modified time | relevance | path

Searched refs:O_CLOEXEC (Results 1 – 25 of 46) sorted by relevance

12

/bionic/libfdtrack/
Dfdtrack_test.cpp82 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/tests/
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));
233 FDTRACK_TEST(openat, openat(AT_EMPTY_PATH, "/dev/null", O_WRONLY | O_CLOEXEC));
278 if (pipe2(fds.data(), O_CLOEXEC) != 0) {
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/kernel/uapi/asm-generic/
Dfcntl.h55 #ifndef O_CLOEXEC
56 #define O_CLOEXEC 02000000 macro
/bionic/libc/bionic/
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()
Dfchmodat.cpp50 ScopedFd fd(openat(dirfd, pathname, O_PATH | O_NOFOLLOW | O_CLOEXEC)); in fchmodat()
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()
Dgetentropy.cpp37 ScopedFd fd(TEMP_FAILURE_RETRY(open("/dev/urandom", O_RDONLY | O_NOFOLLOW | O_CLOEXEC, 0))); in getentropy_urandom()
Drealpath.cpp54 ScopedFd fd(open(path, O_PATH | O_CLOEXEC)); in realpath()
Dpthread_setname_np.cpp50 return open(comm_name, O_CLOEXEC | flags); in __open_task_comm_fd()
Dfts.c162 (sp->fts_rfd = open(".", O_RDONLY | O_CLOEXEC)) == -1) in __fts_open()
289 open(".", O_RDONLY | O_CLOEXEC)) == -1) { in fts_read()
379 open(".", O_RDONLY | O_CLOEXEC)) == -1) { in fts_read()
519 if ((fd = open(".", O_RDONLY | O_CLOEXEC)) == -1) in fts_children()
1030 if (fd == -1 && (newfd = open(path, O_RDONLY|O_DIRECTORY|O_CLOEXEC)) == -1) in fts_safe_changedir()
/bionic/libc/kernel/uapi/linux/
Deventfd.h11 #define EFD_CLOEXEC O_CLOEXEC
Dtimerfd.h14 #define TFD_CLOEXEC O_CLOEXEC
Ddma-heap.h11 #define DMA_HEAP_VALID_FD_FLAGS (O_CLOEXEC | O_ACCMODE)
Dsignalfd.h11 #define SFD_CLOEXEC O_CLOEXEC
Dinotify.h43 #define IN_CLOEXEC O_CLOEXEC
Deventpoll.h12 #define EPOLL_CLOEXEC O_CLOEXEC
Dmount.h46 #define OPEN_TREE_CLOEXEC O_CLOEXEC
/bionic/libc/include/sys/
Dinotify.h40 #define IN_CLOEXEC O_CLOEXEC
Deventfd.h44 #define EFD_CLOEXEC O_CLOEXEC
Dtimerfd.h44 #define TFD_CLOEXEC O_CLOEXEC
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dflags.c84 o |= O_CLOEXEC; in __sflags()
/bionic/linker/
Dlinker_crt_pad_segment_test.cpp58 unique_fd fd{TEMP_FAILURE_RETRY(open(path.c_str(), O_CLOEXEC | O_RDWR))}; in GetPadSegment()
/bionic/tools/versioner/src/
DVFS.cpp52 unique_fd fd(open(file_path, O_RDONLY | O_CLOEXEC)); in addDirectoryToVFS()
/bionic/tests/headers/posix/
Dfcntl_h.c56 MACRO(O_CLOEXEC); in fcntl_h()

12