Lines Matching defs:fd2
6237 int fd1, fd2;
6240 &tag_obj, &fd1, &fd2))
6245 fd1, fd2);
9422 fd2: int
9429 os_dup2_impl(PyObject *module, int fd, int fd2, int inheritable)
9446 res = dup2(fd, fd2);
9453 res = fd2; // msvcrt dup2 returns 0 on success.
9456 if (!inheritable && _Py_set_inheritable(fd2, 0, NULL) < 0) {
9457 close(fd2);
9464 res = fcntl(fd, F_DUP2FD_CLOEXEC, fd2);
9466 res = dup2(fd, fd2);
9478 res = dup3(fd, fd2, O_CLOEXEC);
9494 res = dup2(fd, fd2);
9501 if (!inheritable && _Py_set_inheritable(fd2, 0, NULL) < 0) {
9502 close(fd2);