blob: 058fc8f8a9a728bbadca920d6e56c3d7d2eed990 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* $NetBSD: getdtablesize.c,v 1.10 2012/06/24 15:26:03 christos Exp $ */
/*
* Written by J.T. Conklin <jtc@NetBSD.org>.
* Public domain.
*/
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: getdtablesize.c,v 1.10 2012/06/24 15:26:03 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
#include <unistd.h>
int
getdtablesize(void)
{
return ((int)sysconf(_SC_OPEN_MAX));
}
|