| /netbsd/src/usr.bin/chpass/ |
| D | chpass.c | 228 if (dfd < 0 || fcntl(dfd, F_SETFD, 1) < 0) in main() 273 if (fcntl(tfd, F_SETFD, 1) < 0) in main() 277 if (pfd < 0 || fcntl(pfd, F_SETFD, 1) < 0) in main()
|
| /netbsd/src/lib/libc/db/db/ |
| D | dbfile.c | 62 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) in __dbopen() 106 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) in __dbtemp()
|
| /netbsd/src/external/gpl3/gcc/dist/libiberty/ |
| 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()
|
| /netbsd/src/external/gpl3/binutils/dist/libiberty/ |
| D | pex-unix.c | 398 if ((flags & FD_CLOEXEC) == 0 && fcntl (old_fd, F_SETFD, FD_CLOEXEC) < 0) in save_and_install_fd() 414 if (fcntl (new_fd, F_SETFD, FD_CLOEXEC) < 0) in save_and_install_fd() 447 return fcntl (old_fd, F_SETFD, flags); in restore_fd() 463 if (flags != 0 && fcntl (old_fd, F_SETFD, flags) < 0) in restore_fd() 763 if (fcntl (pipes[1], F_SETFD, FD_CLOEXEC) == -1) in pex_unix_exec_child() 979 if (fcntl (fd, F_SETFD, FD_CLOEXEC) < 0) in pex_unix_fdopenw()
|
| /netbsd/src/external/gpl3/gdb/dist/libiberty/ |
| D | pex-unix.c | 398 if ((flags & FD_CLOEXEC) == 0 && fcntl (old_fd, F_SETFD, FD_CLOEXEC) < 0) in save_and_install_fd() 414 if (fcntl (new_fd, F_SETFD, FD_CLOEXEC) < 0) in save_and_install_fd() 447 return fcntl (old_fd, F_SETFD, flags); in restore_fd() 463 if (flags != 0 && fcntl (old_fd, F_SETFD, flags) < 0) in restore_fd() 763 if (fcntl (pipes[1], F_SETFD, FD_CLOEXEC) == -1) in pex_unix_exec_child() 979 if (fcntl (fd, F_SETFD, FD_CLOEXEC) < 0) in pex_unix_fdopenw()
|
| /netbsd/src/tests/lib/librumpclient/ |
| D | h_execthr.c | 168 if (rump_sys_fcntl(p1[0], F_SETFD, FD_CLOEXEC) == -1) in main() 170 if (rump_sys_fcntl(p1[1], F_SETFD, FD_CLOEXEC) == -1) in main()
|
| D | h_exec.c | 103 if (rump_sys_fcntl(s1, F_SETFD, FD_CLOEXEC) == -1) { in main()
|
| /netbsd/src/bin/sh/ |
| D | redir.c | 87 #define CLOEXEC(fd) (fcntl((fd), F_SETFD, \ 295 if (fcntl(fd, F_SETFD, (fcntl_int)0) < 0) in redirect() 352 (void)fcntl(i, F_SETFD, (fcntl_int) FD_CLOEXEC); in redirect() 488 (void)fcntl(f, F_SETFD, (fcntl_int) FD_CLOEXEC); in openredirect() 647 fcntl(newfd, F_SETFD, in copyfd() 763 (void)fcntl(fd, F_SETFD, (fcntl_int) FD_CLOEXEC); in to_upper_fd() 1085 (cloexec != -1 && fcntl(fd, F_SETFD, (fcntl_int) cloexec) == -1)) in setone()
|
| /netbsd/src/external/gpl3/binutils/dist/gold/ |
| D | descriptors.cc | 53 #ifdef F_SETFD in set_close_on_exec() 54 fcntl(fd, F_SETFD, FD_CLOEXEC); in set_close_on_exec()
|
| /netbsd/src/external/ibm-public/postfix/dist/src/util/ |
| D | close_on_exec.c | 57 if (fcntl(fd, F_SETFD, on ? flags | PATTERN : flags & ~PATTERN) < 0) in close_on_exec()
|
| D | dup2_pass_on_exec.c | 45 DO(fcntl(0, F_SETFD, 1)); in main()
|
| /netbsd/src/tests/kernel/ |
| D | h_fexecve.c | 46 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) in main()
|
| /netbsd/src/external/bsd/file/dist/src/ |
| D | funcs.c | 906 # ifdef F_SETFD in file_pipe_closexec() 907 (void)fcntl(fds[0], F_SETFD, FD_CLOEXEC); in file_pipe_closexec() 908 (void)fcntl(fds[1], F_SETFD, FD_CLOEXEC); in file_pipe_closexec() 916 #ifdef F_SETFD in file_clear_closexec() 917 return fcntl(fd, F_SETFD, 0); in file_clear_closexec()
|
| /netbsd/src/usr.bin/make/ |
| D | job.c | 663 if (fcntl(job->inPipe, F_SETFD, FD_CLOEXEC) == -1) in JobCreatePipe() 665 if (fcntl(job->outPipe, F_SETFD, FD_CLOEXEC) == -1) in JobCreatePipe() 1557 if (fcntl(STDIN_FILENO, F_SETFD, 0) == -1) in JobExec() 1564 if (fcntl(tokenPoolJob.inPipe, F_SETFD, 0) == -1) in JobExec() 1567 if (fcntl(tokenPoolJob.outPipe, F_SETFD, 0) == -1) in JobExec() 1585 if (fcntl(STDOUT_FILENO, F_SETFD, 0) == -1) in JobExec() 1705 (void)fcntl(fileno(job->cmdFILE), F_SETFD, FD_CLOEXEC); in JobWriteShellCommands() 2766 (void)fcntl(jp_0, F_SETFD, FD_CLOEXEC); in TokenPool_InitClient() 2767 (void)fcntl(jp_1, F_SETFD, FD_CLOEXEC); in TokenPool_InitClient()
|
| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/roken/ |
| D | cloexec.c | 49 if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1) in rk_cloexec()
|
| /netbsd/src/lib/libc/compat/sys/ |
| D | compat_dup3.c | 60 return fcntl(newfd, F_SETFD, FD_CLOEXEC); in dup3()
|
| /netbsd/src/distrib/utils/libhack/ |
| D | opendir.c | 71 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1 ||
|
| /netbsd/src/external/gpl2/lvm2/dist/daemons/clvmd/ |
| D | tcp-comms.c | 102 fcntl(listen_fd, F_SETFD, 1); in init_comms() 362 fcntl(fd, F_SETFD, 1); in gulm_connect_csid()
|
| /netbsd/src/crypto/dist/ipsec-tools/src/racoon/ |
| D | misc.c | 133 fcntl(fd, F_SETFD, FD_CLOEXEC); in close_on_exec()
|
| /netbsd/src/lib/libc/gen/ |
| D | opendir.c | 108 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) in _fdopendir()
|
| /netbsd/src/external/gpl2/xcvs/dist/src/ |
| D | run.c | 619 #ifdef F_SETFD in close_on_exec() 620 if (fcntl (fd, F_SETFD, 1) == -1) in close_on_exec()
|
| /netbsd/src/external/bsd/cron/dist/ |
| D | misc.c | 349 (void) fcntl(fd, F_SETFD, 1); in acquire_daemonlock() 474 (void) fcntl(LogFD, F_SETFD, FD_CLOEXEC); in log_it()
|
| /netbsd/src/external/bsd/libbind/dist/irs/ |
| D | lcl_sv.c | 274 if (fcntl((*pvt->dbh->fd)(pvt->dbh), F_SETFD, 1) < 0) { in sv_rewind() 283 if (fcntl(fileno(pvt->sv.fp), F_SETFD, 1) < 0) { in sv_rewind()
|
| /netbsd/src/lib/libc/rpc/ |
| D | clnt_simple.c | 196 (void)fcntl(fd, F_SETFD, FD_CLOEXEC); in rpc_call()
|
| /netbsd/src/external/gpl2/xcvs/dist/contrib/ |
| D | validate_repo.in | 128 use Fcntl qw( F_GETFD F_SETFD ); 609 fcntl( $fh, F_SETFD, 0 )
|