Lines Matching refs:fd2
68 int fd1, fd2, fd3, i, listen_port, s, status;
76 fd2 = dup(STDIN_FILENO);
77 if (fd2 != fd1 + 1)
129 * Allocate a file descriptor and make sure it's fd2+2. 2 because
133 if (fd3 != fd2 + 2)
134 printf("not ok 1 - (%d, %d, %d)\n", fd1, fd2, fd3);
153 close(fd2);
203 * Allocate a file descriptor and make sure it's fd2+2. 2 because
207 if (fd3 != fd2 + 2)
208 printf("not ok 2 - (%d, %d, %d)\n", fd1, fd2, fd3);