F_SETFD
fcntl(fd, F_SETFD, FD_CLOEXEC);
if (fcntl(ttyfd, F_SETFD, FD_CLOEXEC) < 0) {
fcntl(i, F_SETFD, FD_CLOEXEC);
if (fcntl(sock, F_SETFD, FD_CLOEXEC) == -1 ||
(void)fcntl(rfd, F_SETFD, FD_CLOEXEC);
(void)fcntl(wfd, F_SETFD, FD_CLOEXEC);
(void)fcntl(efd, F_SETFD, FD_CLOEXEC);
if (fcntl(x, F_SETFD, FD_CLOEXEC) == -1) \
(void)fcntl(sock, F_SETFD, FD_CLOEXEC);
if (fcntl(sock, F_SETFD, 0) == -1) /* keep the socket on exec */
fcntl(sock_out, F_SETFD, FD_CLOEXEC);
fcntl(sock_in, F_SETFD, FD_CLOEXEC);
if (fcntl(listen_sock, F_SETFD, FD_CLOEXEC) == -1) {
if (fcntl(score_fd, F_SETFD, flags) == -1)
if (_fcntl(t->bt_fd, F_SETFD, 1) == -1)
_fcntl(hashp->fp, F_SETFD, 1);
_fcntl(hashp->fp, F_SETFD, 1);
_fcntl(fd, F_SETFD, fdflags | FD_CLOEXEC) == -1) ||
_fcntl(pdes[1], F_SETFD, 0);
_fcntl(pdes[0], F_SETFD, 0);
_fcntl(fd, F_SETFD, 0);
_fcntl(__sfileno(iop), F_SETFD, FD_CLOEXEC);
if (_fcntl(fae->fae_fildes, F_SETFD, 0) == -1)
if (_fcntl(fae->fae_newfildes, F_SETFD, 0) == -1)
if (_fcntl(fd, F_SETFD, FD_CLOEXEC) != 0 ||
_fcntl(pdes[1], F_SETFD, 0)) < 0)
if (_fcntl(pdesw[0], F_SETFD, 0) < 0)
_fcntl(fd, F_SETFD, 1); /* make it "close on exec" */
_fcntl(fd, F_SETFD, 1); /* make it "close on exec" */
_fcntl(fd, F_SETFD, tmp | FD_CLOEXEC); /* silently ignore err */
(void)_fcntl(fileno(fp), F_SETFD, fdflags | FD_CLOEXEC);
if (_fcntl(daemon_fd, F_SETFD, flags & FD_CLOEXEC) == -1) {
if (_fcntl(fd, F_SETFD, flags & FD_CLOEXEC) == -1) {
if (_fcntl(ysd->dom_socket, F_SETFD, 1) == -1)
(void)fcntl(sd, F_SETFD, flags | FD_CLOEXEC);
if (fcntl(kd->pmfd, F_SETFD, FD_CLOEXEC) < 0) {
if (fcntl(kd->vmfd, F_SETFD, FD_CLOEXEC) < 0) {
if (fcntl(kd->nlfd, F_SETFD, FD_CLOEXEC) < 0) {
error = __sys_fcntl(fd, F_SETFD, FD_CLOEXEC);
case F_SETFD:
fcntl(fd_in, F_SETFD, fflags & ~FD_CLOEXEC);
case F_SETFD:
case F_SETFD:
if (fcntl(fd1, F_SETFD, 1) != 0)
if (fcntl(fd, F_SETFD, targ_flags) < 0) {
fcntl(3, F_SETFD, 0);
fcntl(fileno(otf), F_SETFD, 1);
fcntl(fileno(itf), F_SETFD, 1);
fcntl(image, F_SETFD, 1);
fcntl(p[READ], F_SETFD, 1);
fcntl(p[WRITE], F_SETFD, 1);
fcntl(fileno(fp), F_SETFD, 1);
fcntl(fileno(fp), F_SETFD, 1);
fcntl(fd, F_SETFD, FD_CLOEXEC);
(void) fcntl(fileno(cc_trace_fp), F_SETFD, 1);
(void) fcntl(fileno(cx.x_fp), F_SETFD, 1);
(void) fcntl(d[0], F_SETFD, 1);
(void) fcntl(d[1], F_SETFD, 1);
(void) fcntl(w->ww_pty, F_SETFD, 1);
fcntl(fd, F_SETFD, 1);
fcntl(LogFD, F_SETFD, 1);
if (fcntl(sep->se_fd, F_SETFD, FD_CLOEXEC) < 0) {
if (fcntl(ctrl, F_SETFD, 0) < 0) {
fcntl(fd, F_SETFD, 1);
fcntl(i, F_SETFD, 1);
fcntl(i, F_SETFD, 1);
fcntl(i, F_SETFD, 1);