Home
last modified time | relevance | path

Searched refs:FD_CLOEXEC (Results 1 – 25 of 123) sorted by relevance

12345

/netbsd-src/tests/lib/libc/sys/
H A Dt_socketpair.c77 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 Dt_pipe2.c65 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 Dt_timerfd.c769 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 Dt_eventfd.c795 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 Dposix.c52 #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 Dposix.c52 #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 Ddup2.m436 #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 Djob.h32 # 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 Dfcntl.d149 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 Dfcntl.c237 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 Dcloexec.c47 int newflags = (value ? flags | FD_CLOEXEC : flags & ~FD_CLOEXEC); in set_cloexec_flag()
/netbsd-src/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()
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 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()
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 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()
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 Ddescriptors.cc45 #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 Ddescriptors.cc45 #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 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/binutils/dist/libiberty/
H A 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()
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 Dpopen3.c53 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 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-src/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-src/tests/kernel/
H A Dt_epoll.c76 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 Ddir-common.h201 #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 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-src/external/ibm-public/postfix/dist/src/util/
H A Dclose_on_exec.c47 #define PATTERN FD_CLOEXEC

12345