Mail Archives: djgpp/1999/02/02/14:11:42
> I don't think this is correct. On my Linux box, EMFILE means your
> process has too many files open, while ENFILE means there are too many
> open on the entire system. I wrote a little program which does `open' a
> lot. It fails with EMFILE, but when run concurrently several times, one
> fails with ENFILE.
Oops, confused EMFILE with EMLINK. From POSIX 1003.1 section 2.4:
[EMFILE] Too many open files.
An attempt was made to open more than the maximum number of
{OPEN_MAX} file descriptors allowed in this process.
[EMLINK] Too many links
An attempt was made to have the link count of a single file
exceed {LINK_MAX}.
[ENFILE] Too many open files in system
Too many files are currently open in the system. The system
reached its predefined limit for simultaneously open files
and temporarily could not accept requests to open another
one.
> Does DOS have per-process file limits? I'm not sure, offhand.
Yes, sort of. That's what FILES= in config.sys is for.
- Raw text -