Commit | Line | Data |
---|---|---|
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 | |
10 | getdtablesize \- get descriptor table size | |
11 | .SH SYNOPSIS | |
12 | .nf | |
13 | .ft B | |
14 | nds = getdtablesize() | |
15 | int nds; | |
16 | .fi | |
17 | .SH DESCRIPTION | |
18 | Each process has a fixed size descriptor table | |
19 | which is guaranteed to have at least 20 slots. The entries in | |
20 | the descriptor table are numbered with small integers starting at 0. | |
21 | The call | |
22 | .I getdtablesize | |
23 | returns the size of this table. | |
24 | .SH "SEE ALSO" | |
25 | close(2), dup(2), open(2) |