OpenBSD manual page server

Manual Page Search Parameters

GETDTABLECOUNT(2) System Calls Manual GETDTABLECOUNT(2)

getdtablecountget 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.

OpenBSD-5.7 January 26, 2014 GETDTABLECOUNT(2)