diff options
Diffstat (limited to 'winsup/cygwin/include/limits.h')
-rw-r--r-- | winsup/cygwin/include/limits.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/include/limits.h b/winsup/cygwin/include/limits.h index 397ba2030..4a2ad3a8d 100644 --- a/winsup/cygwin/include/limits.h +++ b/winsup/cygwin/include/limits.h @@ -122,6 +122,13 @@ details. */ This limits how many children we can fork/spawn off. */ #define CHILD_MAX 63 +/* # of open files per process. Actually it can be more since Cygwin + grows the dtable as necessary. We define a reasonable limit here + which is returned by getdtablesize(), sysconf(_SC_OPEN_MAX) and + getrlimit(RLIMIT_NOFILE). */ +#undef OPEN_MAX +#define OPEN_MAX 256 + /* POSIX values */ /* These should never vary from one system type to another */ /* They represent the minimum values that POSIX systems must support. |