/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | closefrom.c | 64 int nfds; local 67 nfds = 0; 80 if (fds_sz <= nfds * sizeof (int)) { 84 fds[nfds++] = i; 98 if (fds_sz <= nfds * sizeof (int)) { 102 fds[nfds++] = i; 116 for (i = 0; i < nfds; i++)
|
H A D | select.c | 58 pselect(int nfds, fd_set *in0, fd_set *out0, fd_set *ex0, argument 78 if (nfds < 0 || nfds > FD_SETSIZE) { 83 p = pfd = (struct pollfd *)alloca(nfds * sizeof (struct pollfd)); 112 for (n = 0; n < nfds; n += NFDBITS) { 117 if (p->fd >= nfds) 153 for (n = 0; n < nfds; n += NFDBITS) 158 for (n = 0; n < nfds; n += NFDBITS) 163 for (n = 0; n < nfds; n += NFDBITS) 285 select(int nfds, fd_se argument [all...] |
H A D | select_large_fdset.c | 73 pselect_large_fdset(int nfds, fd_set *in0, fd_set *out0, fd_set *ex0, argument 102 if (nfds >= 0 && nfds <= FD_SETSIZE) { 146 for (n = 0; n < nfds; n += NFDBITS) { 151 if (p->fd < nfds) { 198 for (n = 0; n < nfds; n += NFDBITS) 203 for (n = 0; n < nfds; n += NFDBITS) 208 for (n = 0; n < nfds; n += NFDBITS) 336 select_large_fdset(int nfds, fd_set *in0, fd_set *out0, fd_set *ex0, argument 364 return (pselect_large_fdset(nfds, in [all...] |
/illumos-gate/usr/src/cmd/ctwatch/ |
H A D | ctwatch.c | 236 int i, nfds, nids; local 276 nfds = 0; 289 wfd[nfds].wf_fd = 293 wfd[nfds].wf_type = type = get_type(argv[i]); 295 (void) close(wfd[nfds].wf_fd); 299 nfds++; 338 wfd[nfds].wf_fd = fd; 339 wfd[nfds].wf_type = type; 340 nfds++; 344 if (nfds [all...] |
/illumos-gate/usr/src/cmd/consadm/ |
H A D | consadm.c | 659 nfds_t nfds = 0; local 731 fds[nfds].fd = fd; 732 fds[nfds].events = 0; 734 if ((devpaths[nfds] = 738 (void) strcpy(devpaths[nfds], ptr); 739 nfds++; 740 if (nfds >= cachesize) 760 fds[nfds].fd = fd; 761 fds[nfds].events = 0; 763 if ((devpaths[nfds] [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/include/ |
H A D | cm.h | 30 int max, nfds; member in struct:select_state
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | mDNSPosix.h | 69 // After calling mDNSPosixGetFDSet(), call select(nfds, &readfds, NULL, NULL, &timeout); as usual 71 extern void mDNSPosixGetFDSet(mDNS *m, int *nfds, fd_set *readfds, struct timeval *timeout);
|
H A D | mDNSPosix.c | 1652 mDNSlocal void mDNSPosixAddToFDSet(int *nfds, fd_set *readfds, int s) argument 1654 if (*nfds < s + 1) *nfds = s + 1; 1658 mDNSexport void mDNSPosixGetFDSet(mDNS *m, int *nfds, fd_set *readfds, struct timeval *timeout) argument 1668 if (m->p->unicastSocket4 != -1) mDNSPosixAddToFDSet(nfds, readfds, m->p->unicastSocket4); 1670 if (m->p->unicastSocket6 != -1) mDNSPosixAddToFDSet(nfds, readfds, m->p->unicastSocket6); 1674 if (info->multicastSocket4 != -1) mDNSPosixAddToFDSet(nfds, readfds, info->multicastSocket4); 1676 if (info->multicastSocket6 != -1) mDNSPosixAddToFDSet(nfds, readfds, info->multicastSocket6);
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | poll.c | 321 poll_common(pollfd_t *fds, nfds_t nfds, timespec_t *tsp, k_sigset_t *ksetp) argument 376 if (nfds == 0) { 393 if (nfds > p->p_fno_ctl) { 416 * buffers when nfds changes. There is no hysteresis control, 421 if (nfds != old_nfds) { 424 pollfdp = kmem_alloc(nfds * sizeof (pollfd_t), KM_SLEEP); 426 ps->ps_nfds = nfds; 430 if (copyin(fds, pollfdp, nfds * sizeof (pollfd_t))) { 459 pcache_create(pcp, nfds); 491 error = pcacheset_resolve(ps, nfds, 656 pollsys(pollfd_t *fds, nfds_t nfds, timespec_t *timeoutp, sigset_t *setp) argument 1075 pcache_insert_fd(pollcache_t *pcp, polldat_t *pdp, nfds_t nfds) argument 1109 pcache_grow_hashtbl(pollcache_t *pcp, nfds_t nfds) argument 1507 pollchecksanity(pollstate_t *ps, nfds_t nfds) argument 1545 pcacheset_resolve(pollstate_t *ps, nfds_t nfds, int *fdcntp, int which) argument 1840 pollscanrevents(pollcache_t *pcp, pollfd_t *pollfdp, nfds_t nfds) argument 1866 pcache_poll(pollfd_t *pollfdp, pollstate_t *ps, nfds_t nfds, int *fdcntp, int which) argument 2907 pcache_create(pollcache_t *pcp, nfds_t nfds) argument 3005 nfds_t nfds = psp->ps_nfds; local [all...] |
/illumos-gate/usr/src/test/os-tests/tests/poll/ |
H A D | poll_test.c | 163 poll_wrapper(pollfd_t *fds, nfds_t nfds, int timeout, time_t *elapsed) argument 168 debug_log("POLL start: (0x%p, %d, %d)\n", fds, nfds, timeout); 170 ret = poll(fds, nfds, timeout); 175 fds, nfds, timeout, ret, (*elapsed)); 181 dppoll(int pollfd, pollfd_t *fds, nfds_t nfds, int timeout, time_t *elapsed) argument 188 arg.dp_nfds = nfds; 191 debug_log("DP_POLL start: (0x%p, %d, %d)\n", fds, nfds, timeout);
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_net.c | 342 nfds_t nfds; local 351 if (make_mc_target(hp, sin, header, &pfd, &nfds, &bcifs) != SLP_OK) 381 mc_recvmsg(pfd, nfds, hp, scopes, header, &collator, final_to, 393 free_pfds(pfd, nfds); 701 struct pollfd **fds, nfds_t *nfds, 757 *nfds = num_givenifs; 777 free_pfds(*fds, *nfds); 860 *nfds = 1; 864 for (nfd_i = 0; nfd_i < *nfds; nfd_i++) { 991 * nfds I 699 make_mc_target(slp_handle_impl_t *hp, struct sockaddr_in *sin, char *header, struct pollfd **fds, nfds_t *nfds, struct bc_ifs *bcifs) argument 1006 mc_recvmsg(struct pollfd *pfd, nfds_t nfds, slp_handle_impl_t *hp, const char *scopes, char *header, void **collator, unsigned long long final_to, unsigned long long sent, unsigned long long *now, int *noresults, int *anyresults, int timeout) argument 1105 free_pfds(struct pollfd *pfds, nfds_t nfds) argument 1156 wait_for_response( unsigned long long final_to, int *timeout, unsigned long long sent, unsigned long long *now, struct pollfd pfd[], nfds_t nfds) argument [all...] |
/illumos-gate/usr/src/cmd/rm/ |
H A D | rm.c | 84 static int nfds; variable 212 nfds--; 245 if (nfds >= maxfds) 250 if (nfds < maxfds) 251 maxfds = nfds; 263 nfds++;
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/prldap/ |
H A D | ldappr-io.c | 51 static int LDAP_CALLBACK prldap_poll( LDAP_X_PollFD fds[], int nfds, 227 prldap_poll( LDAP_X_PollFD fds[], int nfds, int timeout, argument 240 if ( prsessp->prsess_pollds_count < nfds ) { 242 ( nfds + PRLDAP_POLL_ARRAY_GROWTH ) 249 prsessp->prsess_pollds_count = nfds + PRLDAP_POLL_ARRAY_GROWTH; 255 for ( i = 0; i < nfds; ++i ) { 274 rc = PR_Poll( pds, nfds, 278 for ( i = 0; i < nfds; ++i ) {
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | devpoll.c | 249 pollcache_t *pcp, nfds_t nfds, int *fdcntp) 296 while ((fdcnt < nfds) && !done) { 1089 nfds_t nfds; local 1190 if ((nfds = STRUCT_FGET(dvpoll, dp_nfds)) == 0) { 1215 size = nfds * (fdsize = sizeof (epoll_event_t)); 1217 size = nfds * (fdsize = sizeof (pollfd_t)); 1229 * If nfds is larger than twice the current maximum 1235 * maximum because some applications pass an nfds that 1239 if ((nfds >> 1) > p->p_fno_ctl) { 1240 nfds 248 dp_pcache_poll(dp_entry_t *dpep, void *dpbuf, pollcache_t *pcp, nfds_t nfds, int *fdcntp) argument 1457 nfds_t nfds = 1; local [all...] |
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | dcs.h | 298 int ses_poll(struct pollfd fds[], nfds_t nfds, int timeout);
|
H A D | dcs_ses.c | 477 ses_poll(struct pollfd fds[], nfds_t nfds, int timeout) argument 484 err = poll(fds, nfds, timeout);
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmhandler.c | 226 do_poll(fdp,nfds) 228 int nfds; 233 n = poll(fdp, (unsigned long)nfds, -1); /* blocked poll */ 242 for (i = 0; (i < nfds)&&(n); i++,fdp++) {
|
H A D | ttymon.c | 93 int nfds; local 129 nfds = set_poll(Pollp); 131 if (nfds > 0) 132 do_poll(Pollp, nfds);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | ftp.c | 81 static int empty(struct fd_set *mask, int sec, int nfds); 718 empty(struct fd_set *mask, int sec, int nfds) argument 725 return (select(nfds, mask, NULL, NULL, &t)); 965 int nfds = fileno(ctrl_in); local 979 FD_SET(nfds, &mask); 980 nfds = MAX(dfn, nfds); 987 (void) select(nfds + 1, &mask, NULL, NULL, NULL); 1062 int nfds; local 1397 nfds [all...] |
/illumos-gate/usr/src/cmd/krb5/kadmin/server/ |
H A D | ovsec_kadmd.c | 1243 int nfds = 0; local 1250 if (nfds != svc_max_pollfd) { 1252 nfds = svc_max_pollfd; 1258 for (i = 0; i < nfds; i++) { 1266 switch(pollret = poll(rfd, nfds, 1276 for (i = 0; i < nfds; i++) { 1286 if (i == (nfds - 1))
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | sendto_kdc.c | 858 selstate->nfds++; 939 selstate->nfds--; 1180 while (selstate->nfds > 0 1332 sel_state->nfds = 0; 1373 if (pass > 0 && sel_state->nfds == 0) 1394 if (sel_state->nfds == 0) 1399 if (sel_state->nfds == 0) {
|
/illumos-gate/usr/src/cmd/rexd/ |
H A D | on.c | 219 int nfds, cc; local 580 nfds = select(FD_SETSIZE, &selmask, (fd_set *) 0, (fd_set *) 0, 584 if (nfds <= 0) {
|
H A D | unix_login.c | 572 HelperRead(pollfd_t *fdp, int nfds, int *pollretval) argument 586 for (i = 0; i < nfds; i++) {
|
/illumos-gate/usr/src/lib/print/libhttp-core/common/ |
H A D | http.c | 2101 int nfds; /* Result from select() */ local 2171 nfds = select(http->fd + 1, http->input_set, NULL, NULL, &timeout); 2174 nfds = select(http->fd + 1, http->input_set, NULL, NULL, NULL); 2177 while (nfds < 0 && WSAGetLastError() == WSAEINTR); 2179 while (nfds < 0 && errno == EINTR); 2184 return (nfds > 0);
|
/illumos-gate/usr/src/lib/libldap5/include/ldap/ |
H A D | solaris-int.h | 252 LDAP_X_PollFD fds[], int nfds, int timeout /* milliseconds */, 296 typedef int (LDAP_C LDAP_CALLBACK LDAP_IOF_SELECT_CALLBACK)( int nfds,
|