NetBSD/lib/libc/compat-43/getdtablesize.c

21 lines
425 B
C
Raw Normal View History

/* $NetBSD: getdtablesize.c,v 1.8 1998/10/18 13:56:21 kleink Exp $ */
1997-07-13 22:50:06 +04:00
/*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*/
1997-07-13 22:50:06 +04:00
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: getdtablesize.c,v 1.8 1998/10/18 13:56:21 kleink Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
#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
}