getdtablesize

Name

getdtablesize -- get file descriptor table size (DEPRECATED)

Synopsis

#include <unistd.h>

int getdtablesize (void );

Description

The function getdtablesize() returns the number of files a process can have open.

Note: The getdtablesize() function is deprecated. Portable applications should call getrlimit() with the RLIMIT_NOFILE option instead.

Return Value

The getdtablesize() function returns the current soft limit as if obtained by a call to getrlimit() with the RLIMIT_NOFILE option.

Errors

No errors are defined.