/* $NetBSD: getdtablesize.c,v 1.9 2003/07/26 19:24:41 salo Exp $ */ /* * Written by J.T. Conklin . * Public domain. */ #include #if defined(LIBC_SCCS) && !defined(lint) __RCSID("$NetBSD: getdtablesize.c,v 1.9 2003/07/26 19:24:41 salo Exp $"); #endif /* LIBC_SCCS and not lint */ #include "namespace.h" #include int getdtablesize() { return ((int)sysconf(_SC_OPEN_MAX)); }