Home
last modified time | relevance | path

Searched refs:F_SETFD (Results 1 – 25 of 108) sorted by relevance

12345

/netbsd/src/usr.bin/chpass/
Dchpass.c228 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/
Ddbfile.c62 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/
Dpex-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()
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/
Dpex-unix.c398 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/
Dpex-unix.c398 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/
Dh_execthr.c168 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()
Dh_exec.c103 if (rump_sys_fcntl(s1, F_SETFD, FD_CLOEXEC) == -1) { in main()
/netbsd/src/bin/sh/
Dredir.c87 #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/
Ddescriptors.cc53 #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/
Dclose_on_exec.c57 if (fcntl(fd, F_SETFD, on ? flags | PATTERN : flags & ~PATTERN) < 0) in close_on_exec()
Ddup2_pass_on_exec.c45 DO(fcntl(0, F_SETFD, 1)); in main()
/netbsd/src/tests/kernel/
Dh_fexecve.c46 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) in main()
/netbsd/src/external/bsd/file/dist/src/
Dfuncs.c906 # 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/
Djob.c663 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/
Dcloexec.c49 if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1) in rk_cloexec()
/netbsd/src/lib/libc/compat/sys/
Dcompat_dup3.c60 return fcntl(newfd, F_SETFD, FD_CLOEXEC); in dup3()
/netbsd/src/distrib/utils/libhack/
Dopendir.c71 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1 ||
/netbsd/src/external/gpl2/lvm2/dist/daemons/clvmd/
Dtcp-comms.c102 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/
Dmisc.c133 fcntl(fd, F_SETFD, FD_CLOEXEC); in close_on_exec()
/netbsd/src/lib/libc/gen/
Dopendir.c108 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) in _fdopendir()
/netbsd/src/external/gpl2/xcvs/dist/src/
Drun.c619 #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/
Dmisc.c349 (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/
Dlcl_sv.c274 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/
Dclnt_simple.c196 (void)fcntl(fd, F_SETFD, FD_CLOEXEC); in rpc_call()
/netbsd/src/external/gpl2/xcvs/dist/contrib/
Dvalidate_repo.in128 use Fcntl qw( F_GETFD F_SETFD );
609 fcntl( $fh, F_SETFD, 0 )

12345