Lines Matching refs:fd_table_max
103 static int fd_table_max = 0;
434 if(fde->fd >= fd_table_max) {
435 int oldmax = fd_table_max;
439 if(fd_table_max == 0) {
441 fd_table_max = 256;
443 while(fd_table_max <= fde->fd) {
444 fd_table_max *= 2;
446 fd_table = realloc(fd_table, sizeof(fdevent*) * fd_table_max);
448 FATAL("could not expand fd_table to %d entries\n", fd_table_max);
450 memset(fd_table + oldmax, 0, sizeof(int) * (fd_table_max - oldmax));
458 if((fde->fd < 0) || (fde->fd >= fd_table_max)) {
523 if((fd < 0) || (fd >= fd_table_max)) {
535 if((subproc_fd < 0) || (subproc_fd >= fd_table_max)) {
536 D("subproc_fd %d out of range 0, fd_table_max=%d\n",
537 subproc_fd, fd_table_max);