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

21 lines
423 B
C
Raw Normal View History

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
/*
* 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)
1998-02-27 20:43:20 +03:00
__RCSID("$NetBSD: getdtablesize.c,v 1.6 1998/02/27 17:43:20 perry 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
}