Lines Matching +full:way +full:- +full:select

3 #include <sys/select.h>
38 printf("ok %-2d ", num); in report()
40 printf("not ok %-2d", num); in report()
72 errx(1, "fd = %d too large for select()", fd); in child()
76 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
77 err(1, "select"); in child()
80 * writer) is reported quite differently for select() than in child()
81 * for poll(). select() must see a ready-to-read descriptor in child()
107 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
108 err(1, "select"); in child()
116 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
117 err(1, "select"); in child()
122 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
123 err(1, "select"); in child()
131 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
132 err(1, "select"); in child()
147 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
148 err(1, "select"); in child()
156 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
157 err(1, "select"); in child()
166 * writer. Check that we have a data-readable condition, and that in child()
167 * the data can be read in the usual way. in child()
170 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
171 err(1, "select"); in child()
176 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
177 err(1, "select"); in child()
181 * Check that the readable-data condition is sticky for a in child()
183 * a hangup condition, but select() can only see this as in child()
184 * a readable-data condition for null data. select() in child()
196 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
197 err(1, "select"); in child()
201 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
202 err(1, "select"); in child()
206 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0) in child()
207 err(1, "select"); in child()
287 fd[0] = -1; in main()
288 fd[1] = -1; in main()
302 case -1: in main()