getdtablehi(3C)
getdtablehi - get largest open file descriptor index
As shipped in IRIX 6.5. First release of IRIX 6.5.
NAME getdtablehi - get largest open file descriptor index SYNOPSIS #include <unistd.h> int getdtablehi(void); DESCRIPTION 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. SEE ALSO close(2), getdtablesize(2), intro(2), open(2), select(2), setrlimit(2) dup(3C).