Searched refs:FD_CLOEXEC (Results 26 - 50 of 72) sorted by relevance

123

/freebsd-current/contrib/openbsm/compat/
H A Dpidfile.h155 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {
/freebsd-current/contrib/unbound/compat/
H A Darc4random.c117 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
H A Dgetentropy_solaris.c196 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
H A Dgetentropy_osx.c168 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
H A Dgetentropy_linux.c236 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
/freebsd-current/lib/libc/gen/
H A Dopendir.c65 if (_fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
/freebsd-current/contrib/sendmail/libmilter/
H A Dlistener.c456 fcntl(sock, F_SETFD, fdflags | FD_CLOEXEC) == -1)
896 fcntl(connfd, F_SETFD, fdflags | FD_CLOEXEC) == -1)
/freebsd-current/contrib/file/src/
H A Dfile.h154 #ifndef FD_CLOEXEC
155 # define FD_CLOEXEC 1 macro
H A Dmagic.c481 (void)fcntl(fd, F_SETFD, FD_CLOEXEC);
H A Dfuncs.c901 (void)fcntl(fds[0], F_SETFD, FD_CLOEXEC);
902 (void)fcntl(fds[1], F_SETFD, FD_CLOEXEC);
/freebsd-current/contrib/libarchive/libarchive/
H A Darchive_util.c605 * Set FD_CLOEXEC flag to a file descriptor if it is not set.
624 if (flags != -1 && (flags & FD_CLOEXEC) == 0)
625 fcntl(fd, F_SETFD, flags | FD_CLOEXEC);
/freebsd-current/contrib/bmake/
H A Dmake.h105 #ifndef FD_CLOEXEC
106 #define FD_CLOEXEC 1 macro
H A Dmeta.c159 (void)fcntl(dupfd, F_SETFD, FD_CLOEXEC);
164 (void)fcntl(pbm->mon_fd, F_SETFD, FD_CLOEXEC);
1645 (void)fcntl(childPipe[0], F_SETFD, FD_CLOEXEC);
1646 (void)fcntl(childPipe[1], F_SETFD, FD_CLOEXEC);
H A Djob.c585 if (fcntl(job->inPipe, F_SETFD, FD_CLOEXEC) == -1)
587 if (fcntl(job->outPipe, F_SETFD, FD_CLOEXEC) == -1)
1637 (void)fcntl(fileno(job->cmdFILE), F_SETFD, FD_CLOEXEC);
2843 (void)fcntl(jp_0, F_SETFD, FD_CLOEXEC);
2844 (void)fcntl(jp_1, F_SETFD, FD_CLOEXEC);
/freebsd-current/lib/libnv/
H A Dmsgio.c350 (void) fcntl(fds[i], F_SETFD, FD_CLOEXEC);
/freebsd-current/contrib/llvm-project/lldb/source/Host/common/
H A DSocket.cpp352 if (flags != -1 && ::fcntl(fd, F_SETFD, flags | FD_CLOEXEC) != -1)
/freebsd-current/contrib/ntp/sntp/libevent/
H A Devutil.c124 #if defined(FD_CLOEXEC)
125 if (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0) {
427 if (!(flags & FD_CLOEXEC)) {
428 if (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) == -1) {
445 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {
/freebsd-current/contrib/libevent/
H A Devutil.c124 #if defined(FD_CLOEXEC)
125 if (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0) {
427 if (!(flags & FD_CLOEXEC)) {
428 if (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) == -1) {
445 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {
/freebsd-current/libexec/atrun/
H A Datrun.c225 fcntl(fd_in, F_SETFD, fflags & ~FD_CLOEXEC);
/freebsd-current/contrib/blocklist/lib/
H A Dbl.c161 fcntl(b->b_fd, F_SETFD, FD_CLOEXEC);
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix.cpp373 res = fcntl(fd, F_SETFD, FD_CLOEXEC);
/freebsd-current/contrib/llvm-project/lldb/tools/lldb-server/
H A Dlldb-gdbserver.cpp209 ::fcntl(connection_fd, F_SETFD, FD_CLOEXEC);
/freebsd-current/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/
H A D_libzfs_core.py1871 fcntl.fcntl(rfd, fcntl.F_SETFD, fcntl.FD_CLOEXEC)
1872 fcntl.fcntl(wfd, fcntl.F_SETFD, fcntl.FD_CLOEXEC)
/freebsd-current/contrib/googletest/googletest/src/
H A Dgtest-death-test.cc1263 GTEST_DEATH_TEST_CHECK_SYSCALL_(fcntl(cwd_fd, F_SETFD, FD_CLOEXEC));
1280 fcntl(close_fd, F_SETFD, fd_flags | FD_CLOEXEC));
/freebsd-current/tests/sys/kern/
H A Dunix_passfd_test.c356 * received file descriptor has the FD_CLOEXEC flag set.
371 ATF_REQUIRE_EQ_MSG(fcntl(getfd, F_GETFD) & FD_CLOEXEC, FD_CLOEXEC,
372 "FD_CLOEXEC not set on the received file descriptor");

Completed in 338 milliseconds

123