getdtablesize() - return file descriptor table size
#include <unistd.h>
int getdtablesize(void);
The getdtablesize(3) call returns the current limit on the number of file descriptors.
This is equivalent to the call getrlimit(2) with the option RLIMIT_NOFILE.
The getdtablesize(3) function returns the current soft limit on the number of files open by a process.
In previous releases of INTERIX, this was a macro that returned {OPEN_MAX}. It's equivalent to:
sysconf(_SC_OPEN_MAX);
select(2)