1getdtablesize(3C)        Standard C Library Functions        getdtablesize(3C)
2
3
4

NAME

6       getdtablesize - get the file descriptor table size
7

SYNOPSIS

9       #include <unistd.h>
10
11       int getdtablesize(void);
12
13

DESCRIPTION

15       The  getdtablesize()  function  is  equivalent to getrlimit(2) with the
16       RLIMIT_NOFILE option.
17

RETURN VALUES

19       The getdtablesize() function returns  the  current  soft  limit  as  if
20       obtained from a call to getrlimit() with the RLIMIT_NOFILE option.
21

ERRORS

23       No errors are defined.
24

USAGE

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

SEE ALSO

36       close(2), getrlimit(2), open(2), setrlimit(2), select(3C)
37
38
39
40SunOS 5.11                        1 Mar 1996                 getdtablesize(3C)
Impressum