Lines Matching refs:maxfd
329 fd_add(fd_set *fdsp, int maxfd, int fd)
333 return (fd > maxfd ? fd : maxfd);
370 int fd, maxfd, minfd;
384 maxfd = *procfdp;
387 maxfd = *sockp;
391 for (fd = STDERR_FILENO + 1; fd < maxfd; fd++) {
395 closefrom(maxfd + 1);
404 int maxfd, nfds;
416 maxfd = -1;
419 maxfd = fd_add(&fds, maxfd,
423 assert(maxfd >= 0);
424 assert(maxfd + 1 <= (int)FD_SETSIZE);
425 nfds = select(maxfd + 1, &fds, NULL, NULL, NULL);