🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2
Article #190

Using >20 files in OS/2

#190
From: Harry Barman
Date: Mon, 20 Nov 1989 11:13
27 lines
1553 bytes
Hi,

I've just stumbled over a problem with having too many open files,  and was
wondering if anyone knows any good workarounds.

The problem....

We are porting a Unix program to OS/2 1.1.  We started off using the C library,
but hit up against the 20 file limit.  I can't find anything in the
documentation that says how to increase it, is such a thing possible???

For many of the files,  we can use DosOpen, and DosSetMaxFH to allocate more
file handles.   But... we still want to use fscanf and friends for some of the
files.  The trouble is that the Dos file calls don't seem to coexist with the
C library file calls.  I expected that if the bulk of the files use the Dos
calls,  the C library would then have a lot more file descriptors available,
but this is not to be.  There seems to be some interaction between the two.
I also tried opening some C file descriptors (by dup'ing stdin) before doing
the Dos opens,  but didn't have the desired effect, PAH!

OK... so does anyone have another version of the C lib floating around, or
does anyone know how to convince the C library and dos file calls to work
with each other?

Cheers,

Harry
Technical Details
Message-ID: <14570001@otter.hpl.hp.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!otter!hjb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!otter!hjb
From: hjb@otter.hpl.hp.com (Harry Barman)
Newsgroups: comp.os.os2
Subject: Using >20 files in OS/2
Message-ID: <14570001@otter.hpl.hp.com>
Date: 20 Nov 89 11:13:19 GMT
Organization: Hewlett-Packard Laboratories, Bristol, UK.
Lines: 27