| /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/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/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/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++) {
|
| /src/usr.sbin/rarpd/ |
| rarpd.c | 440 int bufsize, maxfd = 0; local 463 if (ii->ii_fd > maxfd) 464 maxfd = ii->ii_fd; 468 if (select(maxfd + 1, &listeners, (struct fd_set *) 0,
|
| /src/usr.bin/make/ |
| meta.c | 1617 int outfd, metafd, maxfd, nfds; local 1629 maxfd = -1; 1630 if (outfd > maxfd) 1631 maxfd = outfd; 1632 if (metafd > maxfd) 1633 maxfd = metafd; 1643 nfds = select(maxfd + 1, &readfds, NULL, NULL, NULL);
|
| job.c | 2753 int i, maxfd, nselect, npoll; local 2760 maxfd = -1; 2770 if (fd[i].fd > maxfd) 2771 maxfd = fd[i].fd; 2774 if (maxfd >= FD_SETSIZE) { 2788 nselect = select(maxfd + 1, &rfds, &wfds, NULL, tvp);
|
| /src/tests/dev/audio/ |
| audiotest.c | 177 int maxfd; variable 416 if (r > maxfd) 417 maxfd = r; 479 /* maxfd-1 may not valid fd but no matter */ 480 if (fd == maxfd) 481 maxfd--; 734 for (fd = 3; fd <= maxfd; fd++) { 738 maxfd = 3;
|