Searched refs:O_CLOEXEC (Results 1 - 25 of 88) sorted by relevance

1234

/external/strace/tests/
H A Depoll_create1.c39 #if defined __NR_epoll_create1 && defined O_CLOEXEC
41 if (syscall(__NR_epoll_create1, O_CLOEXEC))
43 return syscall(__NR_epoll_create1, O_CLOEXEC | O_NONBLOCK) >= 0;
H A Deventfd.c39 #if defined __NR_eventfd2 && defined O_CLOEXEC
41 return syscall(__NR_eventfd2, -1L, 1 | O_CLOEXEC | O_NONBLOCK) == 0 ?
H A Dsignalfd.c42 #if defined HAVE_SYS_SIGNALFD_H && defined HAVE_SIGNALFD && defined O_CLOEXEC
48 return signalfd(-1, &mask, O_CLOEXEC | O_NONBLOCK) == 0 ?
H A Duserfaultfd.c41 #if defined __NR_userfaultfd && defined O_CLOEXEC
42 if (syscall(__NR_userfaultfd, 1 | O_NONBLOCK | O_CLOEXEC) != -1)
44 printf("userfaultfd(O_NONBLOCK|O_CLOEXEC|0x1) = -1 %s\n",
H A Dtimerfd_xettime.c42 && defined O_CLOEXEC
48 if (syscall(__NR_timerfd_create, CLOCK_MONOTONIC, O_CLOEXEC | O_NONBLOCK))
/external/strace/xlat/
H A Dtimerfdflags.in5 #if defined TFD_CLOEXEC || defined O_CLOEXEC
6 TFD_CLOEXEC O_CLOEXEC
H A Dinotify_init_flags.h14 #if defined(O_CLOEXEC) || (defined(HAVE_DECL_O_CLOEXEC) && HAVE_DECL_O_CLOEXEC)
15 XLAT(O_CLOEXEC),
H A Duffd_flags.h14 #if defined(O_CLOEXEC) || (defined(HAVE_DECL_O_CLOEXEC) && HAVE_DECL_O_CLOEXEC)
15 XLAT(O_CLOEXEC),
H A Depollflags.h2 #if defined EPOLL_CLOEXEC || defined O_CLOEXEC
4 # define EPOLL_CLOEXEC O_CLOEXEC
16 #if defined EPOLL_CLOEXEC || defined O_CLOEXEC
H A Dsfd_flags.h2 #if defined SFD_CLOEXEC || defined O_CLOEXEC
4 # define SFD_CLOEXEC O_CLOEXEC
19 #if defined SFD_CLOEXEC || defined O_CLOEXEC
H A Defd_flags.h5 #if defined EFD_CLOEXEC || defined O_CLOEXEC
7 # define EFD_CLOEXEC O_CLOEXEC
23 #if defined EFD_CLOEXEC || defined O_CLOEXEC
H A Dtimerfdflags.h8 #if defined TFD_CLOEXEC || defined O_CLOEXEC
10 # define TFD_CLOEXEC O_CLOEXEC
29 #if defined TFD_CLOEXEC || defined O_CLOEXEC
H A Dopen_mode_flags.h63 #if defined(O_CLOEXEC) || (defined(HAVE_DECL_O_CLOEXEC) && HAVE_DECL_O_CLOEXEC)
64 XLAT(O_CLOEXEC),
/external/bison/lib/
H A Ddup-safer-flag.c30 STDERR_FILENO. If FLAG contains O_CLOEXEC, behave like
36 return fcntl (fd, (flag & O_CLOEXEC) ? F_DUPFD_CLOEXEC : F_DUPFD,
H A Dfcntl.in.h194 #if !defined O_CLOEXEC && defined O_NOINHERIT
196 # define O_CLOEXEC O_NOINHERIT
199 #ifndef O_CLOEXEC
200 # define O_CLOEXEC 0
H A Dpipe2.c70 if ((flags & ~(O_CLOEXEC | O_NONBLOCK | O_BINARY | O_TEXT)) != 0)
127 if (flags & O_CLOEXEC)
/external/libchrome/sandbox/linux/syscall_broker/
H A Dbroker_common.h19 // O_CLOEXEC is tricky because in theory another thread could call execve()
23 // F_GETFD in fcntl(2)) and O_CLOEXEC (see F_GETFL in fcntl(2)). O_CLOEXEC
25 // descriptor was originally opened with O_CLOEXEC as a flag. And it is sent
27 // O_CLOEXEC instead of FD_CLOEXEC may be tricked in thinking that the file
29 const int kCurrentProcessOpenFlagsMask = O_CLOEXEC;
H A Dbroker_client.cc48 // This implementation only knows about O_CLOEXEC, someone needs to look at
50 RAW_CHECK(kCurrentProcessOpenFlagsMask == O_CLOEXEC);
52 flags &= ~O_CLOEXEC;
/external/toybox/toys/other/
H A Dfsync.c31 loopfiles_rw(toys.optargs, O_RDONLY|O_NOATIME|O_NOCTTY|O_CLOEXEC,
H A Dtruncate.c63 loopfiles_rw(toys.optargs, O_WRONLY|O_CLOEXEC|(cr ? O_CREAT : 0), 0666, cr,
/external/kernel-headers/original/uapi/linux/
H A Deventpoll.h17 /* For O_CLOEXEC */
22 #define EPOLL_CLOEXEC O_CLOEXEC
H A Dsignalfd.h12 /* For O_CLOEXEC and O_NONBLOCK */
16 #define SFD_CLOEXEC O_CLOEXEC
/external/libchrome/sandbox/linux/services/
H A Dproc_util.cc34 HANDLE_EINTR(open(path, O_RDONLY | O_DIRECTORY | O_CLOEXEC)));
44 openat(proc_fd, "self/fd/", O_DIRECTORY | O_RDONLY | O_CLOEXEC));
74 openat(proc_fd, "self/fd/", O_DIRECTORY | O_RDONLY | O_CLOEXEC);
110 HANDLE_EINTR(open("/proc/", O_DIRECTORY | O_RDONLY | O_CLOEXEC)));
/external/kernel-headers/original/uapi/asm-generic/
H A Dfcntl.h61 #ifndef O_CLOEXEC
62 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
/external/libbrillo/brillo/
H A Dfile_utils.cc63 AT_FDCWD, path.value().c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW)));
118 O_RDONLY | O_NOFOLLOW | O_CREAT | O_EXCL | O_CLOEXEC,

Completed in 421 milliseconds

1234