diff options
Diffstat (limited to 'lib/libc/alpha/gen/netbsd_getdtablesize.c')
-rw-r--r-- | lib/libc/alpha/gen/netbsd_getdtablesize.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/libc/alpha/gen/netbsd_getdtablesize.c b/lib/libc/alpha/gen/netbsd_getdtablesize.c new file mode 100644 index 0000000..9ceb711 --- /dev/null +++ b/lib/libc/alpha/gen/netbsd_getdtablesize.c @@ -0,0 +1,21 @@ +/* $Id$ */ +/* From: NetBSD: getdtablesize.c,v 1.5 1997/07/21 14:06:26 jtc Exp */ + +/* + * Written by J.T. Conklin <jtc@netbsd.org>. + * Public domain. + */ + +#include <sys/cdefs.h> +#if defined(LIBC_SCCS) && !defined(lint) +static const char rcsid[] = + "$Id$"; +#endif /* LIBC_SCCS and not lint */ + +#include <unistd.h> + +int +getdtablesize() +{ + return sysconf(_SC_OPEN_MAX); +} |