SIMPLE SOLUTIONS

GETDTABLESIZE(2FREEBSD) - Linux man page online | System calls

Get file descriptor limit.

Chapter
April 24, 2013
GETDTABLESIZE(2) BSD System Calls Manual GETDTABLESIZE(2)

NAME

getdtablesize — get file descriptor limit

LIBRARY

Standard C Library (libc, -lc)

SYNOPSIS

#include <unistd.h> int getdtablesize(void);

DESCRIPTION

The getdtablesize() system call returns the maximum number of file descriptors that the cur‐ rent 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.

SEE ALSO

close(2), closefrom(2), dup(2), getrlimit(2), sysconf(3)

HISTORY

The getdtablesize() system call appeared in 4.2BSD.
BSD April 24, 2013 BSD
This manual Reference Other manuals
getdtablesize(2freebsd) referred by dup(2freebsd) | dup2(2freebsd) | errno(2freebsd) | fcntl(2freebsd) | intro(2freebsd) | open(2freebsd) | openat(2freebsd) | select(2freebsd) | strace(1) | strace64(1)
refer to close(2) | closefrom(2freebsd) | dup(2) | getrlimit(2) | sysconf(3)
Download raw manual
Main page BSD System Calls Manual (+360) BSD (+3984) № 2 (+877)
Go top