Searched defs:nfds (Results 1 - 25 of 30) sorted by relevance

12

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dclosefrom.c64 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 Dselect.c58 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 Dselect_large_fdset.c73 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/ttymon/
H A Dttymon.c93 int nfds; local
129 nfds = set_poll(Pollp);
131 if (nfds > 0)
132 do_poll(Pollp, nfds);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/include/
H A Dcm.h30 int max, nfds; member in struct:select_state
/illumos-gate/usr/src/cmd/rexd/
H A Dunix_login.c572 HelperRead(pollfd_t *fdp, int nfds, int *pollretval) argument
586 for (i = 0; i < nfds; i++) {
H A Don.c219 int nfds, cc; local
580 nfds = select(FD_SETSIZE, &selmask, (fd_set *) 0, (fd_set *) 0,
584 if (nfds <= 0) {
/illumos-gate/usr/src/cmd/rm/
H A Drm.c84 static int nfds; variable
212 nfds--;
245 if (nfds >= maxfds)
250 if (nfds < maxfds)
251 maxfds = nfds;
263 nfds++;
/illumos-gate/usr/src/cmd/ctwatch/
H A Dctwatch.c236 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/dcs/sparc/sun4u/
H A Ddcs_ses.c477 ses_poll(struct pollfd fds[], nfds_t nfds, int timeout) argument
484 err = poll(fds, nfds, timeout);
/illumos-gate/usr/src/test/os-tests/tests/poll/
H A Dpoll_test.c163 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/libresolv2/common/isc/
H A Deventlib.c736 pselect(int nfds, void *rfds, void *wfds, void *efds, argument
749 UNUSED(nfds);
763 n = select(nfds, rfds, wfds, efds, tvp);
/illumos-gate/usr/src/lib/libldap5/sources/ldap/prldap/
H A Dldappr-io.c51 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/lib/libslp/clib/
H A Dslp_net.c342 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/lib/libldap5/sources/ldap/common/
H A Dsasl.c315 LDAP_X_PollFD fds[], int nfds, int timeout,
330 if (fds && nfds > 0) {
331 for(i = 0; i < nfds; i++) {
341 return ( ld->ld_sasl_io_fns.lextiof_poll( fds, nfds, timeout,
314 nsldapi_sasl_poll( LDAP_X_PollFD fds[], int nfds, int timeout, struct lextiof_session_private *arg ) argument
H A Dos-ip.c144 extern int _poll(struct pollfd *fds, unsigned long nfds, int timeout);
145 extern int _select(int nfds, fd_set *readfds, fd_set *writefds,
1535 nsldapi_ext_compat_poll( LDAP_X_PollFD fds[], int nfds, int timeout, argument
1549 for ( i = 0; i < nfds; ++i ) {
1593 for ( i = 0; i < nfds; ++i ) {
/illumos-gate/usr/src/cmd/consadm/
H A Dconsadm.c659 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/cmd/krb5/kadmin/server/
H A Dovsec_kadmd.c1243 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/libresolv2/common/resolv/
H A Dres_send.c1125 pselect(int nfds, void *rfds, void *wfds, void *efds, argument
1139 n = select(nfds, rfds, wfds, efds, tvp);
/illumos-gate/usr/src/uts/common/io/
H A Ddevpoll.c249 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/lib/print/libhttp-core/common/
H A Dhttp.c2101 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/cmd/avs/rdc/
H A Dsndrd.c724 int nfds; local
732 nfds = poll(poll_array, num_fds, INFTIM);
733 switch (nfds) {
766 for (i = 0; i < num_fds && nfds > 0; i++) {
768 nfds--;
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dnfs_tbind.c675 int nfds; local
683 nfds = poll(poll_array, num_fds, INFTIM);
684 switch (nfds) {
717 for (i = 0; i < num_fds && nfds > 0; i++) {
719 nfds--;
/illumos-gate/usr/src/lib/librsm/common/
H A Drsmlib.c2598 rsm_intr_signal_wait_pollfd(struct pollfd fds[], nfds_t nfds, int timeout, argument
2601 return (__rsm_intr_signal_wait_common(fds, NULL, nfds, timeout,
2617 nfds_t nfds, int timeout, int *numfdsp)
2635 numfd = poll(fds, nfds, timeout);
2685 for (i = 0; i < nfds; i++) {
2616 __rsm_intr_signal_wait_common(struct pollfd fds[], minor_t rnums[], nfds_t nfds, int timeout, int *numfdsp) argument
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmain.c2645 int n, nfds; local
2738 nfds = (ofd > pty_master? ofd: pty_master) + 1;
2772 if (select(nfds, &ready, &writey, NULL, top) < 0) {

Completed in 283 milliseconds

12