Lines Matching refs:fcntl
181 if (fcntl(arg1, F_DUPFD, arg2) != arg2)
204 if (arg1 != i && arg2 != i && fcntl(arg1, F_DUPFD, i) != i)
256 m->arg.fd.parent.flag = fcntl(arg1, F_GETFD, 0);
261 m->arg.fd.child.flag = fcntl(arg2, F_GETFD, 0);
262 if ((m->save = fcntl(arg2, F_dupfd_cloexec, 3)) < 0)
268 fcntl(m->save, F_SETFD, FD_CLOEXEC);
271 if (fcntl(arg1, F_DUPFD, arg2) != arg2)
280 fcntl(arg1, F_SETFD, FD_CLOEXEC);
285 fcntl(arg1, F_SETFD, 0);
354 fcntl(m->arg.fd.child.fd, F_DUPFD, m->arg.fd.parent.fd);
356 fcntl(m->arg.fd.parent.fd, F_SETFD, m->arg.fd.parent.flag);
359 fcntl(m->save, F_DUPFD, m->arg.fd.child.fd);
362 fcntl(m->arg.fd.child.fd, F_SETFD, FD_CLOEXEC);
365 fcntl(m->arg.fd.parent.fd, F_SETFD, 0);
879 fcntl(proc->rfd, F_SETFD, FD_CLOEXEC);
881 fcntl(proc->wfd, F_SETFD, FD_CLOEXEC);