getdtablesize(2freebsd)

getdtablesize2freebsd

Get file descriptor limit

Usage

#include <unistd.h>

int

getdtablesize(void);

Library

Standard C Library (libc, -lc)

Overview

The 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.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11–13

History

The getdtablesize() system call appeared in 4.2BSD.

From freebsd-manpages 12.2-2 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.