Returns the largest open file descriptor index.
#include <unistd.h> int getdtablehi ( void );
If successful, returns the largest open file descriptor index, plus 1. Otherwise, returns 0 and sets errno.
The getdtablehi function is not thread-safe, since other threads from the process could be increasing the number of open files.