Lines Matching refs:fds
49 static int *fds;
67 " [-n fds-per-thread (default %d)]\n"
68 " [-r readable-fds (default 0)]\n"
69 " [-w writeable-fds (default 0)]\n"
127 fds = (int *)malloc(optn * sizeof (int));
128 if (fds == NULL) {
143 fds[i] = MIN(pair[0], pair[1]);
144 fds[i+1] = MAX(pair[0], pair[1]);
150 (void) write(fds[j+1 - (2*(j%2))], "", 1);
155 (void) write(fds[i+1 - (2*(i%2))], "", 1);
176 ts->ts_pfds[i].fd = fds[i];