getdtablesize()
The call getdtablesize() returns the current value of the soft limit component of the RLIMIT_NOFILE resource limit. This resource limit governs the maximum value allowable as the index of a newly created descriptor.
Because of possible intervening getrlimit.2 calls affecting RLIMIT_NOFILE, repeated calls to getdtablesize() may return different values. Thus it is unwise to cache the return value in an effort to avoid system call overhead, unless it is known that such intervening calls do not occur.
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97