date and time created 89/07/02 15:22:51 by mckusick
[unix-history] / usr / src / lib / libc / sys / getdtablesize.2
CommitLineData
88b3ccf2
KB
1.\" Copyright (c) 1983 The Regents of the University of California.
2.\" All rights reserved.
e8e12bf1 3.\"
88b3ccf2
KB
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that the above copyright notice and this paragraph are
6.\" duplicated in all such forms and that any documentation,
7.\" advertising materials, and other materials related to such
8.\" distribution and use acknowledge that the software was developed
9.\" by the University of California, Berkeley. The name of the
10.\" University may not be used to endorse or promote products derived
11.\" from this software without specific prior written permission.
12.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15.\"
16.\" @(#)getdtablesize.2 6.3 (Berkeley) %G%
e8e12bf1 17.\"
9c46b178 18.TH GETDTABLESIZE 2 ""
e8e12bf1
KM
19.UC 5
20.SH NAME
21getdtablesize \- get descriptor table size
22.SH SYNOPSIS
23.nf
24.ft B
9c46b178
KM
25nfds = getdtablesize()
26int nfds;
e8e12bf1
KM
27.fi
28.SH DESCRIPTION
198548ab 29Each process has a fixed size descriptor table,
e8e12bf1
KM
30which is guaranteed to have at least 20 slots. The entries in
31the descriptor table are numbered with small integers starting at 0.
32The call
33.I getdtablesize
34returns the size of this table.
35.SH "SEE ALSO"
9c46b178 36close(2), dup(2), open(2), select(2)