home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / programm / 4872 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.9 KB  |  42 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!newsgate.watson.ibm.com!news.ans.net!ans.net!db3l
  3. From: db3l@ans.net (David Bolen)
  4. Subject: Re: 1.3 and file handle limit?
  5. Sender: news@ans.net (News Administrator)
  6. Message-ID: <1992Sep10.211153.24845@ans.net>
  7. In-Reply-To: bai@msiadmin.cit.cornell.edu's message of Thu, 10 Sep 1992 20: 38:23 GMT
  8. Date: Thu, 10 Sep 1992 17:15:35 GMT
  9. References: <cDaVqB3w165w@sps.pgh.pa.us> <1992Sep10.203823.6149@tc.cornell.edu>
  10. Organization: Advanced Network & Services, Inc. - Elmsford, NY
  11. Lines: 29
  12.  
  13. In article <1992Sep10.203823.6149@tc.cornell.edu> bai@msiadmin.cit.cornell.edu (Dov Bai-MSI Visitor) writes:
  14.  
  15. >There is an API call 
  16. >   DosSetMaxFH( USHORT )
  17. >where USHORT ( an unsigned short number ) is the new file hadles limit for
  18. >a process.
  19.  
  20. Just as an addition - this call sets up the file handles limit from OS/2's
  21. point of view, but many (most?) C compiler libraries also have an internal
  22. file handle limit that might or might not be fixed.
  23.  
  24. So - increasing the file handles this way definitely works as long as you
  25. use OS/2 filesystem calls to open and access the extra handles.
  26.  
  27. Alternatively, another method that I've used successfully in the past is to
  28. use the C library file calls for files that I really needed C functions to
  29. access, and use the OS/2 calls for all the others.  The applicability of this
  30. method is application-dependent, but as long as the number of files you
  31. access through C library routines remains small enough, you can still get
  32. to a lot of files with the OS/2 calls.
  33.  
  34. --
  35. -- David
  36. --
  37. /-----------------------------------------------------------------------\
  38.  \              David Bolen             \  Internet: db3l@ans.net      /
  39.   |   Advanced Network & Services, Inc.   \   Phone: (914) 789-5327   |
  40.  / 100 Clearbrook Road, Elmsford, NY 10523  \   Fax: (914) 789-5310    \
  41. \-----------------------------------------------------------------------/
  42.