/dragonfly/lib/libc/gen/ |
H A D | popen.c | 125 _fcntl(pdes[1], F_SETFD, 0); in popen() 134 _fcntl(pdes[0], F_SETFD, 0); in popen() 167 _fcntl(fd, F_SETFD, 0); in popen() 204 _fcntl(__sfileno(iop), F_SETFD, FD_CLOEXEC); in pclose()
|
H A D | wordexp.c | 174 _fcntl(pdes[1], F_SETFD, 0)) < 0) in we_askshell() 176 if (_fcntl(pdesw[0], F_SETFD, 0) < 0) in we_askshell()
|
H A D | posix_spawn.c | 154 if (_fcntl(fae->fae_fildes, F_SETFD, 0) == -1) in process_file_actions_entry() 161 if (_fcntl(fae->fae_newfildes, F_SETFD, 0) == -1) in process_file_actions_entry()
|
/dragonfly/contrib/diffutils/lib/ |
H A D | fcntl.c | 393 #ifdef F_SETFD /* POSIX */ in fcntl() 394 case F_SETFD: in fcntl() 467 if (0 <= result && fcntl (fd, F_SETFD, flags) == -1) in rpl_fcntl_DUPFD() 531 if (flags < 0 || fcntl (result, F_SETFD, flags | FD_CLOEXEC) == -1) in rpl_fcntl_DUPFD_CLOEXEC() 582 case F_SETFD:
|
H A D | cloexec.c | 41 #ifdef F_SETFD in set_cloexec_flag() 50 || fcntl (desc, F_SETFD, newflags) != -1) in set_cloexec_flag()
|
/dragonfly/contrib/grep/lib/ |
H A D | fcntl.c | 394 #ifdef F_SETFD /* POSIX */ in fcntl() 395 case F_SETFD: in fcntl() 468 if (0 <= result && fcntl (fd, F_SETFD, flags) == -1) in rpl_fcntl_DUPFD() 532 if (flags < 0 || fcntl (result, F_SETFD, flags | FD_CLOEXEC) == -1) in rpl_fcntl_DUPFD_CLOEXEC() 583 case F_SETFD: in klibc_fcntl()
|
H A D | cloexec.c | 41 #ifdef F_SETFD in set_cloexec_flag() 50 || fcntl (desc, F_SETFD, newflags) != -1) in set_cloexec_flag()
|
/dragonfly/usr.bin/mail/ |
H A D | popen.c | 69 fcntl(fileno(fp), F_SETFD, 1); in Fopen() 81 fcntl(fileno(fp), F_SETFD, 1); in Fdopen() 104 fcntl(p[READ], F_SETFD, 1); in Popen() 105 fcntl(p[WRITE], F_SETFD, 1); in Popen()
|
/dragonfly/contrib/binutils-2.34/libiberty/ |
H A D | 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() 444 return fcntl (old_fd, F_SETFD, flags); in restore_fd() 460 if (flags != 0 && fcntl (old_fd, F_SETFD, flags) < 0) 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/binutils-2.27/libiberty/ |
H A D | 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() 469 return fcntl (old_fd, F_SETFD, flags); in restore_fd() 485 if (flags != 0 && fcntl (old_fd, F_SETFD, flags) < 0) in restore_fd() 770 if (fcntl (fd, F_SETFD, FD_CLOEXEC) < 0) in pex_unix_fdopenw()
|
/dragonfly/contrib/gdb-7/libiberty/ |
H A D | 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() 469 return fcntl (old_fd, F_SETFD, flags); in restore_fd() 485 if (flags != 0 && fcntl (old_fd, F_SETFD, flags) < 0) in restore_fd() 770 if (fcntl (fd, F_SETFD, FD_CLOEXEC) < 0) in pex_unix_fdopenw()
|
/dragonfly/contrib/gcc-4.7/libiberty/ |
H A D | 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() 467 return fcntl (old_fd, F_SETFD, flags); in restore_fd() 483 if (flags != 0 && fcntl (old_fd, F_SETFD, flags) < 0) in restore_fd() 768 if (fcntl (fd, F_SETFD, FD_CLOEXEC) < 0) in pex_unix_fdopenw()
|
/dragonfly/contrib/gcc-8.0/libiberty/ |
H A D | 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() 468 return fcntl (old_fd, F_SETFD, flags); in restore_fd() 484 if (flags != 0 && fcntl (old_fd, F_SETFD, flags) < 0) in restore_fd() 769 if (fcntl (fd, F_SETFD, FD_CLOEXEC) < 0) in pex_unix_fdopenw()
|
/dragonfly/contrib/binutils-2.34/gold/ |
H A D | descriptors.cc | 53 #ifdef F_SETFD in set_close_on_exec() 54 fcntl(fd, F_SETFD, FD_CLOEXEC); in set_close_on_exec()
|
/dragonfly/contrib/binutils-2.27/gold/ |
H A D | descriptors.cc | 52 #ifdef F_SETFD in set_close_on_exec() 53 fcntl(fd, F_SETFD, FD_CLOEXEC); in set_close_on_exec()
|
/dragonfly/contrib/file/src/ |
H A D | funcs.c | 852 # ifdef F_SETFD in file_pipe_closexec() 853 (void)fcntl(fds[0], F_SETFD, FD_CLOEXEC); in file_pipe_closexec() 854 (void)fcntl(fds[1], F_SETFD, FD_CLOEXEC); in file_pipe_closexec() 862 #ifdef F_SETFD in file_clear_closexec() 863 return fcntl(fd, F_SETFD, 0); in file_clear_closexec()
|
/dragonfly/usr.bin/window/ |
H A D | wwpty.c | 56 (void) fcntl(w->ww_pty, F_SETFD, 1); in wwgetpty()
|
H A D | wwopen.c | 107 (void) fcntl(d[0], F_SETFD, 1); in wwopen() 108 (void) fcntl(d[1], F_SETFD, 1); in wwopen()
|
H A D | context.c | 94 (void) fcntl(fileno(cx.x_fp), F_SETFD, 1); in cx_beginfile()
|
/dragonfly/lib/libkvm/ |
H A D | 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/contrib/bmake/ |
H A D | job.c | 575 if (fcntl(job->inPipe, F_SETFD, FD_CLOEXEC) == -1) in JobCreatePipe() 577 if (fcntl(job->outPipe, F_SETFD, FD_CLOEXEC) == -1) in JobCreatePipe() 1480 if (fcntl(0, F_SETFD, 0) == -1) in JobExec() 1489 if (fcntl(tokenWaitJob.inPipe, F_SETFD, 0) == -1) in JobExec() 1492 if (fcntl(tokenWaitJob.outPipe, F_SETFD, 0) == -1) in JobExec() 1510 if (fcntl(1, F_SETFD, 0) == -1) in JobExec() 1632 (void)fcntl(fileno(job->cmdFILE), F_SETFD, FD_CLOEXEC); in JobWriteShellCommands() 2846 (void)fcntl(jp_0, F_SETFD, FD_CLOEXEC); in Job_ServerStart() 2847 (void)fcntl(jp_1, F_SETFD, FD_CLOEXEC); in Job_ServerStart()
|
/dragonfly/contrib/gcc-8.0/libbacktrace/ |
H A D | posix.c | 82 fcntl (descriptor, F_SETFD, FD_CLOEXEC); in backtrace_open()
|
/dragonfly/lib/libc/stdio/ |
H A D | fdopen.c | 68 _fcntl(fd, F_SETFD, FD_CLOEXEC); /* silently ignore err */ in fdopen()
|
/dragonfly/contrib/tcsh-6/ |
H A D | tc.os.h | 193 # ifdef F_SETFD 197 # define close_on_exec(fd, v) fcntl((fd), F_SETFD, ((v) ? FD_CLOEXEC : 0))
|
/dragonfly/contrib/lvm2/dist/daemons/clvmd/ |
H A D | tcp-comms.c | 102 fcntl(listen_fd, F_SETFD, 1); in init_comms() 362 fcntl(fd, F_SETFD, 1); in gulm_connect_csid()
|