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 | .\" | |
198548ab | 5 | .\" @(#)getdtablesize.2 6.2 (Berkeley) %G% |
e8e12bf1 | 6 | .\" |
9c46b178 | 7 | .TH GETDTABLESIZE 2 "" |
e8e12bf1 KM |
8 | .UC 5 |
9 | .SH NAME | |
10 | getdtablesize \- get descriptor table size | |
11 | .SH SYNOPSIS | |
12 | .nf | |
13 | .ft B | |
9c46b178 KM |
14 | nfds = getdtablesize() |
15 | int nfds; | |
e8e12bf1 KM |
16 | .fi |
17 | .SH DESCRIPTION | |
198548ab | 18 | Each process has a fixed size descriptor table, |
e8e12bf1 KM |
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" | |
9c46b178 | 25 | close(2), dup(2), open(2), select(2) |