PE> Hi Mario. You said you had the source code to C600, would
PE> you be able to post the fragment of code in open() that I
PE> am referring to below? Thanks + bye. Paul.
MS> the source of open is in \c600src\lowio\os2\open.asm and is 700 lines of
MS> asm code (i don't want to post it here). definitly is uses
MS> DosOpen/DosClose,....
I'm not after all 700 lines, I'm just after the test that it does after it
calls DosOpen(). About 10 lines of assembler code should do, with the
first line being DosOpen(), then the following 9 lines. If you could post
that, I could see exactly what test it is doing.
MS> PS: i simple don't understand your problem. i can open 1000 files at one
MS> time in my OS/2 MS-C generated files after i changed the crt0dat.asm and
MS> _file.c and i link explicit to the above 2 files.
With the stock standard _file.c and crt0dat.asm, there's room for 20 files,
right? Now the first 3 are allocated to stdin, stdout and stderr. Which
makes the other 17 available to the user program, right? So you should be
able to fopen() 17 files of your own, right? Run "fh" to give
yourself 60 file handles available via DosOpen() [ie there is NO QUESTION
about device drivers etc taking away your file handles, you've got HEAPS]
and then see if MS's RTL will let you get the 17 file handles you are
allowed. Do you get 17? If not, why not? The reason is that MS's RTL has
a bug in it, that stops you using all 17 if you have device drivers etc
using up a couple of DosOpen file numbers.
BFN. Paul.
@EOT:
---
* Origin: X (3:711/934.9)
|