Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

getdtablesize - get size of descriptor table

&pagelevel(4)&pagelevel

Syntax

#include <unistd.h>

int getdtablesize(void);

Description getdtablesize() is equivalent to the getrlimit() function if RLIMIT_NOFILE is

specified.

getdtablesize() is not thread-safe.

Return val.

Current limit for the number of simultaneously open file descriptors per process

if successful.

-1

if an error occurs.

Notes

There is no direct relationship between the value returned by getdtablesize() and the
{OPEN_MAX} constant defined in limits.h.

See also

close(), getrlimit(), open(), select(), setrlimit(), limits.h, unistd.h.