F_SETFD
#ifndef F_SETFD
#ifndef F_SETFD
#ifndef F_SETFD
return fcntl(fd, F_SETFD, 1);
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
(cloexec != -1 && fcntl(fd, F_SETFD, (fcntl_int) cloexec) == -1))
if (fcntl(fd, F_SETFD, (fcntl_int)0) < 0)
(void)fcntl(i, F_SETFD, (fcntl_int) FD_CLOEXEC);
(void)fcntl(f, F_SETFD, (fcntl_int) FD_CLOEXEC);
fcntl(newfd, F_SETFD,
(void)fcntl(fd, F_SETFD, (fcntl_int) FD_CLOEXEC);
#define CLOEXEC(fd) (fcntl((fd), F_SETFD, \
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | O_CLOEXEC);
fcntl(fd, F_SETFD, FD_CLOEXEC);
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1 ||
if (fcntl(score_fd, F_SETFD, flags) == -1)
if (fcntl(fd, F_SETFD, flags) == -1)
return fcntl(newfd, F_SETFD, fdflags);
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
fcntl(statp->_vcsock, F_SETFD, FD_CLOEXEC);
fcntl(EXT(statp)nssocks[ns], F_SETFD, FD_CLOEXEC);
(void)fcntl(fd, F_SETFD, FD_CLOEXEC);
if (fcntl(ysd->dom_socket, F_SETFD, FD_CLOEXEC) == -1)
fcntl(fd, F_SETFD, opts | FD_CLOEXEC) == -1) {
(void)fcntl(fd_in, F_SETFD, fflags & ~FD_CLOEXEC);
cmd = F_SETFD;
case F_SETFD:
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
RL(fcntl(fd, F_SETFD, FD_CLOEXEC));
RL(fcntl(fd, F_SETFD, FD_CLOFORK));
ATF_REQUIRE(fcntl(efd, F_SETFD, 0) == 0);
ATF_REQUIRE(fcntl(efd, F_SETFD, FD_CLOEXEC) == 0);
ATF_REQUIRE(fcntl(tfd, F_SETFD, 0) == 0);
ATF_REQUIRE(fcntl(tfd, F_SETFD, FD_CLOEXEC) == 0);
if (rump_sys_fcntl(s1, F_SETFD, FD_CLOEXEC) == -1) {
if (rump_sys_fcntl(p1[0], F_SETFD, FD_CLOEXEC) == -1)
if (rump_sys_fcntl(p1[1], F_SETFD, FD_CLOEXEC) == -1)
if (dfd < 0 || fcntl(dfd, F_SETFD, 1) < 0)
if (fcntl(tfd, F_SETFD, 1) < 0)
if (pfd < 0 || fcntl(pfd, F_SETFD, 1) < 0)
fcntl(sd, F_SETFD, FD_CLOEXEC);
CASERETURN(F_SETFD);
if (fcntl(STDIN_FILENO, F_SETFD, 0) == -1)
if (fcntl(tokenPoolJob.inPipe, F_SETFD, 0) == -1)
if (fcntl(tokenPoolJob.outPipe, F_SETFD, 0) == -1)
if (fcntl(STDOUT_FILENO, F_SETFD, 0) == -1)
(void)fcntl(fd, F_SETFD, FD_CLOEXEC);
(void)fcntl(tokenPoolReader, F_SETFD, FD_CLOEXEC);
(void)fcntl(tokenPoolWriter, F_SETFD, FD_CLOEXEC);
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
(void)fcntl(dupfd, F_SETFD, FD_CLOEXEC);
(void)fcntl(pbm->mon_fd, F_SETFD, FD_CLOEXEC);
(void)fcntl(childPipe[0], F_SETFD, FD_CLOEXEC);
(void)fcntl(childPipe[1], F_SETFD, FD_CLOEXEC);
(void)fcntl(s_snd, F_SETFD, O_NONBLOCK);
if (fcntl(ctrl, F_SETFD, 0) < 0)
if (fcntl(sep->se_fd, F_SETFD, FD_CLOEXEC) < 0) {
if (prog_fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {