limit fd usage – at least ULTRIX doesn’t cope
This commit is contained in:
parent
0d20372dbb
commit
0b4e9918ba
6
sh.h
6
sh.h
@ -100,7 +100,7 @@
|
|||||||
#define __SCCSID(x) __IDSTRING(sccsid,x)
|
#define __SCCSID(x) __IDSTRING(sccsid,x)
|
||||||
|
|
||||||
#ifdef EXTERN
|
#ifdef EXTERN
|
||||||
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.222 2008/07/09 21:32:44 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.223 2008/07/10 18:48:02 tg Exp $");
|
||||||
#endif
|
#endif
|
||||||
#define MKSH_VERSION "R34 2008/07/09"
|
#define MKSH_VERSION "R34 2008/07/09"
|
||||||
|
|
||||||
@ -272,8 +272,8 @@ typedef int32_t Tflag;
|
|||||||
#define NUFILE 32 /* Number of user-accessible files */
|
#define NUFILE 32 /* Number of user-accessible files */
|
||||||
#define FDBASE 10 /* First file usable by Shell */
|
#define FDBASE 10 /* First file usable by Shell */
|
||||||
#else
|
#else
|
||||||
#define NUFILE 256 /* Number of user-accessible files */
|
#define NUFILE 56 /* Number of user-accessible files */
|
||||||
#define FDBASE 100 /* First file usable by Shell */
|
#define FDBASE 24 /* First file usable by Shell */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Make MAGIC a char that might be printed to make bugs more obvious, but
|
/* Make MAGIC a char that might be printed to make bugs more obvious, but
|
||||||
|
Loading…
x
Reference in New Issue
Block a user