Home
last modified time | relevance | path

Searched refs:O_CLOEXEC (Results 1 – 25 of 42) 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.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));
212 FDTRACK_TEST(openat, openat(AT_EMPTY_PATH, "/dev/null", O_WRONLY | O_CLOEXEC));
231 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/bionic/
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()
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()
Dfchmodat.cpp50 ScopedFd fd(openat(dirfd, pathname, O_PATH | O_NOFOLLOW | O_CLOEXEC)); in fchmodat()
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.c161 if (!ISSET(FTS_NOCHDIR) && (sp->fts_rfd = open(".", O_RDONLY|O_CLOEXEC, 0)) < 0) in __fts_open()
284 if ((p->fts_symfd = open(".", O_RDONLY|O_CLOEXEC, 0)) < 0) { in fts_read()
373 if ((p->fts_symfd = open(".", O_RDONLY|O_CLOEXEC, 0)) < 0) { in fts_read()
511 if ((fd = open(".", O_RDONLY|O_CLOEXEC, 0)) < 0) in fts_children()
1021 if (fd < 0 && (newfd = open(path, O_RDONLY|O_DIRECTORY|O_CLOEXEC, 0)) < 0) in fts_safe_changedir()
Dscandir.cpp103 int dir_fd = openat(parent_fd, dir_name, O_CLOEXEC | O_DIRECTORY | O_RDONLY); in scandirat()
/bionic/libc/kernel/uapi/asm-generic/
Dfcntl.h67 #ifndef O_CLOEXEC
68 #define O_CLOEXEC 02000000 macro
/bionic/libc/kernel/uapi/linux/
Dtimerfd.h26 #define TFD_CLOEXEC O_CLOEXEC
Ddma-heap.h23 #define DMA_HEAP_VALID_FD_FLAGS (O_CLOEXEC | O_ACCMODE)
Dsignalfd.h23 #define SFD_CLOEXEC O_CLOEXEC
Deventpoll.h24 #define EPOLL_CLOEXEC O_CLOEXEC
Dinotify.h55 #define IN_CLOEXEC O_CLOEXEC
Dmount.h56 #define OPEN_TREE_CLOEXEC O_CLOEXEC
/bionic/libc/include/sys/
Deventfd.h44 #define EFD_CLOEXEC O_CLOEXEC
Dinotify.h52 #define IN_CLOEXEC O_CLOEXEC
Dtimerfd.h44 #define TFD_CLOEXEC O_CLOEXEC
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dflags.c84 o |= O_CLOEXEC; in __sflags()
Dmktemp.c38 #define MKOTEMP_FLAGS (O_APPEND | O_CLOEXEC | O_DSYNC | O_RSYNC | O_SYNC)
/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