Lines Matching refs:fds
49 static int *fds;
63 " [-n fds-per-thread (default %d)]\n"
64 " [-r readable-fds (default 0)]\n"
65 " [-w writeable-fds (default 0)]\n"
123 fds = (int *)malloc(optn * sizeof (int));
124 if (fds == NULL) {
143 fds[i] = MIN(pair[0], pair[1]);
144 fds[i+1] = MAX(pair[0], pair[1]);
145 maxfd = fds[i+1] + 1;
152 FD_SET(fds[i], &iset);
153 FD_SET(fds[i+1], &iset);
157 FD_SET(fds[i], &oset);
161 (void) write(fds[j+1 - (2*(j%2))], "", 1);
165 (void) write(fds[i+1 - (2*(i%2))], "", 1);