[OpenBSD]

Manual Page Search Parameters

GETDTABLECOUNT(2) System Calls Manual GETDTABLECOUNT(2)

getdtablecount
get descriptor table count

#include <unistd.h>
int
getdtablecount(void);

getdtablecount() returns the number of file descriptors the process currently has open.

getrlimit(2), getdtablesize(3)

The getdtablecount() function appeared in OpenBSD 5.2.
May 31, 2015 OpenBSD-5.8