1.\" Copyright (c) 1983, 1991 The Regents of the University of California. 2.\" All rights reserved. 3.\" 4.\" %sccs.include.redist.man% 5.\" 6.\" @(#)getdtablesize.2 6.5 (Berkeley) 03/10/91 7.\" 8.Dd 9.Dt GETDTABLESIZE 2 10.Os BSD 4.2 11.Sh NAME 12.Nm getdtablesize 13.Nd get descriptor table size 14.Sh SYNOPSIS 15.Fd #include <unistd.h> 16.Ft int 17.Fn getdtablesize void 18.Sh DESCRIPTION 19Each process has a fixed size descriptor table, 20which is guaranteed to have at least 20 slots. The entries in 21the descriptor table are numbered with small integers starting at 0. 22The call 23.Fn getdtablesize 24returns the size of this table. 25.Sh SEE ALSO 26.Xr close 2 , 27.Xr dup 2 , 28.Xr open 2 , 29.Xr select 2 30.Sh HISTORY 31The 32.Nm 33function call appeared in 34.Bx 4.2 . 35