home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / programm / 8805 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  3.1 KB

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