| /dragonfly/contrib/gcc-8.0/libbacktrace/ |
| HD | posix.c | 52 #ifndef FD_CLOEXEC 53 #define FD_CLOEXEC 1 macro 82 fcntl (descriptor, F_SETFD, FD_CLOEXEC); in backtrace_open()
|
| /dragonfly/contrib/grep/lib/ |
| HD | fcntl.c | 237 result = (flags & HANDLE_FLAG_INHERIT) ? 0 : FD_CLOEXEC; in fcntl() 532 if (flags < 0 || fcntl (result, F_SETFD, flags | FD_CLOEXEC) == -1) in rpl_fcntl_DUPFD_CLOEXEC() 580 result = (ulMode & OPEN_FLAGS_NOINHERIT) ? FD_CLOEXEC : 0; in klibc_fcntl() 584 if (arg & ~FD_CLOEXEC) in klibc_fcntl() 590 if (arg & FD_CLOEXEC) in klibc_fcntl()
|
| HD | cloexec.c | 47 int newflags = (value ? flags | FD_CLOEXEC : flags & ~FD_CLOEXEC); in set_cloexec_flag()
|
| /dragonfly/contrib/binutils-2.34/libiberty/ |
| HD | pex-unix.c | 395 if ((flags & FD_CLOEXEC) == 0 && fcntl (old_fd, F_SETFD, FD_CLOEXEC) < 0) in save_and_install_fd() 411 if (fcntl (new_fd, F_SETFD, FD_CLOEXEC) < 0) in save_and_install_fd() 442 if (flags & FD_CLOEXEC) in restore_fd() 450 if (flags == FD_CLOEXEC) in restore_fd() 595 if (fcntl (pipes[1], F_SETFD, FD_CLOEXEC) == -1) in pex_unix_exec_child() 811 if (fcntl (fd, F_SETFD, FD_CLOEXEC) < 0) in pex_unix_fdopenw()
|
| /dragonfly/contrib/gdb-7/libiberty/ |
| HD | pex-unix.c | 420 if ((flags & FD_CLOEXEC) == 0 && fcntl (old_fd, F_SETFD, FD_CLOEXEC) < 0) in save_and_install_fd() 436 if (fcntl (new_fd, F_SETFD, FD_CLOEXEC) < 0) in save_and_install_fd() 467 if (flags & FD_CLOEXEC) in restore_fd() 475 if (flags == FD_CLOEXEC) in restore_fd() 770 if (fcntl (fd, F_SETFD, FD_CLOEXEC) < 0) in pex_unix_fdopenw()
|
| /dragonfly/contrib/gcc-8.0/libiberty/ |
| HD | pex-unix.c | 419 if ((flags & FD_CLOEXEC) == 0 && fcntl (old_fd, F_SETFD, FD_CLOEXEC) < 0) in save_and_install_fd() 435 if (fcntl (new_fd, F_SETFD, FD_CLOEXEC) < 0) in save_and_install_fd() 466 if (flags & FD_CLOEXEC) in restore_fd() 474 if (flags == FD_CLOEXEC) in restore_fd() 769 if (fcntl (fd, F_SETFD, FD_CLOEXEC) < 0) in pex_unix_fdopenw()
|
| /dragonfly/contrib/binutils-2.27/libiberty/ |
| HD | pex-unix.c | 420 if ((flags & FD_CLOEXEC) == 0 && fcntl (old_fd, F_SETFD, FD_CLOEXEC) < 0) in save_and_install_fd() 436 if (fcntl (new_fd, F_SETFD, FD_CLOEXEC) < 0) in save_and_install_fd() 467 if (flags & FD_CLOEXEC) in restore_fd() 475 if (flags == FD_CLOEXEC) in restore_fd() 770 if (fcntl (fd, F_SETFD, FD_CLOEXEC) < 0) in pex_unix_fdopenw()
|
| /dragonfly/contrib/gcc-4.7/libiberty/ |
| HD | pex-unix.c | 418 if ((flags & FD_CLOEXEC) == 0 && fcntl (old_fd, F_SETFD, FD_CLOEXEC) < 0) in save_and_install_fd() 434 if (fcntl (new_fd, F_SETFD, FD_CLOEXEC) < 0) in save_and_install_fd() 465 if (flags & FD_CLOEXEC) in restore_fd() 473 if (flags == FD_CLOEXEC) in restore_fd() 768 if (fcntl (fd, F_SETFD, FD_CLOEXEC) < 0) in pex_unix_fdopenw()
|
| /dragonfly/contrib/binutils-2.27/gold/ |
| HD | descriptors.cc | 44 #ifndef FD_CLOEXEC 45 #define FD_CLOEXEC 1 macro 53 fcntl(fd, F_SETFD, FD_CLOEXEC); in set_close_on_exec()
|
| /dragonfly/contrib/binutils-2.34/gold/ |
| HD | descriptors.cc | 45 #ifndef FD_CLOEXEC 46 #define FD_CLOEXEC 1 macro 54 fcntl(fd, F_SETFD, FD_CLOEXEC); in set_close_on_exec()
|
| /dragonfly/contrib/tcsh-6/ |
| HD | tc.os.h | 194 # ifndef FD_CLOEXEC 195 # define FD_CLOEXEC 1 macro 197 # define close_on_exec(fd, v) fcntl((fd), F_SETFD, ((v) ? FD_CLOEXEC : 0))
|
| /dragonfly/contrib/gdb-7/bfd/ |
| HD | bfdio.c | 41 #ifndef FD_CLOEXEC 42 #define FD_CLOEXEC 1 macro 80 fcntl (fd, F_SETFD, old | FD_CLOEXEC); in close_on_exec()
|
| /dragonfly/contrib/binutils-2.27/bfd/ |
| HD | bfdio.c | 39 #ifndef FD_CLOEXEC 40 #define FD_CLOEXEC 1 macro 78 fcntl (fd, F_SETFD, old | FD_CLOEXEC); in close_on_exec()
|
| /dragonfly/contrib/binutils-2.34/bfd/ |
| HD | bfdio.c | 39 #ifndef FD_CLOEXEC 40 #define FD_CLOEXEC 1 macro 78 fcntl (fd, F_SETFD, old | FD_CLOEXEC); in close_on_exec()
|
| /dragonfly/lib/libkvm/ |
| HD | kvm.c | 187 if (fcntl(kd->pmfd, F_SETFD, FD_CLOEXEC) < 0) { in _kvm_open() 205 if (fcntl(kd->vmfd, F_SETFD, FD_CLOEXEC) < 0) { in _kvm_open() 220 if (fcntl(kd->nlfd, F_SETFD, FD_CLOEXEC) < 0) { in _kvm_open()
|
| /dragonfly/lib/libc/stdio/ |
| HD | fdopen.c | 68 _fcntl(fd, F_SETFD, FD_CLOEXEC); /* silently ignore err */ in fdopen()
|
| /dragonfly/lib/libc/gen/ |
| HD | posixshm.c | 88 if (_fcntl(fd, F_SETFD, FD_CLOEXEC) != 0 || in shm_open()
|
| HD | opendir.c | 112 if (_fcntl(fd, F_SETFD, FD_CLOEXEC) == -1 || in __fdopendir2()
|
| HD | popen.c | 204 _fcntl(__sfileno(iop), F_SETFD, FD_CLOEXEC); in pclose()
|
| /dragonfly/gnu/usr.bin/grep/libgreputils/ |
| HD | fcntl.h | 664 #ifndef FD_CLOEXEC 665 # define FD_CLOEXEC 1 macro
|
| /dragonfly/lib/libc/sysvipc/ |
| HD | ipc.c | 100 if (_fcntl(daemon_fd, F_SETFD, flags & FD_CLOEXEC) == -1) { in register_to_daemon()
|
| /dragonfly/sys/sys/ |
| HD | fcntl.h | 214 #define FD_CLOEXEC 1 /* close-on-exec flag */ macro
|
| /dragonfly/contrib/dhcpcd/compat/ |
| HD | pidfile.c | 213 fcntl(fd, F_SETFL, opts | FD_CLOEXEC) == -1) in pidfile_lock()
|
| /dragonfly/contrib/libarchive/libarchive/ |
| HD | archive_util.c | 577 if (flags != -1 && (flags & FD_CLOEXEC) == 0) in __archive_ensure_cloexec_flag() 578 fcntl(fd, F_SETFD, flags | FD_CLOEXEC); in __archive_ensure_cloexec_flag()
|
| /dragonfly/contrib/dhcpcd/src/ |
| HD | if.c | 993 fcntl(s, F_SETFD, xflags | FD_CLOEXEC) == -1)) in xsocket() 1037 fcntl(fd[0], F_SETFD, xflags | FD_CLOEXEC) == -1)) in xsocketpair() 1040 fcntl(fd[1], F_SETFD, xflags | FD_CLOEXEC) == -1)) in xsocketpair()
|