/titanic_44/usr/src/cmd/ctwatch/ |
H A D | ctwatch.c | 236 int i, nfds, nids; in main() local 276 nfds = 0; in main() 289 wfd[nfds].wf_fd = in main() 293 wfd[nfds].wf_type = type = get_type(argv[i]); in main() 295 (void) close(wfd[nfds].wf_fd); in main() 299 nfds++; in main() 338 wfd[nfds].wf_fd = fd; in main() 339 wfd[nfds].wf_type = type; in main() 340 nfds++; in main() 344 if (nfds == 0) in main() [all …]
|
/titanic_44/usr/src/lib/libc/port/gen/ |
H A D | select.c | 58 pselect(int nfds, fd_set *in0, fd_set *out0, fd_set *ex0, in pselect() argument 78 if (nfds < 0 || nfds > FD_SETSIZE) { in pselect() 83 p = pfd = (struct pollfd *)alloca(nfds * sizeof (struct pollfd)); in pselect() 112 for (n = 0; n < nfds; n += NFDBITS) { in pselect() 117 if (p->fd >= nfds) in pselect() 153 for (n = 0; n < nfds; n += NFDBITS) in pselect() 158 for (n = 0; n < nfds; n += NFDBITS) in pselect() 163 for (n = 0; n < nfds; n += NFDBITS) in pselect() 285 select(int nfds, fd_set *in0, fd_set *out0, fd_set *ex0, struct timeval *tv) in select() argument 312 return (pselect(nfds, in0, out0, ex0, tsp, NULL)); in select()
|
H A D | closefrom.c | 64 int nfds; in fdwalk() local 67 nfds = 0; in fdwalk() 80 if (fds_sz <= nfds * sizeof (int)) { in fdwalk() 84 fds[nfds++] = i; in fdwalk() 98 if (fds_sz <= nfds * sizeof (int)) { in fdwalk() 102 fds[nfds++] = i; in fdwalk() 116 for (i = 0; i < nfds; i++) in fdwalk()
|
H A D | select_large_fdset.c | 73 pselect_large_fdset(int nfds, fd_set *in0, fd_set *out0, fd_set *ex0, in pselect_large_fdset() argument 102 if (nfds >= 0 && nfds <= FD_SETSIZE) { in pselect_large_fdset() 146 for (n = 0; n < nfds; n += NFDBITS) { in pselect_large_fdset() 151 if (p->fd < nfds) { in pselect_large_fdset() 198 for (n = 0; n < nfds; n += NFDBITS) in pselect_large_fdset() 203 for (n = 0; n < nfds; n += NFDBITS) in pselect_large_fdset() 208 for (n = 0; n < nfds; n += NFDBITS) in pselect_large_fdset() 336 select_large_fdset(int nfds, fd_set *in0, fd_set *out0, fd_set *ex0, in select_large_fdset() argument 364 return (pselect_large_fdset(nfds, in0, out0, ex0, tsp, NULL)); in select_large_fdset()
|
/titanic_44/usr/src/uts/common/syscall/ |
H A D | poll.c | 291 poll_common(pollfd_t *fds, nfds_t nfds, timespec_t *tsp, k_sigset_t *ksetp) in poll_common() argument 346 if (nfds == 0) { in poll_common() 363 if (nfds > p->p_fno_ctl) { in poll_common() 394 if (nfds != old_nfds) { in poll_common() 397 pollfdp = kmem_alloc(nfds * sizeof (pollfd_t), KM_SLEEP); in poll_common() 399 ps->ps_nfds = nfds; in poll_common() 403 if (copyin(fds, pollfdp, nfds * sizeof (pollfd_t))) { in poll_common() 432 pcache_create(pcp, nfds); in poll_common() 464 error = pcacheset_resolve(ps, nfds, &fdcnt, in poll_common() 503 error = pcacheset_resolve(ps, nfds, &fdcnt, cacheindex); in poll_common() [all …]
|
/titanic_44/usr/src/cmd/consadm/ |
H A D | consadm.c | 659 nfds_t nfds = 0; in fallbackdaemon() local 731 fds[nfds].fd = fd; in fallbackdaemon() 732 fds[nfds].events = 0; in fallbackdaemon() 734 if ((devpaths[nfds] = in fallbackdaemon() 738 (void) strcpy(devpaths[nfds], ptr); in fallbackdaemon() 739 nfds++; in fallbackdaemon() 740 if (nfds >= cachesize) in fallbackdaemon() 760 fds[nfds].fd = fd; in fallbackdaemon() 761 fds[nfds].events = 0; in fallbackdaemon() 763 if ((devpaths[nfds] = malloc(strlen(ptr) + 1)) == NULL) in fallbackdaemon() [all …]
|
/titanic_44/usr/src/lib/libslp/clib/ |
H A D | slp_net.c | 342 nfds_t nfds; in slp_mc_send() local 351 if (make_mc_target(hp, sin, header, &pfd, &nfds, &bcifs) != SLP_OK) in slp_mc_send() 381 mc_recvmsg(pfd, nfds, hp, scopes, header, &collator, final_to, in slp_mc_send() 393 free_pfds(pfd, nfds); in slp_mc_send() 701 struct pollfd **fds, nfds_t *nfds, in make_mc_target() argument 757 *nfds = num_givenifs; in make_mc_target() 777 free_pfds(*fds, *nfds); in make_mc_target() 860 *nfds = 1; in make_mc_target() 864 for (nfd_i = 0; nfd_i < *nfds; nfd_i++) { in make_mc_target() 1006 static void mc_recvmsg(struct pollfd *pfd, nfds_t nfds, slp_handle_impl_t *hp, in mc_recvmsg() argument [all …]
|
/titanic_44/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) in poll_wrapper() argument 168 debug_log("POLL start: (0x%p, %d, %d)\n", fds, nfds, timeout); in poll_wrapper() 170 ret = poll(fds, nfds, timeout); in poll_wrapper() 175 fds, nfds, timeout, ret, (*elapsed)); in poll_wrapper() 181 dppoll(int pollfd, pollfd_t *fds, nfds_t nfds, int timeout, time_t *elapsed) in dppoll() argument 188 arg.dp_nfds = nfds; in dppoll() 191 debug_log("DP_POLL start: (0x%p, %d, %d)\n", fds, nfds, timeout); in dppoll()
|
/titanic_44/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, in prldap_poll() argument 240 if ( prsessp->prsess_pollds_count < nfds ) { in prldap_poll() 242 ( nfds + PRLDAP_POLL_ARRAY_GROWTH ) in prldap_poll() 249 prsessp->prsess_pollds_count = nfds + PRLDAP_POLL_ARRAY_GROWTH; in prldap_poll() 255 for ( i = 0; i < nfds; ++i ) { in prldap_poll() 274 rc = PR_Poll( pds, nfds, in prldap_poll() 278 for ( i = 0; i < nfds; ++i ) { in prldap_poll()
|
/titanic_44/usr/src/cmd/rm/ |
H A D | rm.c | 84 static int nfds; variable 212 nfds--; in closeframe() 245 if (nfds >= maxfds) in opendirat() 250 if (nfds < maxfds) in opendirat() 251 maxfds = nfds; in opendirat() 263 nfds++; in opendirat()
|
/titanic_44/usr/src/uts/common/io/ |
H A D | devpoll.c | 240 dp_pcache_poll(pollfd_t *pfdp, pollcache_t *pcp, nfds_t nfds, int *fdcntp) in dp_pcache_poll() argument 275 while ((fdcnt < nfds) && !done) { in dp_pcache_poll() 734 nfds_t nfds; in dpioctl() local 758 if ((nfds = STRUCT_FGET(dvpoll, dp_nfds)) == 0) { in dpioctl() 785 if (ps->ps_dpbufsize < nfds) { in dpioctl() 792 if (nfds > p->p_fno_ctl) { in dpioctl() 801 nfds, KM_SLEEP); in dpioctl() 802 ps->ps_dpbufsize = nfds; in dpioctl() 808 error = dp_pcache_poll(ps->ps_dpbuf, pcp, nfds, &fdcnt); in dpioctl()
|
/titanic_44/usr/src/cmd/ttymon/ |
H A D | tmhandler.c | 226 do_poll(fdp,nfds) in do_poll() argument 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; in main() local 129 nfds = set_poll(Pollp); in main() 131 if (nfds > 0) in main() 132 do_poll(Pollp, nfds); in main()
|
/titanic_44/usr/src/cmd/krb5/kadmin/server/ |
H A D | ovsec_kadmd.c | 1243 int nfds = 0; in kadm_svc_run() local 1250 if (nfds != svc_max_pollfd) { in kadm_svc_run() 1252 nfds = svc_max_pollfd; in kadm_svc_run() 1258 for (i = 0; i < nfds; i++) { in kadm_svc_run() 1266 switch(pollret = poll(rfd, nfds, in kadm_svc_run() 1276 for (i = 0; i < nfds; i++) { in kadm_svc_run() 1286 if (i == (nfds - 1)) in kadm_svc_run()
|
/titanic_44/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) in empty() argument 725 return (select(nfds, mask, NULL, NULL, &t)); in empty() 965 int nfds = fileno(ctrl_in); in sendrequest() local 979 FD_SET(nfds, &mask); in sendrequest() 980 nfds = MAX(dfn, nfds); in sendrequest() 987 (void) select(nfds + 1, &mask, NULL, NULL, NULL); in sendrequest() 1062 int nfds; in recvrequest() local 1397 nfds = fileno(ctrl_in) + 1; in recvrequest() 1402 nfds = MAX(fileno(din) + 1, nfds); in recvrequest() [all …]
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/include/ |
H A D | cm.h | 30 int max, nfds; member
|
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | mDNSPosix.h | 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) in mDNSPosixAddToFDSet() argument 1558 if (*nfds < s + 1) *nfds = s + 1; in mDNSPosixAddToFDSet() 1562 mDNSexport void mDNSPosixGetFDSet(mDNS *m, int *nfds, fd_set *readfds, struct timeval *timeout) in mDNSPosixGetFDSet() argument 1572 if (m->p->unicastSocket4 != -1) mDNSPosixAddToFDSet(nfds, readfds, m->p->unicastSocket4); in mDNSPosixGetFDSet() 1574 if (m->p->unicastSocket6 != -1) mDNSPosixAddToFDSet(nfds, readfds, m->p->unicastSocket6); in mDNSPosixGetFDSet() 1578 if (info->multicastSocket4 != -1) mDNSPosixAddToFDSet(nfds, readfds, info->multicastSocket4); in mDNSPosixGetFDSet() 1580 if (info->multicastSocket6 != -1) mDNSPosixAddToFDSet(nfds, readfds, info->multicastSocket6); in mDNSPosixGetFDSet()
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | sendto_kdc.c | 858 selstate->nfds++; in start_connection() 939 selstate->nfds--; in kill_conn() 1180 while (selstate->nfds > 0 in service_fds() 1332 sel_state->nfds = 0; in krb5int_sendto() 1373 if (pass > 0 && sel_state->nfds == 0) in krb5int_sendto() 1394 if (sel_state->nfds == 0) in krb5int_sendto() 1399 if (sel_state->nfds == 0) { in krb5int_sendto()
|
/titanic_44/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | dcs_ses.c | 477 ses_poll(struct pollfd fds[], nfds_t nfds, int timeout) in ses_poll() argument 484 err = poll(fds, nfds, timeout); in ses_poll()
|
H A D | dcs.h | 298 int ses_poll(struct pollfd fds[], nfds_t nfds, int timeout);
|
/titanic_44/usr/src/cmd/rexd/ |
H A D | on.c | 219 int nfds, cc; in main() local 580 nfds = select(FD_SETSIZE, &selmask, (fd_set *) 0, (fd_set *) 0, in main() 584 if (nfds <= 0) { in main()
|
/titanic_44/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | sasl.c | 315 LDAP_X_PollFD fds[], int nfds, int timeout, in nsldapi_sasl_poll() argument 330 if (fds && nfds > 0) { in nsldapi_sasl_poll() 331 for(i = 0; i < nfds; i++) { in nsldapi_sasl_poll() 341 return ( ld->ld_sasl_io_fns.lextiof_poll( fds, nfds, timeout, in nsldapi_sasl_poll()
|
/titanic_44/usr/src/lib/print/libhttp-core/common/ |
H A D | http.c | 2101 int nfds; /* Result from select() */ in http_wait() local 2171 nfds = select(http->fd + 1, http->input_set, NULL, NULL, &timeout); in http_wait() 2174 nfds = select(http->fd + 1, http->input_set, NULL, NULL, NULL); in http_wait() 2177 while (nfds < 0 && WSAGetLastError() == WSAEINTR); in http_wait() 2179 while (nfds < 0 && errno == EINTR); in http_wait() 2184 return (nfds > 0); in http_wait()
|
/titanic_44/usr/src/cmd/fs.d/nfs/lib/ |
H A D | nfs_tbind.c | 675 int nfds; in poll_for_action() local 683 nfds = poll(poll_array, num_fds, INFTIM); in poll_for_action() 684 switch (nfds) { in poll_for_action() 717 for (i = 0; i < num_fds && nfds > 0; i++) { in poll_for_action() 719 nfds--; in poll_for_action()
|