TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Paul Edwards
from: Tom Almy
date: 1996-10-09 14:56:48
subject: watcom and warp

-=> Quoting Paul Edwards to Daniel Lynes <=-

 PE> How can *I* increase the default number of file handles per address
 PE> space?  I think it's ridiculous that I can specify FILES=255 for DOS
 PE> programs, and get FILES=20 always (or at best!) under OS/2.  BFN.

 DL> Try increasing your files= setting in your config.sys.

 PE> That's what I just said above, the files= only affects DOS programs
 PE> under OS/2, not OS/2 programs under OS/2!  Bizaare!  Let's hope they
 PE> changed that with Merlin.  BFN.  Paul.

Pardon me for butting in in the middle of a conversation (I didn't see the
start of this), and assuming you are programming in C.  Are you really seeing
a limit in the number of file handles (which are integers) or is it a limit in
the number of file pointers in C (which are of type FILE *)? I suspect it is
the latter, since every C implementation I've seen uses a statically allocated
table for file pointers.

The workaround is to either recompile the library, or to use the functions
open, read, write, and close for file access.

Tom


--- Blue Wave/DOS v2.30
* Origin: Melted Butter, Tualatin, Oregon (1:105/290)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1
@PATH: 105/290 330 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.