[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    getdtablesize(3C) manual page Table of Contents

Name

getdtablesize - get file descriptor table size

Synopsis

#include <unistd.h>

int getdtablesize(void);

Description

Each process has a file descriptor table which is guaranteed to have at least 20 slots. The entries in the descriptor table are numbered with small integers starting at 0. The getdtablesize() function returns the current maximum size of this table by calling the getrlimit() function.

See Also

close(2) , getrlimit(2) , open(2) , pipe(2) , select(3C) sysconf(3C)


Table of Contents