Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
GETDTABLESIZE(2)	  FreeBSD 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	de-
     scriptors that the	current	process	may open.  The maximum file descriptor
     number that the system may	assign is the return value minus one.  Exist-
     ing 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.

FreeBSD	13.0			April 24, 2013			  FreeBSD 13.0

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | SEE ALSO | HISTORY

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=getdtablesize&sektion=2&manpath=FreeBSD+12.1-RELEASE>

home | help