NetBSD/lib/libc/compat-43/getdtablesize.c
kleink 3e8c90f694 Replace use of getdtablesize() with (the non-deprecated) sysconf(), hence no
need for an internal name for the former any more; suggested by Matthew Green.
1998-10-18 13:56:21 +00:00

21 lines
425 B
C

/* $NetBSD: getdtablesize.c,v 1.8 1998/10/18 13:56:21 kleink 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.8 1998/10/18 13:56:21 kleink Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
#include <unistd.h>
int
getdtablesize()
{
return ((int)sysconf(_SC_OPEN_MAX));
}