O_CLOEXEC 90 maint/gnulib/lib/chown.c int open_flags = O_NONBLOCK | O_NOCTTY | O_CLOEXEC; O_CLOEXEC 55 maint/gnulib/lib/copy-file.c src_fd = open (src_filename, O_RDONLY | O_BINARY | O_CLOEXEC); O_CLOEXEC 69 maint/gnulib/lib/copy-file.c O_WRONLY | O_CREAT | O_TRUNC | O_BINARY | O_CLOEXEC, O_CLOEXEC 36 maint/gnulib/lib/dup-safer-flag.c return fcntl (fd, (flag & O_CLOEXEC) ? F_DUPFD_CLOEXEC : F_DUPFD, O_CLOEXEC 74 maint/gnulib/lib/dup3.c if ((flags & ~(O_CLOEXEC | O_BINARY | O_TEXT)) != 0) O_CLOEXEC 80 maint/gnulib/lib/dup3.c if (flags & O_CLOEXEC) O_CLOEXEC 93 maint/gnulib/lib/fchmodat.c int fd = openat (dir, file, O_PATH | O_NOFOLLOW | O_CLOEXEC); O_CLOEXEC 64 maint/gnulib/lib/fcntl.c BOOL inherit = flags & O_CLOEXEC ? FALSE : TRUE; O_CLOEXEC 492 maint/gnulib/lib/fcntl.c result = dupfd (fd, target, O_CLOEXEC); O_CLOEXEC 269 maint/gnulib/lib/fcntl.in.h # if defined O_CLOEXEC && ! (INT_MIN <= O_CLOEXEC && O_CLOEXEC <= INT_MAX) O_CLOEXEC 285 maint/gnulib/lib/fcntl.in.h #if !defined O_CLOEXEC && defined O_NOINHERIT O_CLOEXEC 290 maint/gnulib/lib/fcntl.in.h #ifndef O_CLOEXEC O_CLOEXEC 126 maint/gnulib/lib/fopen.c open_flags |= O_CLOEXEC; O_CLOEXEC 78 maint/gnulib/lib/freopen.c int nullfd = open (null_device, O_RDONLY | O_CLOEXEC); O_CLOEXEC 349 maint/gnulib/lib/fts.c int open_flags = (O_SEARCH | O_CLOEXEC | O_DIRECTORY | O_NOCTTY | O_NONBLOCK O_CLOEXEC 405 maint/gnulib/lib/fts.c int fd = open (".", O_SEARCH | O_CLOEXEC); O_CLOEXEC 1738 maint/gnulib/lib/fts.c int open_flags = O_SEARCH | O_CLOEXEC; O_CLOEXEC 179 maint/gnulib/lib/get-rusage-as.c int fd = open ("/dev/zero", O_RDONLY | O_CLOEXEC, 0666); O_CLOEXEC 77 maint/gnulib/lib/get_ppid_of.c fd = open (filename, O_RDONLY | O_CLOEXEC); O_CLOEXEC 118 maint/gnulib/lib/get_ppid_of.c fd = open (filename, O_RDONLY | O_CLOEXEC); O_CLOEXEC 155 maint/gnulib/lib/get_ppid_of.c fd = open (filename, O_RDONLY | O_CLOEXEC); O_CLOEXEC 193 maint/gnulib/lib/get_ppid_of.c fd = open (filename, O_RDONLY | O_CLOEXEC); O_CLOEXEC 286 maint/gnulib/lib/get_ppid_of.c fd = open (filename, O_RDONLY | O_CLOEXEC); O_CLOEXEC 108 maint/gnulib/lib/get_progname_of.c fd = open (filename, O_RDONLY | O_CLOEXEC); O_CLOEXEC 161 maint/gnulib/lib/get_progname_of.c fd = open (filename, O_RDONLY | O_CLOEXEC); O_CLOEXEC 226 maint/gnulib/lib/get_progname_of.c fd = open (filename, O_RDONLY | O_CLOEXEC); O_CLOEXEC 381 maint/gnulib/lib/get_progname_of.c fd = open (filename, O_RDONLY | O_CLOEXEC); O_CLOEXEC 515 maint/gnulib/lib/getloadavg.c fd = open (LINUX_LDAV_FILE, O_RDONLY | O_CLOEXEC); O_CLOEXEC 571 maint/gnulib/lib/getloadavg.c int fd = open (NETBSD_LDAV_FILE, O_RDONLY | O_CLOEXEC); O_CLOEXEC 879 maint/gnulib/lib/getloadavg.c int fd = open ("/dev/kmem", O_RDONLY | O_CLOEXEC); O_CLOEXEC 236 maint/gnulib/lib/getprogname.c fd = open (filename, O_RDONLY | O_CLOEXEC); O_CLOEXEC 177 maint/gnulib/lib/getrandom.c int oflags = (O_RDONLY + O_CLOEXEC O_CLOEXEC 121 maint/gnulib/lib/immutable.c file_fd = open (filename, O_CREAT | O_TRUNC | O_RDWR | O_CLOEXEC, 0700); O_CLOEXEC 604 maint/gnulib/lib/javacomp.c fd = open (compiled_file_name, O_RDONLY | O_BINARY | O_CLOEXEC, 0); O_CLOEXEC 53 maint/gnulib/lib/lchmod.c int fd = open (file, O_PATH | O_NOFOLLOW | O_CLOEXEC); O_CLOEXEC 58 maint/gnulib/lib/login_tty.c dummy_fd = open (slave_name, O_RDWR | O_CLOEXEC); O_CLOEXEC 916 maint/gnulib/lib/mountlist.c lockfd = open (MNTTAB_LOCK, O_RDONLY | O_CLOEXEC); O_CLOEXEC 131 maint/gnulib/lib/open.c flags & ~(have_cloexec < 0 ? O_CLOEXEC : 0), mode); O_CLOEXEC 133 maint/gnulib/lib/open.c if (flags & O_CLOEXEC) O_CLOEXEC 141 maint/gnulib/lib/open.c fd = orig_open (filename, flags & ~O_CLOEXEC, mode); O_CLOEXEC 78 maint/gnulib/lib/openat-proc.c O_SEARCH | O_DIRECTORY | O_NOCTTY | O_NONBLOCK | O_CLOEXEC); O_CLOEXEC 117 maint/gnulib/lib/openat.c flags & ~(have_cloexec < 0 ? O_CLOEXEC : 0), mode); O_CLOEXEC 119 maint/gnulib/lib/openat.c if (flags & O_CLOEXEC) O_CLOEXEC 127 maint/gnulib/lib/openat.c fd = orig_openat (dfd, filename, flags & ~O_CLOEXEC, mode); O_CLOEXEC 294 maint/gnulib/lib/openat.c int fd = open ("/", O_SEARCH | O_CLOEXEC); O_CLOEXEC 38 maint/gnulib/lib/opendirat.c int open_flags = (O_RDONLY | O_CLOEXEC | O_DIRECTORY | O_NOCTTY O_CLOEXEC 135 maint/gnulib/lib/pagealign_alloc.c fd = open ("/dev/zero", O_RDONLY | O_CLOEXEC, 0666); O_CLOEXEC 118 maint/gnulib/lib/passfd.c int flags_recvmsg = flags & O_CLOEXEC ? MSG_CMSG_CLOEXEC : 0; O_CLOEXEC 121 maint/gnulib/lib/passfd.c if ((flags & ~O_CLOEXEC) != 0) O_CLOEXEC 168 maint/gnulib/lib/passfd.c if (!MSG_CMSG_CLOEXEC && (flags & O_CLOEXEC)) O_CLOEXEC 186 maint/gnulib/lib/passfd.c if (flags & O_CLOEXEC) O_CLOEXEC 70 maint/gnulib/lib/pipe2.c if ((flags & ~(O_CLOEXEC | O_NONBLOCK | O_BINARY | O_TEXT)) != 0) O_CLOEXEC 127 maint/gnulib/lib/pipe2.c if (flags & O_CLOEXEC) O_CLOEXEC 42 maint/gnulib/lib/popen-safer.c int fd = open ("/dev/null", O_RDONLY | O_CLOEXEC); O_CLOEXEC 73 maint/gnulib/lib/progreloc.c #if defined IN_RELOCWRAPPER && (!defined O_CLOEXEC || GNULIB_defined_O_CLOEXEC) O_CLOEXEC 256 maint/gnulib/lib/progreloc.c executable_fd = open ("/proc/self/exe", O_EXEC | O_CLOEXEC, 0); O_CLOEXEC 265 maint/gnulib/lib/progreloc.c executable_fd = open (buf, O_EXEC | O_CLOEXEC, 0); O_CLOEXEC 312 maint/gnulib/lib/progreloc.c int fd = open ("/proc/self/execname", O_RDONLY | O_CLOEXEC, 0); O_CLOEXEC 335 maint/gnulib/lib/progreloc.c executable_fd = open ("/proc/self/exe", O_EXEC | O_CLOEXEC, 0); O_CLOEXEC 111 maint/gnulib/lib/same.c int open_flags = O_SEARCH | O_CLOEXEC | O_DIRECTORY; O_CLOEXEC 66 maint/gnulib/lib/save-cwd.c cwd->desc = open (".", O_SEARCH | O_CLOEXEC); O_CLOEXEC 68 maint/gnulib/lib/save-cwd.c cwd->desc = fd_safer_flag (cwd->desc, O_CLOEXEC); O_CLOEXEC 216 maint/gnulib/lib/spawn-pipe.c if (pipe2_safer (ifd, O_BINARY | O_CLOEXEC) < 0) O_CLOEXEC 219 maint/gnulib/lib/spawn-pipe.c if (pipe2_safer (ofd, O_BINARY | O_CLOEXEC) < 0) O_CLOEXEC 432 maint/gnulib/lib/supersede.c open_flags |= O_CLOEXEC; O_CLOEXEC 64 maint/gnulib/lib/truncate.c fd = open (filename, O_WRONLY | O_TRUNC | O_CLOEXEC); O_CLOEXEC 70 maint/gnulib/lib/truncate.c fd = open (filename, O_WRONLY | O_CLOEXEC); O_CLOEXEC 251 maint/gnulib/lib/utimecmp.c O_SEARCH | O_CLOEXEC | O_DIRECTORY); O_CLOEXEC 177 maint/gnulib/lib/vma-iter.c fd = open (filename, O_RDONLY | O_CLOEXEC); O_CLOEXEC 270 maint/gnulib/lib/vma-iter.c fd = open (filename, O_RDONLY | O_CLOEXEC); O_CLOEXEC 927 maint/gnulib/lib/vma-iter.c fd = open (fname, O_RDONLY | O_CLOEXEC); O_CLOEXEC 942 maint/gnulib/lib/vma-iter.c zero_fd = open ("/dev/zero", O_RDONLY | O_CLOEXEC, 0644); O_CLOEXEC 1052 maint/gnulib/lib/vma-iter.c fd = open (fname, O_RDONLY | O_CLOEXEC); O_CLOEXEC 1067 maint/gnulib/lib/vma-iter.c zero_fd = open ("/dev/zero", O_RDONLY | O_CLOEXEC, 0644); O_CLOEXEC 1171 maint/gnulib/lib/vma-iter.c fd = open (fname, O_RDONLY | O_CLOEXEC); O_CLOEXEC 1190 maint/gnulib/lib/vma-iter.c zero_fd = open ("/dev/zero", O_RDONLY | O_CLOEXEC, 0644); O_CLOEXEC 161 maint/gnulib/tests/test-dup-safer.c ASSERT (fd_safer_flag (dup_cloexec (fd), O_CLOEXEC) == fd + 1); O_CLOEXEC 85 maint/gnulib/tests/test-dup3.c #if O_CLOEXEC O_CLOEXEC 97 maint/gnulib/tests/test-dup3.c #if O_CLOEXEC O_CLOEXEC 99 maint/gnulib/tests/test-dup3.c o_flags |= O_CLOEXEC; O_CLOEXEC 75 maint/gnulib/tests/test-fcntl-h.c #if O_CLOEXEC O_CLOEXEC 76 maint/gnulib/tests/test-fcntl-h.c case O_CLOEXEC: O_CLOEXEC 92 maint/gnulib/tests/test-open.h if (O_CLOEXEC) O_CLOEXEC 102 maint/gnulib/tests/test-open.h fd = func (BASE "file", O_CLOEXEC | O_RDONLY); O_CLOEXEC 102 maint/gnulib/tests/test-pipe2.c for (use_cloexec = 0; use_cloexec <= !!O_CLOEXEC; use_cloexec++) O_CLOEXEC 111 maint/gnulib/tests/test-pipe2.c o_flags |= O_CLOEXEC;