NAME
getdtablesize —
get the file descriptor table size (LEGACY)
SYNOPSIS
#include <unistd.h> int getdtablesize(void);
DESCRIPTION
The getdtablesize() function is equivalent to getrlimit(3) with the RLIMIT_NOFILE option.
This interface need not be reentrant.
RETURN VALUE
The getdtablesize() function returns the current soft limit as if obtained from a call to getrlimit(3) with the RLIMIT_NOFILE option.
ERRORS
No errors are defined.
EXAMPLES
None.
APPLICATION USAGE
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.
FUTURE DIRECTIONS
None.
SEE ALSO
close(3) , getrlimit(3) , open(3) , select(3) , setrlimit(3) , <limits.h> , <unistd.h> .