Searched refs:fds (Results 1 - 2 of 2) sorted by relevance

/libmicro/
H A Dselect.c49 static int *fds; variable
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[
[all...]
H A Dpoll.c49 static int *fds; variable
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[
[all...]

Completed in 7 milliseconds