1GETDTABLESIZE(2)           Linux Programmer's Manual          GETDTABLESIZE(2)
2
3
4

NAME

6       getdtablesize - get descriptor table size
7

SYNOPSIS

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

DESCRIPTION

14       getdtablesize()  returns the maximum number of files a process can have
15       open, one more than the largest possible value for a file descriptor.
16

RETURN VALUE

18       The current limit on the number of open files per process.
19

NOTES

21       getdtablesize() is implemented as a libc library  function.  The  glibc
22       version calls getrlimit(2) and returns the current RLIMIT_NOFILE limit,
23       or OPEN_MAX when that fails.   The  libc4  and  libc5  versions  return
24       OPEN_MAX (set to 256 since Linux 0.98.4).
25

CONFORMING TO

27       SVr4,  4.4BSD  (the getdtablesize() function first appeared in 4.2BSD).
28       It is not  specified  in  POSIX.1-2001;  portable  applications  should
29       employ sysconf(_SC_OPEN_MAX) instead of this call.
30

SEE ALSO

32       close(2), dup(2), getrlimit(2), open(2)
33
34
35
36Linux 2.4                         2002-04-15                  GETDTABLESIZE(2)
Impressum