getdtablesize(2) get file descriptor limit

LIBRARY

Lb libc

SYNOPSIS

In unistd.h Ft int Fn getdtablesize void

DESCRIPTION

The Fn getdtablesize system call returns the maximum number of file descriptors that the current process may open. The maximum file descriptor number that the system may assign is the return value minus one. Existing file descriptor numbers may be higher if the limit was lowered after they were opened.

HISTORY

The Fn getdtablesize system call appeared in BSD 4.2