Lines Matching defs:res
57 report(int num, const char *state, int expected, int got, int res,
61 if (res != res_expected) {
65 res, res_expected);
93 int fd2, res;
105 if ((res = poll(&pfd, 1, 0)) < 0)
107 report(num++, "0", 0, pfd.revents, res, 0);
123 if ((res = poll(&pfd, 1, 0)) < 0)
125 report(num++, "1", 0, pfd.revents, res, 0);
131 if ((res = poll(&pfd, 1, 0)) < 0)
133 report(num++, "2", POLLIN, pfd.revents, res, 1);
136 if ((res = poll(&pfd, 1, 0)) < 0)
138 report(num++, "2a", 0, pfd.revents, res, 0);
144 if ((res = poll(&pfd, 1, 0)) < 0)
146 report(num++, "3", POLLHUP, pfd.revents, res, 1);
159 if ((res = poll(&pfd, 1, 0)) < 0)
161 report(num++, "4", 0, pfd.revents, res, 0);
167 if ((res = poll(&pfd, 1, 0)) < 0)
169 report(num++, "5", POLLIN, pfd.revents, res, 1);
185 if ((res = poll(&pfd, 1, 0)) < 0)
187 report(num++, "6", POLLIN | POLLHUP, pfd.revents, res, 1);
190 if ((res = poll(&pfd, 1, 0)) < 0)
192 report(num++, "6a", POLLHUP, pfd.revents, res, 1);
202 if ((res = poll(&pfd, 1, 0)) < 0)
204 report(num++, "6b", POLLHUP, pfd.revents, res, 1);
206 if ((res = poll(&pfd, 1, 0)) < 0)
208 report(num++, "6c", POLLHUP, pfd.revents, res, 1);
210 if ((res = poll(&pfd, 1, 0)) < 0)
212 report(num++, "6d", POLLHUP, pfd.revents, res, 1);