Lines Matching defs:max
140 #ifndef max
141 #define max(a,b) ((a) > (b) ? (a) : (b))
143 char tmpbuf[max(NI_MAXHOST + NI_MAXSERV + 30, 200)];
614 dprint("selecting on max=%d sockets [%F] timeout %t\n",
615 out->max,
616 &out->rfds, &out->wfds, &out->xfds, out->max,
618 *sret = select(out->max, &out->rfds, &out->wfds, &out->xfds, timo);
627 dprint(":%F\n", &out->rfds, &out->wfds, &out->xfds, out->max);
722 #ifndef _WIN32 /* On Windows FD_SETSIZE is a count, not a max value. */
837 if (selstate->max <= state->fd)
838 selstate->max = state->fd + 1;
842 &selstate->rfds, &selstate->wfds, &selstate->xfds, selstate->max);
910 /* Fix up max fd for next select call. */
911 if (selstate->max == 1 + conn->fd) {
912 while (selstate->max > 0
913 && ! FD_ISSET(selstate->max-1, &selstate->rfds)
914 && ! FD_ISSET(selstate->max-1, &selstate->wfds)
915 && ! FD_ISSET(selstate->max-1, &selstate->xfds))
916 selstate->max--;
917 dprint("new max_fd + 1 is %d\n", selstate->max);
1170 for (i = 0; i <= (unsigned int)selstate->max && selret > 0 && i < n_conns; i++) {
1296 sel_state->max = 0;