/opensolaris-onvv-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...] |
/opensolaris-onvv-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...] |
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/ext/IO/ |
H A D | poll.c | 46 poll(struct pollfd *fds, unsigned long nfds, int timeout) argument 63 for(i = 0 ; i < (int)nfds ; i++) { 96 for(i = 0 ; i < nfds ; i++) { 110 for(i = 0 ; i < (int)nfds ; i++) {
|
/opensolaris-onvv-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...] |
/opensolaris-onvv-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | mDNSPosix.h | 130 // After calling mDNSPosixGetFDSet(), call select(nfds, &readfds, NULL, NULL, &timeout); as usual 132 extern void mDNSPosixGetFDSet(mDNS *m, int *nfds, fd_set *readfds, struct timeval *timeout);
|
H A D | mDNSPosix.c | 1556 mDNSlocal void mDNSPosixAddToFDSet(int *nfds, fd_set *readfds, int s) argument 1558 if (*nfds < s + 1) *nfds = s + 1; 1562 mDNSexport void mDNSPosixGetFDSet(mDNS *m, int *nfds, fd_set *readfds, struct timeval *timeout) argument 1572 if (m->p->unicastSocket4 != -1) mDNSPosixAddToFDSet(nfds, readfds, m->p->unicastSocket4); 1574 if (m->p->unicastSocket6 != -1) mDNSPosixAddToFDSet(nfds, readfds, m->p->unicastSocket6); 1578 if (info->multicastSocket4 != -1) mDNSPosixAddToFDSet(nfds, readfds, info->multicastSocket4); 1580 if (info->multicastSocket6 != -1) mDNSPosixAddToFDSet(nfds, readfds, info->multicastSocket6);
|
/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_krb5/include/ |
H A D | cm.h | 30 int max, nfds; member in struct:select_state
|
/opensolaris-onvv-gate/usr/src/uts/common/syscall/ |
H A D | poll.c | 283 poll_common(pollfd_t *fds, nfds_t nfds, timespec_t *tsp, k_sigset_t *ksetp) argument 342 if (nfds == 0) { 360 if (nfds > p->p_fno_ctl) { 386 * buffers when nfds changes. There is no hysteresis control, 391 if (nfds != old_nfds) { 394 pollfdp = kmem_alloc(nfds * sizeof (pollfd_t), KM_SLEEP); 396 ps->ps_nfds = nfds; 400 if (copyin(fds, pollfdp, nfds * sizeof (pollfd_t))) { 429 pcache_create(pcp, nfds); 461 error = pcacheset_resolve(ps, nfds, 626 pollsys(pollfd_t *fds, nfds_t nfds, timespec_t *timeoutp, sigset_t *setp) argument 1044 pcache_insert_fd(pollcache_t *pcp, polldat_t *pdp, nfds_t nfds) argument 1078 pcache_grow_hashtbl(pollcache_t *pcp, nfds_t nfds) argument 1476 pollchecksanity(pollstate_t *ps, nfds_t nfds) argument 1514 pcacheset_resolve(pollstate_t *ps, nfds_t nfds, int *fdcntp, int which) argument 1809 pollscanrevents(pollcache_t *pcp, pollfd_t *pollfdp, nfds_t nfds) argument 1835 pcache_poll(pollfd_t *pollfdp, pollstate_t *ps, nfds_t nfds, int *fdcntp, int which) argument 2669 pcache_create(pollcache_t *pcp, nfds_t nfds) argument 2767 nfds_t nfds = psp->ps_nfds; local [all...] |
/opensolaris-onvv-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...] |
/opensolaris-onvv-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++;
|
/opensolaris-onvv-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 ) {
|
/opensolaris-onvv-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);
|
/opensolaris-onvv-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);
|
/opensolaris-onvv-gate/usr/src/uts/common/io/ |
H A D | devpoll.c | 237 dp_pcache_poll(pollfd_t *pfdp, pollcache_t *pcp, nfds_t nfds, int *fdcntp) argument 272 while ((fdcnt < nfds) && !done) { 734 nfds_t nfds; local 758 if ((nfds = STRUCT_FGET(dvpoll, dp_nfds)) == 0) { 784 if (ps->ps_dpbufsize < nfds) { 791 if (nfds > p->p_fno_ctl) { 800 nfds, KM_SLEEP); 801 ps->ps_dpbufsize = nfds; 807 error = dp_pcache_poll(ps->ps_dpbuf, pcp, nfds, &fdcnt);
|
/opensolaris-onvv-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...] |
/opensolaris-onvv-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))
|
/opensolaris-onvv-gate/usr/src/cmd/rpcbind/ |
H A D | rpcb_svc_com.c | 1355 size_t nfds; local 1383 nfds = p - pollfds; 1389 for (i = 0, p = pollfds; i < nfds; i++, p++) 1395 switch (poll_ret = poll(pollfds, nfds, INFTIM)) { 1414 for (i = 0, p = pollfds; i < nfds; i++, p++) 1427 if ((check_ret = check_rmtcalls(pollfds, nfds)) == 1436 check_rmtcalls(pfds, nfds) 1438 int nfds; 1449 for (j = 0; j < nfds; j++) {
|
/opensolaris-onvv-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) {
|
/opensolaris-onvv-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++) {
|
/opensolaris-onvv-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);
|