home *** CD-ROM | disk | FTP | other *** search
- First, the good news. It is very easy to increase the number of file
- handles with bcc v3.0. Borland supplies all of the basic mechanisms needed
- to increase the number of file handles. You also get the ability to increase
- the number of streams.
-
- My "close.c" file contains the code to do everything for you. Just compile
- and link with your program. You do not need to modify your program in any
- way, that is unless you have written code which assumes that you can never
- get more than 20 handles!
-
- And the not-so-good news.. the mechaniasm which Borland supplies in bcc 3.0
- requires that the number of streams is increased by the same number as the
- number of handles. Therefore if, for example, 250 handles are allowed for,
- then storage for 250 streams must be allocated as well -- and the 250 streams
- take a total of about 5000 bytes even before any are actually used!
-
- If you wish to decrease this extra size, just reduce MAX_FD in "close.c".
-
- Note also that the method which my file "close.c" uses for earlier versions
- of Turbo C is not compatible with BCC 3.0. It just won't work if you compile
- "close.c" with an earlier version of Turbo C and then link with a BCC 3.0
- library (or vice versa) !
-
-
-
- -------------
- 30th March 1992
-
- W. Metzenthen
- apm233m@vaxc.cc.monash.edu.au
-