Lines Matching refs:select
4 #include <sys/select.h>
73 errx(1, "fd = %d too large for select()", fd);
77 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0)
78 err(1, "select");
81 * writer) is reported quite differently for select() than
82 * for poll(). select() must see a ready-to-read descriptor
108 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0)
109 err(1, "select");
117 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0)
118 err(1, "select");
123 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0)
124 err(1, "select");
132 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0)
133 err(1, "select");
148 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0)
149 err(1, "select");
157 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0)
158 err(1, "select");
171 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0)
172 err(1, "select");
177 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0)
178 err(1, "select");
184 * a hangup condition, but select() can only see this as
185 * a readable-data condition for null data. select()
197 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0)
198 err(1, "select");
202 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0)
203 err(1, "select");
207 if (select(fd + 1, &rfds, NULL, NULL, &tv) < 0)
208 err(1, "select");