getdtablesize()

NAME

getdtablesize() - return file descriptor table size

SYNOPSIS

#include <unistd.h>

int getdtablesize(void);

DESCRIPTION

The getdtablesize(3) call returns the current limit on the number of file descriptors.

This is equivalent to the call getrlimit(2) with the option RLIMIT_NOFILE.

RETURN VALUE

The getdtablesize(3) function returns the current soft limit on the number of files open by a process.

NOTES

In previous releases of INTERIX, this was a macro that returned {OPEN_MAX}. It's equivalent to:

sysconf(_SC_OPEN_MAX);

SEE ALSO

select(2)