Lines Matching defs:num
57 report(int num, const char *state, int expected, int got, int res,
62 printf("not ok %-2d", num);
68 printf("ok %-2d ", num);
70 printf("not ok %-2d", num);
90 child(int fd, int num)
107 report(num++, "0", 0, pfd.revents, res, 0);
125 report(num++, "1", 0, pfd.revents, res, 0);
133 report(num++, "2", POLLIN, pfd.revents, res, 1);
138 report(num++, "2a", 0, pfd.revents, res, 0);
146 report(num++, "3", POLLHUP, pfd.revents, res, 1);
161 report(num++, "4", 0, pfd.revents, res, 0);
169 report(num++, "5", POLLIN, pfd.revents, res, 1);
187 report(num++, "6", POLLIN | POLLHUP, pfd.revents, res, 1);
192 report(num++, "6a", POLLHUP, pfd.revents, res, 1);
204 report(num++, "6b", POLLHUP, pfd.revents, res, 1);
208 report(num++, "6c", POLLHUP, pfd.revents, res, 1);
212 report(num++, "6d", POLLHUP, pfd.revents, res, 1);
279 int fd[2], num;
281 num = 1;
310 child(fd[0], num);
317 num += filetype == FT_FIFO ? 12 : 4;