Home
last modified time | relevance | path

Searched refs:FD_CLOEXEC (Results 1 – 25 of 54) sorted by relevance

123

/dragonfly/contrib/gcc-8.0/libbacktrace/
HDposix.c52 #ifndef FD_CLOEXEC
53 #define FD_CLOEXEC 1 macro
82 fcntl (descriptor, F_SETFD, FD_CLOEXEC); in backtrace_open()
/dragonfly/contrib/grep/lib/
HDfcntl.c237 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()
HDcloexec.c47 int newflags = (value ? flags | FD_CLOEXEC : flags & ~FD_CLOEXEC); in set_cloexec_flag()
/dragonfly/contrib/binutils-2.34/libiberty/
HDpex-unix.c395 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/
HDpex-unix.c420 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/
HDpex-unix.c419 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/
HDpex-unix.c420 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/
HDpex-unix.c418 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/
HDdescriptors.cc44 #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/
HDdescriptors.cc45 #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/
HDtc.os.h194 # 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/
HDbfdio.c41 #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/
HDbfdio.c39 #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/
HDbfdio.c39 #ifndef FD_CLOEXEC
40 #define FD_CLOEXEC 1 macro
78 fcntl (fd, F_SETFD, old | FD_CLOEXEC); in close_on_exec()
/dragonfly/lib/libkvm/
HDkvm.c187 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/
HDfdopen.c68 _fcntl(fd, F_SETFD, FD_CLOEXEC); /* silently ignore err */ in fdopen()
/dragonfly/lib/libc/gen/
HDposixshm.c88 if (_fcntl(fd, F_SETFD, FD_CLOEXEC) != 0 || in shm_open()
HDopendir.c112 if (_fcntl(fd, F_SETFD, FD_CLOEXEC) == -1 || in __fdopendir2()
HDpopen.c204 _fcntl(__sfileno(iop), F_SETFD, FD_CLOEXEC); in pclose()
/dragonfly/gnu/usr.bin/grep/libgreputils/
HDfcntl.h664 #ifndef FD_CLOEXEC
665 # define FD_CLOEXEC 1 macro
/dragonfly/lib/libc/sysvipc/
HDipc.c100 if (_fcntl(daemon_fd, F_SETFD, flags & FD_CLOEXEC) == -1) { in register_to_daemon()
/dragonfly/sys/sys/
HDfcntl.h214 #define FD_CLOEXEC 1 /* close-on-exec flag */ macro
/dragonfly/contrib/dhcpcd/compat/
HDpidfile.c213 fcntl(fd, F_SETFL, opts | FD_CLOEXEC) == -1) in pidfile_lock()
/dragonfly/contrib/libarchive/libarchive/
HDarchive_util.c577 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/
HDif.c993 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()

123