Home
last modified time | relevance | path

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

1234567

/netbsd/external/gpl3/gdb/dist/gnulib/import/
H A Dfcntl.c394 #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 Dcloexec.c41 #ifdef F_SETFD in set_cloexec_flag()
50 || fcntl (desc, F_SETFD, newflags) != -1) in set_cloexec_flag()
/netbsd/external/gpl3/gdb.old/dist/gnulib/import/
H A Dfcntl.c394 #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 Dcloexec.c41 #ifdef F_SETFD in set_cloexec_flag()
50 || fcntl (desc, F_SETFD, newflags) != -1) in set_cloexec_flag()
/netbsd/usr.bin/chpass/
H A 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/external/gpl2/gmake/dist/
H A Djob.h29 #if !defined F_SETFD
35 # define CLOSE_ON_EXEC(_d) (void) fcntl ((_d), F_SETFD, FD_CLOEXEC)
/netbsd/lib/libc/db/db/
H A Ddbfile.c62 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) in __dbopen()
106 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) in __dbtemp()
/netbsd/external/gpl3/gdb/dist/libiberty/
H A 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/external/gpl3/binutils.old/dist/libiberty/
H A 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/external/gpl3/binutils/dist/libiberty/
H A 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/external/gpl3/gcc.old/dist/libiberty/
H A 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/external/gpl3/gdb.old/dist/libiberty/
H A 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/external/gpl3/gcc/dist/libiberty/
H A 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/external/bsd/nsd/dist/
H A Dpopen3.c53 fcntl(fdsig[0], F_SETFD, FD_CLOEXEC) == -1 || in popen3()
54 fcntl(fdsig[1], F_SETFD, FD_CLOEXEC) == -1) in popen3()
/netbsd/bin/sh/
H A Dredir.c87 #define CLOEXEC(fd) (fcntl((fd), F_SETFD, fcntl((fd),F_GETFD) | FD_CLOEXEC))
256 if (fcntl(fd, F_SETFD, 0) < 0) in redirect()
301 (void)fcntl(i, F_SETFD, FD_CLOEXEC); in redirect()
434 (void)fcntl(f, F_SETFD, FD_CLOEXEC); in openredirect()
571 fcntl(newfd, F_SETFD, fcntl(newfd,F_GETFD) | FD_CLOEXEC); in copyfd()
662 (void)fcntl(fd, F_SETFD, FD_CLOEXEC); in to_upper_fd()
980 if (cloexec != -1 && fcntl(fd, F_SETFD, cloexec) == -1) in setone()
/netbsd/tests/lib/librumpclient/
H A 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()
/netbsd/external/bsd/blocklist/port/
H A Dpopenve.c96 fcntl(pdes[0], F_SETFD, FD_CLOEXEC); in pdes_get()
97 fcntl(pdes[1], F_SETFD, FD_CLOEXEC); in pdes_get()
/netbsd/external/gpl3/gdb/dist/gold/
H A Ddescriptors.cc53 #ifdef F_SETFD in set_close_on_exec()
54 fcntl(fd, F_SETFD, FD_CLOEXEC); in set_close_on_exec()
/netbsd/external/gpl3/binutils/dist/gold/
H A Ddescriptors.cc53 #ifdef F_SETFD in set_close_on_exec()
54 fcntl(fd, F_SETFD, FD_CLOEXEC); in set_close_on_exec()
/netbsd/external/gpl3/binutils.old/dist/gold/
H A Ddescriptors.cc53 #ifdef F_SETFD in set_close_on_exec()
54 fcntl(fd, F_SETFD, FD_CLOEXEC); in set_close_on_exec()
/netbsd/external/gpl3/gdb.old/dist/gold/
H A Ddescriptors.cc53 #ifdef F_SETFD in set_close_on_exec()
54 fcntl(fd, F_SETFD, FD_CLOEXEC); in set_close_on_exec()
/netbsd/external/bsd/ntp/dist/lib/isc/win32/
H A Dunistd.h31 #define F_SETFD 2 macro
/netbsd/external/mpl/bind/dist/lib/isc/win32/
H A Dunistd.h25 #define F_SETFD 2 macro
/netbsd/sys/external/isc/libsodium/dist/src/libsodium/randombytes/sysrandom/
H A Drandombytes_sysrandom.c190 # if defined(F_SETFD) && defined(FD_CLOEXEC) in randombytes_sysrandom_random_dev_open()
191 (void) fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in randombytes_sysrandom_random_dev_open()
/netbsd/external/ibm-public/postfix/dist/src/util/
H A Dclose_on_exec.c59 if (fcntl(fd, F_SETFD, on ? flags | PATTERN : flags & ~PATTERN) < 0)

1234567