summaryrefslogtreecommitdiffstats
path: root/lib/libc/alpha/gen/netbsd_getdtablesize.c
blob: 9ceb7118b92b668724a6ce7fe29a912bef6ec9a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
}
OpenPOWER on IntegriCloud