getdtablesize (3)
Leading comments
Copyright 1993 Rickard E. Faith (faith@cs.unc.edu) %%%LICENSE_START(VERBATIM) Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Since th...
NAME
getdtablesize - get descriptor table sizeSYNOPSIS
#include <unistd.h>int getdtablesize(void);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
getdtablesize():
-
- Since glibc 2.12:
-
_BSD_SOURCE || !(_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600)
- Before glibc 2.12: _BSD_SOURCE || _XOPEN_SOURCE >= 500 || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
DESCRIPTION
getdtablesize() returns the maximum number of files a process can have open, one more than the largest possible value for a file descriptor.RETURN VALUE
The current limit on the number of open files per process.ERRORS
On Linux, getdtablesize() can return any of the errors described for getrlimit(2); see NOTES below.ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).Interface | Attribute | Value |
getdtablesize() | Thread safety | MT-Safe |