int proc_fd_max(void);
no arguments
The maximum number of file handles that the kernel will allocate.
On success, returns file max. On error, -1 is returned.
proc_fd_system(), proc_fd_disp(), proc_fd_limit()