Gets the descriptor table size.
Standard C Library (libc.a)
#include <unistd.h> int getdtablesize (void)
The getdtablesize subroutine is used to determine the size of the file descriptor table.
The size of the file descriptor table for a process is set by the ulimit command or by the setrlimit subroutine. The getdtablesize subroutine returns the current size of the table as reported by the getrlimit subroutine. If getrlimit reports that the table size is unlimited, getdtablesize instead returns the value of OPEN_MAX, which is the largest possible size of the table.
Note: The getdtablesize subroutine returns a runtime value that is specific to the version of the operating system on which the application is running. In AIX 4.3.1, getdtablesize returns a value that is set in the limits file, which can be different from system to system.
The getdtablesize subroutine returns the size of the descriptor table.
This subroutine is part of Base Operating System (BOS) Runtime.
The close (close Subroutine) subroutine, open (open, openx, open64, creat, or creat64 Subroutine) subroutine, select subroutine.