summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-29 19:10:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-29 19:10:01 +0000
commit5a3e49ed94eab6f18c50a655d47e64594b867118 (patch)
treee02944d8ac12c490deda1f92a7035adc76d3c2b4
parentfd844958dbc507c9ef182923e1d493b4f5e61532 (diff)
s/NOFILE/sysconf(_SC_OPEN_MAX)/
-rw-r--r--bin/csh/misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/csh/misc.c b/bin/csh/misc.c
index dec792e01c0..3ed9312ae57 100644
--- a/bin/csh/misc.c
+++ b/bin/csh/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.2 1996/06/23 14:19:26 deraadt Exp $ */
+/* $OpenBSD: misc.c,v 1.3 1996/06/29 19:10:00 deraadt Exp $ */
/* $NetBSD: misc.c,v 1.6 1995/03/21 09:03:09 cgd Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: misc.c,v 1.2 1996/06/23 14:19:26 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: misc.c,v 1.3 1996/06/29 19:10:00 deraadt Exp $";
#endif
#endif /* not lint */
@@ -259,7 +259,7 @@ closem()
{
register int f;
- for (f = 0; f < NOFILE; f++)
+ for (f = 0; f < sysconf(_SC_OPEN_MAX); f++)
if (f != SHIN && f != SHOUT && f != SHERR && f != OLDSTD &&
f != FSHTTY)
(void) close(f);