Mail Archives: djgpp/2009/03/26/02:16:37
"Rod Pemberton" <do_not_have AT nohavenot DOT cmm> wrote in message
news:gqadn4$qc1$1 AT aioe DOT org...
> "Ethan Rosenberg" <ethros AT earthlink DOT net> wrote in message
> news:0KGZ00GQ8UBIYMM0 AT mta4 DOT srv DOT hcvlny DOT cv DOT net...
>
> In comp.os.msdos.djgpp,
>
>> I have a program that opens almost 30 files.
>
> How is that possible?... What version of DOS and DJGPP are you using?
Hi Rod,
I don't remember trying it or not, it has been a long time,
but if you move the FileHandleArray to a larger buffer, point
offset 0x34 in the PSP to this buffer, and place a larger
number at offset 0x32, you could probably have quite a few
more open files.
However, I don't know if there is still a limit in the DOS
internals or not. I would guess you have to call an undocumented
DOS service (3.3x or higher) to tell DOS that you have
moved the Handle Array and it is now larger.
I haven't tried it, but it might be an interesting idea
to simply create a bunch of files, say file000.bin to
file020.bin and after modifying the PSP as described above,
open files file000.bin through file019.bin, then open
file file020.bin and read from it. Does it read the
correct data?
Anyway, it has been years since I even thought about doing
this.
Ben
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Forever Young Software
http://www.frontiernet.net/~fys/index.htm
http://www.frontiernet.net/~fys/collections.htm
To reply by email, please remove the zzzzzz's
Batteries not included, some assembly required.
- Raw text -