home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.msdos.programmer:8805 news.answers:2621
- Newsgroups: comp.os.msdos.programmer,news.answers
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!ncoast!brown
- From: brown@NCoast.ORG (Stan Brown)
- Subject: comp.os.msdos.programmer FAQ diff 3 of 4
- Expires: Sun, 20 Sep 1992 00:24:08 GMT
- Organization: Oak Road Systems, Cleveland Ohio USA
- Date: Wed, 26 Aug 1992 00:24:08 GMT
- Approved: news-answers-request@MIT.Edu
- Message-ID: <msdos-faq-diff.920825.3@NCoast.ORG>
- Followup-To: comp.os.msdos.programmer
- References: <msdos-faq-diff.920825.1@NCoast.ORG>
- Lines: 47
-
- Archive-name: msdos-programmer-faq/diff3
- Last-modified: 22 August 1992
-
-
- Please see part 1 for explanations.
-
- - 12>Last-modified: 19 July 1992
- + 12>Last-modified: 22 August 1992
-
- +168>Q407. How can my program open more files than DOS's limit of 20?
- +170> (This is a summary of an article Ralf Brown posted on 8 August 1992.)
- +172> There are separate limits on files and file handles. For example,
- +173> DOS opens three files but five file handles: CON (stdin, stdout,
- +174> and stderr), AUX (stdaux), and PRN (stdprn).
- +176> The limit in FILES= in CONFIG.SYS is a system-wide limit on files
- +177> opened by all programs (including the three that DOS opens and any
- +178> opened by TSRs); each process has a limit of 20 handles (including
- +179> the five that DOS opens). Example: CONFIG.SYS has FILES=40. Then
- +180> program #1 will be able to open 15 file handles. Assuming that the
- +181> program actually does open 15 handles pointing to 15 different
- +182> files, other programs could still open a total of 22 files (40-3-15
- +183> = 22), though no one program could open more than 15 file handles.
- +185> If you're running DOS 3.3 or later, you can increase the per-process
- +186> limit of 20 file handles by a call to INT 21 function 67, Set Handle
- +187> Count. Your program is still limited by the system-wide limit on
- +188> open files, so you may also need to increase the FILES= value in
- +189> your CONFIG.SYS file (and reboot). The run-time library that you're
- +190> using may have a fixed-size table of file handles, so you may also
- +191> need to get source code for the module that contains the table,
- +192> increase the table size, and recompile it.
-
- -499> high-level languages provide a way to do this.
- +525> high-level languages provide a way to do this; for instance, in
- +526> Turbo Pascal it's Lo(DosExitCode) and the high byte gives the way
- +527> in which the child terminated. In Microsoft C, the exit code of a
- +528> synchronous child process is the return value of the spawn-typoe
- +529> function that creates the process.
-
- +690>Q709. What can I use to manage versions of software?
- +692> In PD1:<MSDOS.PGMUTL> at Simtel you'll find RCS55.ZIP, 388K dated 18
- +693> Dec 1991. I haven't used it myself, but I understand this is a port
- +694> of the Unix RCS utility, but is limited to one-character extensions
- +695> on filenames (no .CPP).
-
- --
-
- Stan Brown, Oak Road Systems brown@Ncoast.ORG
-