Searched refs:maxfd (Results 1 - 25 of 41) sorted by relevance

12

/freebsd-9.3-release/contrib/openbsm/compat/
H A Dclosefrom.h40 int error, fd, maxfd; local
44 maxfd = sysconf(_SC_OPEN_MAX);
45 if (maxfd < 0)
46 maxfd = 16384;
47 for (fd = lowfd; fd <= maxfd; fd++)
/freebsd-9.3-release/crypto/openssh/openbsd-compat/
H A Dbsd-closefrom.c71 long fd, maxfd; local
97 maxfd = sysconf(_SC_OPEN_MAX);
99 maxfd = getdtablesize();
101 if (maxfd < 0)
102 maxfd = OPEN_MAX;
104 for (fd = lowfd; fd < maxfd; fd++)
H A Dbsd-poll.c46 int saved_errno, ret, fd, maxfd = 0; local
57 maxfd = MAX(maxfd, fd);
60 nmemb = howmany(maxfd + 1 , NFDBITS);
91 ret = select(maxfd + 1, readfds, writefds, exceptfds, tvp);
/freebsd-9.3-release/usr.sbin/bluetooth/bthidd/
H A Dsession.c157 if (s->srv->maxfd == s->intr)
158 s->srv->maxfd --;
166 if (s->srv->maxfd == s->ctrl)
167 s->srv->maxfd --;
174 if (s->srv->maxfd == s->vkbd)
175 s->srv->maxfd --;
H A Dserver.c142 srv->maxfd = max(srv->ctrl, srv->intr);
186 n = select(srv->maxfd + 1, &rfdset, &wfdset, NULL, &tv);
192 srv->maxfd + 1, &rfdset, &wfdset, strerror(errno), errno);
198 for (fd = 0; fd < srv->maxfd + 1 && n > 0; fd ++) {
273 if (new_fd > srv->maxfd)
274 srv->maxfd = new_fd;
285 if (s->vkbd > srv->maxfd)
286 srv->maxfd = s->vkbd;
H A Dclient.c105 if (s->ctrl > srv->maxfd)
106 srv->maxfd = s->ctrl;
174 if (s->intr > srv->maxfd)
175 srv->maxfd = s->intr;
193 if (s->vkbd > srv->maxfd)
194 srv->maxfd = s->vkbd;
H A Dbthidd.h48 int32_t maxfd; /* max fd in sets */ member in struct:bthid_server
/freebsd-9.3-release/contrib/bind9/lib/isc/unix/
H A Dentropy.c392 int maxfd, fd; local
397 maxfd = -1;
406 maxfd = ISC_MAX(maxfd, fd);
419 maxfd = ISC_MAX(maxfd, fd);
424 maxfd = ISC_MAX(maxfd, fd);
433 if (maxfd < 0)
436 cc = select(maxfd
[all...]
/freebsd-9.3-release/contrib/ntp/lib/isc/unix/
H A Dentropy.c392 int maxfd, fd; local
397 maxfd = -1;
406 maxfd = ISC_MAX(maxfd, fd);
419 maxfd = ISC_MAX(maxfd, fd);
424 maxfd = ISC_MAX(maxfd, fd);
433 if (maxfd < 0)
436 cc = select(maxfd
[all...]
/freebsd-9.3-release/crypto/openssh/
H A Dssh-keyscan.c70 int maxfd; variable
71 #define MAXCON (maxfd - 10)
341 if (s >= maxfd)
367 if (s >= maxfd || fdcon[s].c_status == CS_UNUSED)
549 while (select(maxfd, r, NULL, e, &seltime) == -1 &&
553 for (i = 0; i < maxfd; i++) {
713 maxfd = fdlim_get(1);
714 if (maxfd < 0)
716 if (maxfd > MAXMAXFD)
717 maxfd
[all...]
/freebsd-9.3-release/contrib/ipfilter/samples/
H A Dproxy.c237 int i, n, maxfd; local
240 maxfd = in;
241 if (out > maxfd)
242 maxfd = out;
243 if (net > maxfd)
244 maxfd = net;
267 n = select(maxfd + 1, &rd, &wr, NULL, NULL);
/freebsd-9.3-release/contrib/nvi/cl/
H A Dcl_read.c149 int maxfd, nr, term_reset; local
227 maxfd = STDIN_FILENO;
232 if (sp->script->sh_master > maxfd)
233 maxfd = sp->script->sh_master;
235 switch (select(maxfd + 1, &rdfd, NULL, NULL, NULL)) {
/freebsd-9.3-release/contrib/nvi/ip/
H A Dip_read.c113 int maxfd, nr; local
150 maxfd = ipp->i_fd;
155 if (sp->script->sh_master > maxfd)
156 maxfd = sp->script->sh_master;
158 switch (select(maxfd + 1, &rdfd, NULL, NULL, NULL)) {
/freebsd-9.3-release/contrib/opie/
H A Dopieauto.c329 int maxfd = parents; local
338 if (select(maxfd + 1, &rfds, NULL, NULL, NULL) < 0)
349 if (s[i] == maxfd)
350 maxfd--;
374 if (s[i] > maxfd)
375 maxfd = s[i];
/freebsd-9.3-release/sbin/hastd/
H A Dhastd.c170 long maxfd; local
182 maxfd = sysconf(_SC_OPEN_MAX);
183 if (maxfd == -1) {
189 maxfd = 16384;
191 for (fd = 0; fd <= maxfd; fd++) {
1071 int fd, maxfd, ret; local
1084 maxfd = fd = proto_descriptor(cfg->hc_controlconn);
1093 maxfd = fd > maxfd ? fd : maxfd;
[all...]
/freebsd-9.3-release/usr.sbin/faithd/
H A Dftp.c122 int maxfd = 0;
128 maxfd = ctl4;
132 maxfd = (ctl6 > maxfd) ? ctl6 : maxfd;
137 maxfd = (port4 > maxfd) ? port4 : maxfd;
143 maxfd = (port6 > maxfd)
[all...]
H A Dtcp.c199 int atmark, error, maxfd; local
213 maxfd = (s_rcv > s_snd) ? s_rcv : s_snd;
221 error = select(maxfd + 1, &readfds, &writefds, &exceptfds, &tv);
/freebsd-9.3-release/usr.sbin/bluetooth/sdpd/
H A Dserver.h64 int32_t maxfd; /* max. descriptor is the set */ member in struct:server
H A Dserver.c194 srv->maxfd = (unsock > l2sock)? unsock : l2sock;
232 for (fd = 0; fd < srv->maxfd + 1; fd ++)
256 n = select(srv->maxfd + 1, &fdset, NULL, NULL, NULL);
262 srv->maxfd + 1, &fdset, strerror(errno), errno);
268 for (fd = 0; fd < srv->maxfd + 1 && n > 0; fd ++) {
388 if (srv->maxfd < cfd)
389 srv->maxfd = cfd;
572 if (fd == srv->maxfd)
573 srv->maxfd --;
/freebsd-9.3-release/contrib/openbsm/bin/auditdistd/
H A Dauditdistd.c504 int fd, maxfd, ret; local
517 maxfd = -1;
524 maxfd = fd > maxfd ? fd : maxfd;
533 maxfd = fd > maxfd ? fd : maxfd;
539 PJDLOG_ASSERT(maxfd + 1 <= (int)FD_SETSIZE);
540 ret = select(maxfd
[all...]
/freebsd-9.3-release/contrib/telnet/telnet/
H A Dsys_bsd.c920 int maxfd = -1;
923 if ((netout || netin || netex) && net > maxfd)
924 maxfd = net;
926 if (ttyout && tout > maxfd)
927 maxfd = tout;
928 if (ttyin && tin > maxfd)
929 maxfd = tin;
930 tmp = howmany(maxfd+1, NFDBITS) * sizeof(fd_mask);
961 if ((c = select(maxfd + 1, ibitsp, obitsp, xbitsp,
918 int maxfd = -1; local
/freebsd-9.3-release/usr.sbin/rrenumd/
H A Drrenumd.c534 int ch, i, maxfd = 0, send_counter = 0; local
622 if (s6 > maxfd)
623 maxfd = s6;
627 if (s4 > maxfd)
628 maxfd = s4;
640 if ((i = select(maxfd + 1, &select_fd, NULL, NULL,
/freebsd-9.3-release/usr.sbin/ngctl/
H A Dmain.c244 const int maxfd = MAX(csock, dsock) + 1; local
260 if (select(maxfd, &rfds, NULL, NULL, NULL) <= 0) {
348 const int maxfd = MAX(csock, dsock) + 1; local
360 if (select(maxfd, &rfds, NULL, NULL, &tv) <= 0) {
369 if (select(maxfd, &rfds, NULL, NULL, NULL) < 0)
/freebsd-9.3-release/usr.sbin/rtsold/
H A Drtsold.c126 int maxfd; local
259 maxfd = s;
274 if (rtsock > maxfd)
275 maxfd = rtsock;
279 fdmasks = howmany(maxfd + 1, NFDBITS) * sizeof(fd_mask);
368 e = select(maxfd + 1, selectfdp, NULL, NULL, timeout);
/freebsd-9.3-release/contrib/libbegemot/
H A Drpoll.c189 static int maxfd; /* maximum fd number */ variable
358 maxfd = -1;
361 if(p->fd > maxfd)
362 maxfd = p->fd;
561 ret = select(maxfd+1,

Completed in 175 milliseconds

12