| /netbsd-src/tests/lib/libc/sys/ |
| H A D | t_socketpair.c | 77 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0); in run() 78 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0); in run() 80 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0); in run() 81 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0); in run()
|
| H A D | t_pipe2.c | 65 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0); in run() 66 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0); in run() 68 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0); in run() 69 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0); in run()
|
| H A D | t_timerfd.c | 769 ATF_REQUIRE((fcntl(tfd, F_GETFD) & FD_CLOEXEC) == 0); 782 ATF_REQUIRE((fcntl(tfd, F_GETFD) & FD_CLOEXEC) != 0); 784 ATF_REQUIRE((fcntl(tfd, F_GETFD) & FD_CLOEXEC) == 0); 785 ATF_REQUIRE(fcntl(tfd, F_SETFD, FD_CLOEXEC) == 0); 786 ATF_REQUIRE((fcntl(tfd, F_GETFD) & FD_CLOEXEC) != 0);
|
| H A D | t_eventfd.c | 795 ATF_REQUIRE((fcntl(efd, F_GETFD) & FD_CLOEXEC) == 0); in ATF_TC_BODY() 808 ATF_REQUIRE((fcntl(efd, F_GETFD) & FD_CLOEXEC) != 0); in ATF_TC_BODY() 810 ATF_REQUIRE((fcntl(efd, F_GETFD) & FD_CLOEXEC) == 0); in ATF_TC_BODY() 811 ATF_REQUIRE(fcntl(efd, F_SETFD, FD_CLOEXEC) == 0); in ATF_TC_BODY() 812 ATF_REQUIRE((fcntl(efd, F_GETFD) & FD_CLOEXEC) != 0); in ATF_TC_BODY()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libbacktrace/ |
| H A D | posix.c | 52 #ifndef FD_CLOEXEC 53 #define FD_CLOEXEC 1 macro 82 fcntl (descriptor, F_SETFD, FD_CLOEXEC); in backtrace_open()
|
| /netbsd-src/external/gpl3/gcc/dist/libbacktrace/ |
| H A D | posix.c | 52 #ifndef FD_CLOEXEC 53 #define FD_CLOEXEC 1 macro 86 fcntl (descriptor, F_SETFD, FD_CLOEXEC); in backtrace_open()
|
| /netbsd-src/external/gpl3/gdb/dist/gnulib/import/m4/ |
| H A D | dup2.m4 | 36 #ifdef FD_CLOEXEC 37 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1) 42 #ifdef FD_CLOEXEC 43 if (fcntl (1, F_GETFD) != FD_CLOEXEC) 78 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
|
| /netbsd-src/external/gpl2/gmake/dist/ |
| H A D | job.h | 32 # ifndef FD_CLOEXEC 33 # define FD_CLOEXEC 1 macro 35 # define CLOSE_ON_EXEC(_d) (void) fcntl ((_d), F_SETFD, FD_CLOEXEC)
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/posix/ |
| H A D | fcntl.d | 149 enum FD_CLOEXEC = 1; in version() local 413 enum FD_CLOEXEC = 1; in version() local 461 enum FD_CLOEXEC = 1; 520 enum FD_CLOEXEC = 1; 589 enum FD_CLOEXEC = 1; 682 enum FD_CLOEXEC = 1; 737 enum FD_CLOEXEC = 1;
|
| /netbsd-src/external/gpl3/gdb/dist/gnulib/import/ |
| H A D | fcntl.c | 237 result = (flags & HANDLE_FLAG_INHERIT) ? 0 : FD_CLOEXEC; in fcntl() 534 if (flags < 0 || fcntl (result, F_SETFD, flags | FD_CLOEXEC) == -1) in rpl_fcntl_DUPFD_CLOEXEC() 582 result = (ulMode & OPEN_FLAGS_NOINHERIT) ? FD_CLOEXEC : 0; in klibc_fcntl() 586 if (arg & ~FD_CLOEXEC) in klibc_fcntl() 592 if (arg & FD_CLOEXEC) in klibc_fcntl()
|
| H A D | cloexec.c | 47 int newflags = (value ? flags | FD_CLOEXEC : flags & ~FD_CLOEXEC); in set_cloexec_flag()
|
| /netbsd-src/external/gpl3/gcc/dist/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() 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()
|
| /netbsd-src/external/gpl3/binutils.old/dist/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() 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()
|
| /netbsd-src/external/gpl3/gcc.old/dist/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() 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()
|
| /netbsd-src/external/gpl3/binutils.old/dist/gold/ |
| H A D | descriptors.cc | 45 #ifndef FD_CLOEXEC 46 #define FD_CLOEXEC 1 macro 54 fcntl(fd, F_SETFD, FD_CLOEXEC); in set_close_on_exec()
|
| /netbsd-src/external/gpl3/binutils/dist/gold/ |
| H A D | descriptors.cc | 45 #ifndef FD_CLOEXEC 46 #define FD_CLOEXEC 1 macro 54 fcntl(fd, F_SETFD, FD_CLOEXEC); in set_close_on_exec()
|
| /netbsd-src/lib/libc/db/db/ |
| H A 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/binutils/dist/libiberty/ |
| H A 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() 445 if (flags & FD_CLOEXEC) in restore_fd() 453 if (flags == FD_CLOEXEC) 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/bsd/nsd/dist/ |
| H A D | popen3.c | 53 fcntl(fdsig[0], F_SETFD, FD_CLOEXEC) == -1 || in popen3() 54 fcntl(fdsig[1], F_SETFD, FD_CLOEXEC) == -1) in popen3()
|
| /netbsd-src/tests/lib/librumpclient/ |
| H A 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()
|
| /netbsd-src/external/bsd/blocklist/port/ |
| H A D | popenve.c | 96 fcntl(pdes[0], F_SETFD, FD_CLOEXEC); in pdes_get() 97 fcntl(pdes[1], F_SETFD, FD_CLOEXEC); in pdes_get()
|
| /netbsd-src/tests/kernel/ |
| H A D | t_epoll.c | 76 ATF_REQUIRE_MSG((fcntl(fd, F_GETFD) & FD_CLOEXEC) == 0, in ATF_TC_BODY() 80 ATF_REQUIRE_MSG((fcntl(fd, F_GETFD) & FD_CLOEXEC) != 0, in ATF_TC_BODY()
|
| /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/src/filesystem/ |
| H A D | dir-common.h | 201 #if ! defined O_CLOEXEC && defined FD_CLOEXEC in _GLIBCXX_VISIBILITY() 203 if (flags == -1 || ::fcntl(fd, F_SETFD, flags | FD_CLOEXEC) == -1) in _GLIBCXX_VISIBILITY()
|
| /netbsd-src/sys/external/isc/libsodium/dist/src/libsodium/randombytes/sysrandom/ |
| H A D | randombytes_sysrandom.c | 190 # 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-src/external/ibm-public/postfix/dist/src/util/ |
| H A D | close_on_exec.c | 47 #define PATTERN FD_CLOEXEC
|