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:
- DEC C RTL open file limit-65535 on OpenVMS Alpha; 2048 on
OpenVMS VAX.
- SYSGEN CHANNELCNT parameter-permanent I/O channel count.
- Process open file quota FILLM parameter-number of open
files that can be opened by a process at one time.
Return Values
x | The number of file descriptors that
a process can have open simultaneously. |
-
1 | Indicates an error. |
Previous Page | Next Page | Table of Contents | Index