From: Erik van der Kouwe Date: Wed, 4 Aug 2010 13:35:19 +0000 (+0000) Subject: Increase max number of open files to 255 (more should be possible but does not seem... X-Git-Tag: v3.1.8~104 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=42a2c1a03a40bb5306e2e15900626a702c9a5240;p=minix.git Increase max number of open files to 255 (more should be possible but does not seem necessary for now) --- diff --git a/include/minix/dirent.h b/include/minix/dirent.h index eb248418c..7ea231cec 100644 --- a/include/minix/dirent.h +++ b/include/minix/dirent.h @@ -58,7 +58,7 @@ struct _v7_direct { /* Definitions for the directory(3) routines: */ typedef struct { - char _fd; /* Filedescriptor of open directory */ + int _fd; /* Filedescriptor of open directory */ unsigned _count; /* This many bytes in _buf */ unsigned _pos; /* Position in _buf */ char _buf[_MAX_BLOCK_SIZE]; /* The size does not really diff --git a/include/minix/limits.h b/include/minix/limits.h index 41dcc4455..c5d5576af 100644 --- a/include/minix/limits.h +++ b/include/minix/limits.h @@ -6,7 +6,7 @@ #ifndef _MINIX_LIMITS_H #define _MINIX_LIMITS_H -#define __MINIX_OPEN_MAX 30 /* a process may have 30 files open */ +#define __MINIX_OPEN_MAX 255 /* a process may have 255 files open */ #define __MINIX_PATH_MAX 255 /* a pathname may contain 255 chars */ #endif /* _MINIX_LIMITS_H */