Gets the descriptor table size.
Standard C Library (libc.a)
#include <unistd.h>
int getdtablesize (void)
The getdtablesize subroutine is used to determine the size of the file descriptor table.
The size of the file descriptor table for a process is set by the ulimit command or by the setrlimit subroutine. The getdtablesize subroutine returns the current size of the table as reported by the getrlimit subroutine. If getrlimit reports that the table size is unlimited, getdtablesize instead returns the value of OPEN_MAX, which is the largest possible size of the table.
The getdtablesize subroutine returns the size of the descriptor table.