Searched refs:fd_table_max (Results 1 - 2 of 2) sorted by relevance

/system/core/adb/
H A Dfdevent.c103 static int fd_table_max = 0; variable
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
[all...]
H A Dsysdeps_win32.c1276 static int fd_table_max = 0; variable
1754 if(fd >= fd_table_max) {
1755 int oldmax = fd_table_max;
1759 if(fd_table_max == 0) {
1761 fd_table_max = 256;
1763 while(fd_table_max <= fd) {
1764 fd_table_max *= 2;
1766 fd_table = realloc(fd_table, sizeof(fdevent*) * fd_table_max);
1768 FATAL("could not expand fd_table to %d entries\n", fd_table_max);
1770 memset(fd_table + oldmax, 0, sizeof(int) * (fd_table_max
[all...]

Completed in 64 milliseconds