lkml.org 
[lkml]   [1996]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subjecthighly recommended 2.0 patch
Date

diff -ur linux-2.0-orig/include/linux/fs.h linux-mine/include/linux/fs.h
--- linux-2.0-orig/include/linux/fs.h Sun Jun 9 04:23:32 1996
+++ linux-mine/include/linux/fs.h Wed Jun 26 17:20:47 1996
@@ -27,7 +27,7 @@

/* Fixed constants first: */
#undef NR_OPEN
-#define NR_OPEN 256
+#define NR_OPEN 1024

#define NR_SUPER 64
#define BLOCK_SIZE 1024
@@ -37,7 +37,7 @@
extern int max_inodes, nr_inodes;
extern int max_files, nr_files;
#define NR_INODE 3072 /* this should be bigger than NR_FILE */
-#define NR_FILE 1024 /* this can well be larger on a larger system */
+#define NR_FILE 2048 /* this can well be larger on a larger system */

#define MAY_EXEC 1
#define MAY_WRITE 2
diff -ur linux-2.0-orig/include/linux/limits.h linux-mine/include/linux/limits.h
--- linux-2.0-orig/include/linux/limits.h Tue Dec 7 00:06:11 1993
+++ linux-mine/include/linux/limits.h Wed Jun 26 17:21:50 1996
@@ -1,12 +1,12 @@
#ifndef _LINUX_LIMITS_H
#define _LINUX_LIMITS_H

-#define NR_OPEN 256
+#define NR_OPEN 1024

#define NGROUPS_MAX 32 /* supplemental group IDs are available */
#define ARG_MAX 131072 /* # bytes of args + environ for exec() */
#define CHILD_MAX 999 /* no limit :-) */
-#define OPEN_MAX 256 /* # open files a process may have */
+#define OPEN_MAX 1024 /* # open files a process may have */
#define LINK_MAX 127 /* # links a file may have */
#define MAX_CANON 255 /* size of the canonical input queue */
#define MAX_INPUT 255 /* size of the type-ahead buffer */
diff -ur linux-2.0-orig/include/linux/posix_types.h linux-mine/include/linux/posix_types.h
--- linux-2.0-orig/include/linux/posix_types.h Mon Jun 3 04:15:25 1996
+++ linux-mine/include/linux/posix_types.h Wed Jun 26 17:29:55 1996
@@ -12,10 +12,10 @@
#endif

/*
- * This allows for 256 file descriptors: if NR_OPEN is ever grown
- * beyond that you'll have to change this too. But 256 fd's seem to be
- * enough even for such "real" unices like SunOS, so hopefully this is
- * one limit that doesn't have to be changed.
+ * This allows for 1024 file descriptors: if NR_OPEN is ever grown
+ * beyond that you'll have to change this too. But 1024 fd's seem to be
+ * enough even for such "real" unices like SunOS 5.x and OSF/1 so hopefully
+ * this is one limit that doesn't have to be changed.
*
* Note that POSIX wants the FD_CLEAR(fd,fdsetp) defines to be in
* <sys/time.h> (and thus <linux/time.h>) - but this is a more logical
@@ -30,7 +30,7 @@
#define __NFDBITS (8 * sizeof(unsigned int))

#undef __FD_SETSIZE
-#define __FD_SETSIZE 256
+#define __FD_SETSIZE 1024

#undef __FDSET_INTS
#define __FDSET_INTS (__FD_SETSIZE/__NFDBITS)

\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.030 / U:0.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site