Lines Matching refs:fcntl
169 if (fcntl(arg1, F_DUPFD, arg2) != arg2) in modify()
221 m->arg.fd.parent.flag = fcntl(arg1, F_GETFD, 0); in modify()
226 m->arg.fd.child.flag = fcntl(arg2, F_GETFD, 0); in modify()
227 if ((m->save = fcntl(arg2, F_DUPFD, 3)) < 0) in modify()
232 fcntl(m->save, F_SETFD, FD_CLOEXEC); in modify()
234 if (fcntl(arg1, F_DUPFD, arg2) != arg2) in modify()
243 fcntl(arg1, F_SETFD, FD_CLOEXEC); in modify()
248 fcntl(arg1, F_SETFD, 0); in modify()
317 fcntl(m->arg.fd.child.fd, F_DUPFD, m->arg.fd.parent.fd); in restore()
319 fcntl(m->arg.fd.parent.fd, F_SETFD, m->arg.fd.parent.flag); in restore()
322 fcntl(m->save, F_DUPFD, m->arg.fd.child.fd); in restore()
325 fcntl(m->arg.fd.child.fd, F_SETFD, FD_CLOEXEC); in restore()
328 fcntl(m->arg.fd.parent.fd, F_SETFD, 0); in restore()
817 fcntl(proc->rfd, F_SETFD, FD_CLOEXEC); in procopen()
819 fcntl(proc->wfd, F_SETFD, FD_CLOEXEC); in procopen()