Home | History | Annotate | Download | only in fcntl

Lines Matching defs:fd2

25  *	09/2002 added fd2 array to remove statid fds
48 int fd[10], fd2[10];
67 fd2[i] = fd[i];
78 if (fd[2] < fd2[2])
82 if ((fd[4] = fcntl(fd[1], F_DUPFD, fd2[3])) < 0)
83 tst_resm(TFAIL | TERRNO, "fcntl(.., fd2[3]) failed");
85 if (fd[4] < fd2[3])
87 "expect greater than %d", fd[4], fd2[3]);
89 if ((fd[8] = fcntl(fd[1], F_DUPFD, fd2[5])) < 0)
90 tst_resm(TFAIL | TERRNO, "fcntl(.., fd2[5]) failed");
92 if (fd[8] != fd2[5])
94 "got %d, expected %d", fd[8], fd2[5]);