2012-11-15 12:06:41 +01:00
|
|
|
/* $NetBSD: getdtablesize.c,v 1.10 2012/06/24 15:26:03 christos Exp $ */
|
2011-02-14 20:36:03 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Written by J.T. Conklin <jtc@NetBSD.org>.
|
|
|
|
* Public domain.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#if defined(LIBC_SCCS) && !defined(lint)
|
2012-11-15 12:06:41 +01:00
|
|
|
__RCSID("$NetBSD: getdtablesize.c,v 1.10 2012/06/24 15:26:03 christos Exp $");
|
2011-02-14 20:36:03 +01:00
|
|
|
#endif /* LIBC_SCCS and not lint */
|
|
|
|
|
|
|
|
#include "namespace.h"
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
int
|
2012-11-15 12:06:41 +01:00
|
|
|
getdtablesize(void)
|
2011-02-14 20:36:03 +01:00
|
|
|
{
|
|
|
|
return ((int)sysconf(_SC_OPEN_MAX));
|
|
|
|
}
|