Mail Archives: djgpp/1999/02/02/13:06:17
On Mon, 1 Feb 1999, Nate Eldredge wrote:
> Does DOS have per-process file limits?
Yes, it does. Each DOS process has a so-called Job File Table (JFT) as
part of its PSP, and when that table is filled, you cannot open any more
files. The size of the table is set to 20 when DOS creates the process.
But DJGPP detects the almost-full JFT situation before it actually
happens, and calls a DOS function which expands the JFT to the maximum
possible size under DOS (255 handles), so this limitation is meaningless
for DJGPP.
AFAIK, DOS returns the same code (4) for both of these cases, anyway, so
you will never see ENFILE in DJGPP programs, only EMFILE. (ENFILE is
mapped to a code returned by Novell in some obscure cases, but I doubt
that error happens in real life).
- Raw text -