update from Donn -- fixes for pcc
[unix-history] / usr / src / lib / libc / sys / getdtablesize.2
CommitLineData
931b8415 1.\" Copyright (c) 1983, 1991 The Regents of the University of California.
88b3ccf2 2.\" All rights reserved.
e8e12bf1 3.\"
91cff1e1 4.\" %sccs.include.redist.man%
88b3ccf2 5.\"
931b8415 6.\" @(#)getdtablesize.2 6.5 (Berkeley) %G%
e8e12bf1 7.\"
931b8415
CL
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
198548ab 19Each process has a fixed size descriptor table,
e8e12bf1
KM
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
931b8415 23.Fn getdtablesize
e8e12bf1 24returns the size of this table.
931b8415
CL
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 .