1998-02-27 20:43:20 +03:00
|
|
|
/* $NetBSD: getdtablesize.c,v 1.6 1998/02/27 17:43:20 perry Exp $ */
|
1997-07-13 22:50:06 +04:00
|
|
|
|
1994-06-14 07:54:48 +04:00
|
|
|
/*
|
1995-05-12 03:03:44 +04:00
|
|
|
* Written by J.T. Conklin <jtc@netbsd.org>.
|
|
|
|
* Public domain.
|
1994-06-14 07:54:48 +04:00
|
|
|
*/
|
|
|
|
|
1997-07-13 22:50:06 +04:00
|
|
|
#include <sys/cdefs.h>
|
1994-06-14 07:54:48 +04:00
|
|
|
#if defined(LIBC_SCCS) && !defined(lint)
|
1998-02-27 20:43:20 +03:00
|
|
|
__RCSID("$NetBSD: getdtablesize.c,v 1.6 1998/02/27 17:43:20 perry Exp $");
|
1994-06-14 07:54:48 +04:00
|
|
|
#endif /* LIBC_SCCS and not lint */
|
|
|
|
|
1997-07-21 18:06:24 +04:00
|
|
|
#include "namespace.h"
|
1994-06-14 07:54:48 +04:00
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
int
|
|
|
|
getdtablesize()
|
|
|
|
{
|
1998-02-27 20:43:20 +03:00
|
|
|
return ((int)sysconf(_SC_OPEN_MAX));
|
1994-06-14 09:25:36 +04:00
|
|
|
}
|