rewritten to use writev by Sam; add Berkeley specific header
[unix-history] / usr / src / lib / libc / sys / getdtablesize.2
CommitLineData
e8e12bf1
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
198548ab 5.\" @(#)getdtablesize.2 6.2 (Berkeley) %G%
e8e12bf1 6.\"
9c46b178 7.TH GETDTABLESIZE 2 ""
e8e12bf1
KM
8.UC 5
9.SH NAME
10getdtablesize \- get descriptor table size
11.SH SYNOPSIS
12.nf
13.ft B
9c46b178
KM
14nfds = getdtablesize()
15int nfds;
e8e12bf1
KM
16.fi
17.SH DESCRIPTION
198548ab 18Each process has a fixed size descriptor table,
e8e12bf1
KM
19which is guaranteed to have at least 20 slots. The entries in
20the descriptor table are numbered with small integers starting at 0.
21The call
22.I getdtablesize
23returns the size of this table.
24.SH "SEE ALSO"
9c46b178 25close(2), dup(2), open(2), select(2)