#include <unistd.h> int getdtablesize(void);
Get the maximum number of open file descriptors the system supports.
255