Lines Matching defs:nfds
1225 unsigned int nfds = 0;
1253 nfds += ps.num;
1263 curlfds = nfds; /* number of internal file descriptors */
1264 nfds += extra_nfds; /* add the externally provided ones */
1272 ++nfds;
1276 if(nfds > NUM_POLLS_ON_STACK) {
1277 /* 'nfds' is a 32 bit value and 'struct pollfd' is typically 8 bytes
1281 ufds = malloc(nfds * sizeof(struct pollfd));
1286 nfds = 0;
1297 struct pollfd *ufd = &ufds[nfds++];
1345 ufds[nfds].fd = extra_fds[i].fd;
1346 ufds[nfds].events = 0;
1348 ufds[nfds].events |= POLLIN;
1350 ufds[nfds].events |= POLLPRI;
1352 ufds[nfds].events |= POLLOUT;
1353 ++nfds;
1359 ufds[nfds].fd = multi->wakeup_pair[0];
1360 ufds[nfds].events = POLLIN;
1361 ++nfds;
1367 if(nfds || use_wakeup) {
1369 if(nfds) {
1373 if(nfds)
1374 pollrc = Curl_poll(ufds, nfds, 0); /* just pre-check with WinSock */
1378 pollrc = Curl_poll(ufds, nfds, timeout_ms); /* wait... */
1481 if(extrawait && !nfds && !use_wakeup) {
1483 if(extrawait && !nfds) {