GETDTABLESIZE(3) Library Functions Manual GETDTABLESIZE(3)

getdtablesizeget the file descriptor table size (LEGACY)

#include <unistd.h>

int getdtablesize(void);

The getdtablesize() function is equivalent to getrlimit(3) 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(3) 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 . This interface, returning an , may have problems representing appropriate values in the future. Applications should use the getrlimit() function instead.

None.

close(3) , getrlimit(3) , open(3) , select(3) , setrlimit(3) , <limits.h> , <unistd.h> .

February 1997 posix.fail