Loading...
1
2
3
4
5
#include <unistd.h>

int getdtablesize() {
    return sysconf(_SC_OPEN_MAX);
}