From 5a3e49ed94eab6f18c50a655d47e64594b867118 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 29 Jun 1996 19:10:01 +0000 Subject: s/NOFILE/sysconf(_SC_OPEN_MAX)/ --- bin/csh/misc.c | 6 +++--- 1 file 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); -- cgit v1.2.3