Article View: comp.os.os2.programmer
Article #954Re: 1.3 and file handle limit?
From: David Bolen
Date: Thu, 10 Sep 1992 17:15
Date: Thu, 10 Sep 1992 17:15
29 lines
1967 bytes
1967 bytes
In article <1992Sep10.203823.6149@tc.cornell.edu> bai@msiadmin.cit.cornell.edu (Dov Bai-MSI Visitor) writes: >There is an API call > DosSetMaxFH( USHORT ) >where USHORT ( an unsigned short number ) is the new file hadles limit for >a process. Just as an addition - this call sets up the file handles limit from OS/2's point of view, but many (most?) C compiler libraries also have an internal file handle limit that might or might not be fixed. So - increasing the file handles this way definitely works as long as you use OS/2 filesystem calls to open and access the extra handles. Alternatively, another method that I've used successfully in the past is to use the C library file calls for files that I really needed C functions to access, and use the OS/2 calls for all the others. The applicability of this method is application-dependent, but as long as the number of files you access through C library routines remains small enough, you can still get to a lot of files with the OS/2 calls. -- -- David -- /-----------------------------------------------------------------------\ \ David Bolen \ Internet: db3l@ans.net / | Advanced Network & Services, Inc. \ Phone: (914) 789-5327 | / 100 Clearbrook Road, Elmsford, NY 10523 \ Fax: (914) 789-5310 \ \-----------------------------------------------------------------------/
Technical Details
Message-ID:
<1992Sep10.211153.24845@ans.net>Path:
arc1-ca.pugleaf.net!sparky!uunet!newsgate.watson.ibm.com!news.ans.net!ans.net!db3lReferences:
<cDaVqB3w165w@sps.pgh.pa.us> <1992Sep10.203823.6149@tc.cornell.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!newsgate.watson.ibm.com!news.ans.net!ans.net!db3l From: db3l@ans.net (David Bolen) Subject: Re: 1.3 and file handle limit? Sender: news@ans.net (News Administrator) Message-ID: <1992Sep10.211153.24845@ans.net> In-Reply-To: bai@msiadmin.cit.cornell.edu's message of Thu, 10 Sep 1992 20: 38:23 GMT Date: Thu, 10 Sep 1992 17:15:35 GMT References: <cDaVqB3w165w@sps.pgh.pa.us> <1992Sep10.203823.6149@tc.cornell.edu> Organization: Advanced Network & Services, Inc. - Elmsford, NY Lines: 29