F_SETFD
if (fcntl(s, F_SETFD, FD_CLOEXEC) == -1) {
if (fcntl(new_sd, F_SETFD, FD_CLOEXEC) == -1) {
(void) fcntl(fileno(fp), F_SETFD, FD_CLOEXEC);
(void) fcntl(u, F_SETFD, 1);
fcntl(script_fd, F_SETFD, 1);
(void) fcntl(SHIN = dcopy(0, FSHIN), F_SETFD, 1);
(void) fcntl(SHOUT = dcopy(1, FSHOUT), F_SETFD, 1);
(void) fcntl(SHDIAG = dcopy(2, FSHDIAG), F_SETFD, 1);
(void) fcntl(OLDSTD = dcopy(SHIN, FOLDSTD), F_SETFD, 1);
(void) fcntl(SHIN, F_SETFD, 1);
(void) fcntl(dcopy(f, FSHTTY), F_SETFD, 1);
(void) fcntl(unit, F_SETFD, 1);
(void) fcntl(unit, F_SETFD, 1);
if ((flags != -1) && (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) != -1))
fcntl(fileno(fd), F_SETFD, 1); /* close on exec */
(void) fcntl(mp->sopipe[RDPIPE], F_SETFD, FD_CLOEXEC);
(void) fcntl(mp->sepipe[RDPIPE], F_SETFD, FD_CLOEXEC);
(void) fcntl(i, F_SETFD, FD_CLOEXEC);
(void) fcntl(i, F_SETFD,
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
(void) fcntl(legacy_tmpl, F_SETFD, FD_CLOEXEC);
(void) fcntl(startd_tmpl, F_SETFD, FD_CLOEXEC);
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
fcntl(i, F_SETFD, 1); /* set close on exec flag*/
fcntl(fileno(Logfp), F_SETFD, 1); /* reset close-on-exec */
# define CLOSE_ON_EXEC(fd) (void) Fcntl(fd, F_SETFD, 1)
(void) fcntl(fileno(arp->fd), F_SETFD, 1);
(void) fcntl(source->fd, F_SETFD, 1);
(void) fcntl(zfd, F_SETFD, FD_CLOEXEC);
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
(void) fcntl(pm_fd, F_SETFD, FD_CLOEXEC);
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
(void) fcntl(sensorp->fd, F_SETFD, FD_CLOEXEC);
(void) fcntl(i, F_SETFD, 1);
if (fcntl(*fdp, F_SETFD, 1) == -1) {
fcntl(sock, F_SETFD, fdflags | FD_CLOEXEC) == -1)
fcntl(kmem, F_SETFD, j | FD_CLOEXEC) < 0)
fcntl(kmem, F_SETFD, j | FD_CLOEXEC) < 0)
fcntl(kmem, F_SETFD, j | FD_CLOEXEC) < 0)
fcntl(kmem, F_SETFD, j | FD_CLOEXEC) < 0)
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
(void) fcntl(i, F_SETFD, j | FD_CLOEXEC);
fcntl(d->d_socket, F_SETFD,
(void) fcntl(f, F_SETFD, FD_CLOEXEC);
(void) fcntl(pipefds[1], F_SETFD, FD_CLOEXEC);
fcntl(fileno(logfile), F_SETFD, FD_CLOEXEC) == -1)
fcntl(memfd, F_SETFD,
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
case F_SETFD: subcode = 3; break;
(void) fcntl(fileno(Logfp), F_SETFD, 1);
if (fcntl(fileno(Debugfp), F_SETFD, 1) == -1)
if (fcntl(ret, F_SETFD, FD_CLOEXEC) == 0) {
if (fcntl(fd, F_SETFD, 1) == -1)
if (fcntl(PCpipe[0], F_SETFD, 1) == -1)
if (fcntl(PCpipe[1], F_SETFD, 1) == -1)
(void) fcntl(fd, F_SETFD, 1);
if (fcntl(fileno(fp), F_SETFD, FD_CLOEXEC) < 0) {
if ((flags != -1) && (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) != -1))
if (fcntl(newfd, F_SETFD, FD_CLOEXEC) == -1) {
if (fcntl(t->bt_fd, F_SETFD, 1) == -1)
(void)fcntl(hashp->fp, F_SETFD, 1);
(void) fcntl(fd, F_SETFD, (intptr_t)1);
if (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0)
(void) fcntl(dp->doorfd, F_SETFD, FD_CLOEXEC);
(void) fcntl(backd->doorfd, F_SETFD, FD_CLOEXEC);
fcntl(fd, F_SETFD, 1) == -1))
(void) fcntl(LogFile, F_SETFD, 1);
fcntl(fd, F_SETFD, flags | FD_CLOEXEC) < 0) {
(void) fcntl(fd, F_SETFD, (intptr_t)1);
if ((flags != -1) && (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) != -1))
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
(void) fcntl(cur_term->_check_fd, F_SETFD, 1);
(void) fcntl(dump_fd, F_SETFD, FD_CLOEXEC);
(void) fcntl(dtfd, F_SETFD, FD_CLOEXEC);
(void) fcntl(ftfd, F_SETFD, FD_CLOEXEC);
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
(void) fcntl(fd, F_SETFD, 1); /* close on exec */
(void) fcntl(fd, F_SETFD, FD_CLOEXEC); /* close exec */
(void) fcntl(kcp->fd, F_SETFD, FD_CLOEXEC); /* close on exec */
(void) fcntl(destfd, F_SETFD, FD_CLOEXEC);
(void) fcntl(fd, F_SETFD, 1); /* make it "close on exec" */
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
if (fcntl(fileno(pvt->fp), F_SETFD, 1) < 0) {
if (fcntl(fileno(pvt->fp), F_SETFD, 1) < 0) {
if (fcntl(fileno(pvt->fp), F_SETFD, 1) < 0) {
if (fcntl((*pvt->dbh->fd)(pvt->dbh), F_SETFD, 1) < 0) {
if (fcntl(fileno(pvt->sv.fp), F_SETFD, 1) < 0) {
if (fcntl(ctx->sock, F_SETFD, 1) < 0) {
if (fcntl(fd, F_SETFD, 1) < 0) {
if (fcntl(p->rsmseg_fd, F_SETFD, FD_CLOEXEC) < 0) {
if (fcntl(_rsm_fd, F_SETFD, FD_CLOEXEC) < 0) {
if (fcntl(p->rsmseg_fd, F_SETFD, FD_CLOEXEC) < 0) {
(void) fcntl(handle->rh_doorfd, F_SETFD, FD_CLOEXEC);
(void) fcntl(doorfd, F_SETFD, FD_CLOEXEC);
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
(void) fcntl(EV_FD(scp), F_SETFD, FD_CLOEXEC);
(void) fcntl(doorfd, F_SETFD, FD_CLOEXEC);
(void) fcntl(fd, F_SETFD, FD_CLOEXEC);
(void) fcntl(kernel_fd, F_SETFD, FD_CLOEXEC);
fcntl(http->fd, F_SETFD, FD_CLOEXEC); /* Close this socket when starting *
if (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0) {
if (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0) {
(void) fcntl(ctlfd, F_SETFD, 1);
(void) fcntl(ctlfd, F_SETFD, 1);
if (fcntl(fd, F_SETFD, targ_flags) < 0) {
case F_SETFD: