getdtablesize

Gets the total number of file descriptors that a process can have open simultaneously.

Format

#include  <unistd.h>

int getdtablesize  (void);

Description

This function returns the total number of file descriptors that a process can have open simultaneously. Each process is limited to a fixed number of open file descriptors.

The number of file descriptors that a process can have open is the minumum of the following:

Return Values
The number of file descriptors that a process can have open simultaneously. 
- 1  Indicates an error. 


Previous Page | Next Page | Table of Contents | Index