getdtablesize - get the file descriptor table size (LEGACY)
#include <unistd.h> int getdtablesize(void);
The getdtablesize() function is equivalent to getrlimit() with the RLIMIT_NOFILE option.This interface need not be reentrant.
The getdtablesize() function returns the current soft limit as if obtained from a call to getrlimit() with the RLIMIT_NOFILE option.
No errors are defined.
None.
There is no direct relationship between the value returned by getdtablesize() and {OPEN_MAX} defined in <limits.h>.The getrlimit() function returns a value of type rlim_t. This interface, returning an int, may have problems representing appropriate values in the future. Applications should use the getrlimit() function instead.
None.
close(), getrlimit(), open(), select(), setrlimit(), <limits.h>, <unistd.h>.