Lines Matching refs:fd_table
50 static struct connection *fd_table;
62 if (fd_table[i].fd == fd)
68 fd_table[i] = fd_table[fds_in_use];
69 fd_table[fds_in_use].fd = -1;
77 * fd_table. If the table is full and we get a new descriptor via
81 * things and clean up fd_table. The same happens for any read/write errors.
98 FD_SET(fd_table[i].fd, &readfds);
99 if (maxfd < fd_table[i].fd)
100 maxfd = fd_table[i].fd;
128 fd_table[fds_in_use].fd = fd;
129 fd_table[fds_in_use].tm = t;
135 if (older <= fd_table[i].tm) {
136 older = fd_table[i].tm;
140 close(fd_table[l].fd);
141 fd_table[l].fd = fd;
142 fd_table[l].tm = t;
148 if (FD_ISSET(fd_table[i].fd, &readfds)) {
149 fd_table[i].tm = t;
150 return fd_table[i].fd;
164 if ((fd_table = malloc(fd_table_size * sizeof(struct connection))) == NULL) {
169 fd_table[i].fd = -1;
181 fd_table[fds_in_use].fd = clntfd;