1getdtablesize(3C) Standard C Library Functions getdtablesize(3C)
2
3
4
6 getdtablesize - get the file descriptor table size
7
9 #include <unistd.h>
10
11 int getdtablesize(void);
12
13
15 The getdtablesize() function is equivalent to getrlimit(2) with the
16 RLIMIT_NOFILE option.
17
19 The getdtablesize() function returns the current soft limit as if
20 obtained from a call to getrlimit() with the RLIMIT_NOFILE option.
21
23 No errors are defined.
24
26 There is no direct relationship between the value returned by getdta‐
27 blesize() and OPEN_MAX defined in <limits.h>.
28
29
30 Each process has a file descriptor table which is guaranteed to have at
31 least 20 slots. The entries in the descriptor table are numbered with
32 small integers starting at 0. The getdtablesize() function returns the
33 current maximum size of this table by calling the getrlimit() function.
34
36 close(2), getrlimit(2), open(2), setrlimit(2), select(3C)
37
38
39
40SunOS 5.11 1 Mar 1996 getdtablesize(3C)