Searched refs:fds (Results 1 - 4 of 4) sorted by relevance
/darwin-on-arm/xnu/tools/tests/libMicro/ |
H A D | select.c | 49 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 D | poll.c | 49 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...] |
/darwin-on-arm/xnu/bsd/kern/ |
H A D | sys_generic.c | 1424 struct pollfd *fds; local 1455 fds = (struct pollfd *)&cont[1]; 1456 error = copyin(uap->fds, fds, nfds * sizeof(struct pollfd)); 1480 short events = fds[i].events; 1485 if (fds[i].fd < 0) { 1486 fds[i].revents = 0; 1491 kev.ident = fds[i].fd; 1493 kev.udata = CAST_USER_ADDR_T(&fds[i]); 1531 fds[ 1572 struct pollfd *fds = CAST_DOWN(struct pollfd *, kevp->udata); local [all...] |
H A D | uipc_usrreq.c | 1823 int *fds = (int *)(cm + 1); local 1878 fds[i] = f; 1931 int *fds; local 1945 fds = (int *)(cm + 1); 1949 if (((error = fdgetf_noref(p, fds[i], &tmpfp)) != 0)) { 1963 (void) fdgetf_noref(p, fds[i], &fp);
|
Completed in 23 milliseconds