Mail Archives: djgpp/1999/02/01/23:57:41
DJ Delorie wrote:
> > ENFILE 'Too many open files in system'
> > -- How is this distinct
> > from EMFILE?
>
> EMFILE means that a single actual file (inode) has too may directory
> entries (links) that refer to it. Look up "ln" (the non-symbolic
> link) on any unix system. DJGPP doesn't have this problem.
>
> ENFILE means you called open() too many times.
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.
Does DOS have per-process file limits? I'm not sure, offhand.
Are you possibly confusing it with EMLINK?
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -