| /src/lib/libc/rpc/ |
| svc_run.c | 73 int *maxfd, fdsize; local 86 maxfd = svc_fdset_getmax(); 87 if (maxfd == NULL) { 89 warn("%s: can't get maxfd", __func__); 107 switch (select(*maxfd + 1, readfds, NULL, NULL, &timeout)) { 138 int *maxfd, fdsize, i; local 149 maxfd = svc_pollfd_getmax(); 150 if (maxfd == NULL) { 152 warn("can't get maxfd"); 166 memcpy(pfd, svc_pollfd_get(), *maxfd * sizeof(*pfd)) [all...] |
| /src/external/gpl2/xcvs/dist/lib/ |
| sunos57-select.c | 75 int maxfd = -1; local 128 maxfd = MAX (maxfd, fd); 144 maxfd = MAX (maxfd, fd); 148 if (maxfd >= 0) 159 ret = select (maxfd + 1, readfds, writefds, exceptfds, &ztime); 175 ret = select (maxfd + 1, readfds, writefds, exceptfds, timeout);
|
| /src/external/mit/libuv/dist/test/ |
| test-emfile.c | 34 static const int maxfd = 31; variable 55 limits.rlim_cur = limits.rlim_max = maxfd + 1; 76 close(maxfd); 83 close(maxfd - 1); 100 while (first_fd < maxfd) {
|
| /src/usr.sbin/mopd/common/ |
| loop-linux2.c | 99 int bufsize = 1100, maxfd =0; local 122 if (ii->fd > maxfd) 123 maxfd = ii->fd; 128 if (select(maxfd + 1, &listeners, (fd_set *) 0,
|
| /src/usr.sbin/altq/altqd/ |
| altqd.c | 117 int i, c, maxfd, rval, qpsock, fd; local 217 maxfd = 0; 227 maxfd = MAX(maxfd, fd + 1); 231 maxfd = MAX(maxfd, qpsock + 1); 252 if (select(maxfd, &rfds, NULL, NULL, NULL) < 0) { 288 maxfd = MAX(maxfd, newsock + 1);
|
| /src/regress/sys/kern/select/ |
| select.c | 87 int maxfd = -1; local 107 if (fd > maxfd) { 108 maxfd = fd; 121 ret = select(maxfd + 1, &set, NULL, NULL, &to); 142 for (fd = 0; fd <= maxfd; fd++) {
|
| /src/crypto/external/bsd/openssh/dist/ |
| ssh-keyscan.c | 91 int maxfd; variable 92 #define MAXCON (maxfd - 10) 382 if (s >= maxfd) 407 if (s >= maxfd || fdcon[s].c_status == CS_UNUSED) 553 while (ppoll(read_wait, maxfd, &seltime, NULL) == -1) { 559 for (i = 0; i < maxfd; i++) { 752 maxfd = fdlim_get(1); 753 if (maxfd < 0) 755 if (maxfd > MAXMAXFD) 756 maxfd = MAXMAXFD [all...] |
| /src/external/bsd/ipf/dist/samples/ |
| 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);
|
| /src/crypto/external/apache2/openssl/dist/ssl/quic/ |
| quic_reactor.c | 261 int maxfd, pres; local 293 maxfd = rfd; 294 if (wfd > maxfd) 295 maxfd = wfd; 296 if (notify_rfd > maxfd) 297 maxfd = notify_rfd; 334 pres = select(maxfd + 1, &rfd_set, &wfd_set, &efd_set, ptv);
|
| /src/external/bsd/blocklist/bin/ |
| blocklistd.c | 341 addfd(struct pollfd **pfdp, bl_t **blp, size_t *nfd, size_t *maxfd, 347 if (*nfd >= *maxfd) { 348 *maxfd += 10; 349 *blp = reallocarray(*blp, *maxfd, sizeof(**blp)); 352 *pfdp = reallocarray(*pfdp, *maxfd, sizeof(**pfdp)); 525 size_t maxfd = 0; local 528 addfd(&pfd, &bl, &nfd, &maxfd, blsock[i]); 538 addfd(&pfd, &bl, &nfd, &maxfd, line); 542 addfd(&pfd, &bl, &nfd, &maxfd, _PATH_BLSOCK);
|
| /src/external/bsd/nsd/dist/ |
| mini_event.h | 91 /** array of 0 - maxfd of ptr to event for it */ 94 int maxfd; member in struct:event_base
|
| mini_event.c | 212 if((ret = select(base->maxfd+1, &r, &w, NULL, wait)) == -1) { 224 for(i=0; i<base->maxfd+1; i++) { 361 if(ev->ev_fd > ev->ev_base->maxfd) 362 ev->ev_base->maxfd = ev->ev_fd;
|
| /src/external/bsd/unbound/dist/util/ |
| mini_event.c | 194 if((ret = select(base->maxfd+1, &r, &w, NULL, wait)) == -1) { 206 for(i=0; i<base->maxfd+1; i++) { 311 if(ev->ev_fd > ev->ev_base->maxfd) 312 ev->ev_base->maxfd = ev->ev_fd; 343 if(ev->ev_fd == ev->ev_base->maxfd) { 344 int i = ev->ev_base->maxfd - 1; 350 ev->ev_base->maxfd = i;
|
| mini_event.h | 106 /** array of 0 - maxfd of ptr to event for it */ 109 int maxfd; member in struct:event_base
|
| /src/external/bsd/nvi/dist/ex/ |
| ex_script.c | 334 * PUBLIC: int sscr_check_input __P((SCR *sp, fd_set *rdfd, int maxfd)); 337 sscr_check_input(SCR *sp, fd_set *fdset, int maxfd) 350 if (sp->script->sh_master > maxfd) 351 maxfd = sp->script->sh_master; 353 switch (select(maxfd + 1, &rdfd, NULL, NULL, NULL)) { 383 int maxfd; local 387 loop: maxfd = 0; 396 if (sp->script->sh_master > maxfd) 397 maxfd = sp->script->sh_master; 401 switch (select(maxfd + 1, &rdfd, NULL, NULL, &poll)) [all...] |
| /src/external/bsd/ipf/dist/tools/ |
| ipfsyncd.c | 226 int maxfd; local 234 maxfd = nfd; 235 if (lfd > maxfd) 236 maxfd = lfd; 237 debug(2, "nfd %d lfd %d maxfd %d\n", nfd, lfd, maxfd); 250 n = select(maxfd + 1, &rd, NULL, NULL, NULL);
|
| /src/usr.sbin/faithd/ |
| tcp.c | 201 int atmark, error, maxfd; local 215 maxfd = (s_rcv > s_snd) ? s_rcv : s_snd; 223 error = select(maxfd + 1, &readfds, &writefds, &exceptfds, &tv);
|
| /src/external/bsd/nvi/dist/cl/ |
| cl_read.c | 163 int maxfd, nr, term_reset; local 241 maxfd = STDIN_FILENO; 242 if (sscr_check_input(sp, &rdfd, maxfd))
|
| /src/external/gpl3/gdb.old/dist/gdb/ |
| linux-fork.c | 85 int maxfd = 0; member in struct:fork_info 238 for (i = 0; i <= fp->maxfd; i++) 270 fp->maxfd = 0; 276 if (fp->maxfd < tmp) 277 fp->maxfd = tmp; 280 fp->filepos = XRESIZEVEC (off_t, fp->filepos, fp->maxfd + 1); 283 for (tmp = 0; tmp <= fp->maxfd; tmp++)
|
| /src/external/bsd/nvi/dist/ip/ |
| ip_read.c | 219 int maxfd; local 257 maxfd = fd; 258 if (sscr_check_input(sp, &rdfd, maxfd))
|
| /src/crypto/external/bsd/heimdal/dist/kpasswd/ |
| kpasswdd.c | 722 int maxfd; local 756 maxfd = -1; 777 maxfd = max(maxfd, sockets[i]); 778 if (maxfd >= FD_SETSIZE) 785 maxfd = 0; 792 if (maxfd == -1) 801 retx = select(maxfd + 1, &fdset, NULL, NULL, NULL);
|
| /src/external/gpl3/gdb/dist/gdb/ |
| linux-fork.c | 88 int maxfd = 0; member in struct:fork_info 373 for (i = 0; i <= fp->maxfd; i++) 405 fp->maxfd = 0; 411 if (fp->maxfd < tmp) 412 fp->maxfd = tmp; 415 fp->filepos = XRESIZEVEC (off_t, fp->filepos, fp->maxfd + 1); 418 for (tmp = 0; tmp <= fp->maxfd; tmp++)
|
| /src/external/gpl3/gdb/dist/readline/readline/examples/rlfe/ |
| rlfe.c | 385 int maxfd; local 575 maxfd = in_from_inferior_fd > in_from_tty_fd ? in_from_inferior_fd 583 num = select(maxfd+1, &in_set, NULL, NULL, NULL);
|
| /src/external/gpl3/gdb.old/dist/readline/readline/examples/rlfe/ |
| rlfe.c | 385 int maxfd; local 575 maxfd = in_from_inferior_fd > in_from_tty_fd ? in_from_inferior_fd 583 num = select(maxfd+1, &in_set, NULL, NULL, NULL);
|
| /src/usr.bin/mail/ |
| lex.c | 96 int maxfd; local 100 maxfd = fcntl(0, F_MAXFD); 101 if (maxfd == -1) { 107 for (fd = 0; fd <= maxfd; fd++) {
|