/freebsd-9.3-release/contrib/openbsm/compat/ |
H A D | closefrom.h | 40 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 D | bsd-closefrom.c | 71 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 D | bsd-poll.c | 46 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 D | session.c | 157 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 D | server.c | 142 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 D | client.c | 105 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 D | bthidd.h | 48 int32_t maxfd; /* max fd in sets */ member in struct:bthid_server
|
/freebsd-9.3-release/contrib/bind9/lib/isc/unix/ |
H A D | entropy.c | 392 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 D | entropy.c | 392 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 D | ssh-keyscan.c | 70 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 D | proxy.c | 237 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 D | cl_read.c | 149 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 D | ip_read.c | 113 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 D | opieauto.c | 329 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 D | hastd.c | 170 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 D | ftp.c | 122 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 D | tcp.c | 199 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 D | server.h | 64 int32_t maxfd; /* max. descriptor is the set */ member in struct:server
|
H A D | server.c | 194 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 D | auditdistd.c | 504 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 D | sys_bsd.c | 920 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 D | rrenumd.c | 534 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 D | main.c | 244 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 D | rtsold.c | 126 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 D | rpoll.c | 189 static int maxfd; /* maximum fd number */ variable 358 maxfd = -1; 361 if(p->fd > maxfd) 362 maxfd = p->fd; 561 ret = select(maxfd+1,
|