diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
commit | d6583bb2a13f329cf0332ef2570eb8bb8fc0e39c (patch) | |
tree | ece253b876159b39c620e62b6c9b1174642e070e /lib/libc/compat-43/getdtablesize.c |
initial import of NetBSD tree
Diffstat (limited to 'lib/libc/compat-43/getdtablesize.c')
-rw-r--r-- | lib/libc/compat-43/getdtablesize.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/libc/compat-43/getdtablesize.c b/lib/libc/compat-43/getdtablesize.c new file mode 100644 index 00000000000..3cacbc459b9 --- /dev/null +++ b/lib/libc/compat-43/getdtablesize.c @@ -0,0 +1,16 @@ +/* + * Written by J.T. Conklin <jtc@netbsd.org>. + * Public domain. + */ + +#if defined(LIBC_SCCS) && !defined(lint) +static char *rcsid = "$NetBSD: getdtablesize.c,v 1.3 1995/05/11 23:03:44 jtc Exp $"; +#endif /* LIBC_SCCS and not lint */ + +#include <unistd.h> + +int +getdtablesize() +{ + return sysconf(_SC_OPEN_MAX); +} |