Home | History | Annotate | Line # | Download | only in compat-43
getdtablesize.c revision 1.4
      1 /*	$NetBSD: getdtablesize.c,v 1.4 1997/07/13 18:50:08 christos Exp $	*/
      2 
      3 /*
      4  * Written by J.T. Conklin <jtc (at) netbsd.org>.
      5  * Public domain.
      6  */
      7 
      8 #include <sys/cdefs.h>
      9 #if defined(LIBC_SCCS) && !defined(lint)
     10 __RCSID("$NetBSD: getdtablesize.c,v 1.4 1997/07/13 18:50:08 christos Exp $");
     11 #endif /* LIBC_SCCS and not lint */
     12 
     13 #include <unistd.h>
     14 
     15 int
     16 getdtablesize()
     17 {
     18 	return sysconf(_SC_OPEN_MAX);
     19 }
     20