GETDTABLEHI(3C) GETDTABLEHI(3C)
getdtablehi - get largest open file descriptor index
#include <unistd.h>
int getdtablehi(void);
getdtablehi returns the index of the largest open descriptor for the
calling process plus one. The 'plus one' makes getdtablehi an ideal
replacement for getdtablesize(2) when the program wishes simply to loop
through and act on all open file descriptors, rather than up to the
system maximum.
close(2), getdtablesize(2), intro(2), open(2), select(2), setrlimit(2)
dup(3C).
PPPPaaaaggggeeee 1111 [ Back ]
|