Commit | Line | Data |
---|---|---|
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 | |
21 | getdtablesize \- get descriptor table size | |
22 | .SH SYNOPSIS | |
23 | .nf | |
24 | .ft B | |
9c46b178 KM |
25 | nfds = getdtablesize() |
26 | int nfds; | |
e8e12bf1 KM |
27 | .fi |
28 | .SH DESCRIPTION | |
198548ab | 29 | Each process has a fixed size descriptor table, |
e8e12bf1 KM |
30 | which is guaranteed to have at least 20 slots. The entries in |
31 | the descriptor table are numbered with small integers starting at 0. | |
32 | The call | |
33 | .I getdtablesize | |
34 | returns the size of this table. | |
35 | .SH "SEE ALSO" | |
9c46b178 | 36 | close(2), dup(2), open(2), select(2) |