Open System Services Library Calls Reference Manual (G06.28+, H06.05+)
OSS Library Calls (g - h) getdtablesize(3)
NAME
getdtablesize - Gets the file descriptor table size
LIBRARY
G-series native OSS processes: /G/system/sysnn/zosshsrl
H-series OSS processes: /G/system/zdllnnn/zosshdll
SYNOPSIS
#include <unistd.h>
int getdtablesize(void);
DESCRIPTION
The getdtablesize() function returns the number of file descriptors that a process may allocate.
This value is one greater than the largest number that can be assigned to a newly created descrip-
tor.
NOTES
The getdtablesize() function can be called by native processes only.
RETURN VALUES
The getdtablesize() function returns the maximum number of file descriptors available.
ERRORS
None. This function does not set errno.
RELATED INFORMATION
Functions: close(2), open(2), select(2).
527187-007 Hewlett-Packard Company 3−25