🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1440

Re: Increasing the number of file handles

#1440
From: Dan SPALDING
Date: Wed, 08 Aug 1990 02:03
15 lines
1144 bytes
In article <1266@dialogic.UUCP> gerry@dialogic.dialogic.com (Gerry Lachac) writes:
>
>Has anyone had any success increasing the number of filehandles for an
>OS/2 protectmode process?  I have tried using the DosSetMaxFH API call
>to set the number of file handles to various numbers between 50 and
>255, but I never seem to have more than 20. DosSetMaxFH does not
>return any errors.


if you are using the c-runtime for opening files, you also have to increase
the number of handles the c-runtime can handle as well as the FILEBUF table for
the buffered io calls (fwrite, fopen, etc.).  this is documented in the c
startup code in crt*.asm fairly close to _astart.  also need to check _file.c.

Dan Spalding
Technical Details
Message-ID: <56396@microsoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!uunet!microsoft!dans
References: <1266@dialogic.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!uunet!microsoft!dans
From: dans@microsoft.UUCP (Dan SPALDING)
Newsgroups: comp.os.os2.programmer
Subject: Re: Increasing the number of file handles
Message-ID: <56396@microsoft.UUCP>
Date: 8 Aug 90 02:03:58 GMT
References: <1266@dialogic.UUCP>
Reply-To: dans@microsoft.UUCP (Dan SPALDING)
Organization: Microsoft Corp., Redmond WA
Lines: 15