manual page first distributed with 4.2BSD
[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.\"
5.\" @(#)getdtablesize.2 5.1 (Berkeley) %G%
6.\"
7.TH GETDTABLESIZE 2 "12 February 1983"
8.UC 5
9.SH NAME
10getdtablesize \- get descriptor table size
11.SH SYNOPSIS
12.nf
13.ft B
14nds = getdtablesize()
15int nds;
16.fi
17.SH DESCRIPTION
18Each process has a fixed size descriptor table
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"
25close(2), dup(2), open(2)