Lines Matching refs:num

51 report(int num, const char *state, int expected, int got)  in report()  argument
54 printf("ok %-2d ", num); in report()
56 printf("not ok %-2d", num); in report()
99 int num; in main() local
101 num = 1; in main()
109 report(num++, "initial 0", POLLOUT, pfd0.revents); in main()
112 report(num++, "initial 1", POLLOUT, pfd1.revents); in main()
117 report(num++, "after large write", 0, pfd0.revents); in main()
120 report(num++, "other side after large write", POLLIN | POLLOUT, pfd1.revents); in main()
124 report(num++, "other side after close", POLLIN | POLLHUP, pfd1.revents); in main()
129 report(num++, "other side after reading input", POLLHUP, pfd1.revents); in main()
138 report(num++, "after shutdown(SHUT_WR)", POLLOUT, pfd0.revents); in main()
141 report(num++, "other side after shutdown(SHUT_WR)", POLLIN | POLLOUT, pfd1.revents); in main()
153 report(num++, "other side after reading EOF", POLLIN | POLLOUT, pfd1.revents); in main()
158 report(num++, "after data from other side", POLLIN | POLLOUT, pfd0.revents); in main()
161 report(num++, "after writing", POLLIN, pfd1.revents); in main()
166 report(num++, "after second shutdown", POLLIN | POLLHUP, pfd0.revents); in main()
169 report(num++, "after second shutdown", POLLHUP, pfd1.revents); in main()
173 report(num++, "after close", POLLHUP, pfd1.revents); in main()
186 report(num++, "after shutdown(SHUT_RD)", POLLIN | POLLOUT, pfd0.revents); in main()
189 report(num++, "other side after shutdown(SHUT_RD)", POLLOUT, pfd1.revents); in main()
194 report(num++, "after shutdown(SHUT_WR)", POLLHUP, pfd0.revents); in main()
197 report(num++, "other side after shutdown(SHUT_WR)", POLLIN | POLLOUT, pfd1.revents); in main()