home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / streams / handles / sys.dif < prev    next >
Encoding:
Text File  |  1992-02-14  |  1.0 KB  |  32 lines

  1. diff -c old/getdtabl.c ./getdtabl.c
  2. *** old/getdtabl.c    Thu Mar  7 12:06:02 1991
  3. --- ./getdtabl.c    Sat Feb 15 08:14:34 1992
  4. ***************
  5. *** 12,18 ****
  6.   ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  7.   */
  8.   
  9.   getdtablesize()
  10.   {
  11. !   return 50; /* really depends on FILES= in config.sys */
  12.   }
  13. --- 12,29 ----
  14.   ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15.   */
  16.   
  17. + /*
  18. +    Modified (50->255) by W. Metzenthen to reflect changed code for the
  19. +    maximum number of handles.
  20. +    Note: there are up to 252 handles which can be aquired under
  21. +    MS-DOS 5.00 (apart from the standard handles). DJGPP pre-defines
  22. +    three streams (stdin,stdout,stderr). Therefore the maximum number
  23. +    of streams is 252+3 = 255. (Actually, go32 already grabs three
  24. +    handles for its own use, so we can really have just 252 streams!)
  25. +                                                          12 Feb 1992.
  26. +  */
  27.   getdtablesize()
  28.   {
  29. !   return 255; /* really depends on FILES= in config.sys */
  30.   }
  31.