From 42a2c1a03a40bb5306e2e15900626a702c9a5240 Mon Sep 17 00:00:00 2001 From: Erik van der Kouwe Date: Wed, 4 Aug 2010 13:35:19 +0000 Subject: [PATCH] Increase max number of open files to 255 (more should be possible but does not seem necessary for now) --- include/minix/dirent.h | 2 +- include/minix/limits.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.44.0