TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Doug Glenn
from: Jonathan de Boyne Pollard
date: 1995-12-27 15:44:44
subject: Help: OS/2 version

DG>
  >   How do we extend the number of files that may be opened?
DG>

  If you are using fopen() from the C Library, then you are limited by
  your C language vendor's implementation of the Standard C Library.
  Many implementations use a fixed-length table of FILE structures, and
  thus place an absolute limit on the number of files that can be opened
  via fopen() at any one time.

  If you are using the AT&T iostreams library for your file access,
  there is even more scope for variation, since iostreams can either be
  implemented over a POSIX.1 layer, or directly over the native system
  API.  In the former case (as is done by Borland C++, for example), the
  number of open file streams is affected by the number of avaialble
  POSIX.1 file descriptors available (which in Borland C++ is again
  limited by the size of a fixed table built into the C Library).

  Some vendors, such as Watcom, do not hard code such limitations into
  their C libraries.  The Watcom C library provides a call (I believe
  that the name is __growhandles -- it's in the manual anyway) to
  increase the number of file handles available via the C library, and
  at the same time to ensure that the maximum number of file handles in
  the underlying O/S for that process is increased to match.

  However, the limit of the native system API (i.e. DosOpen,
  DosCreatePipe, DosCreateNPipe, and so forth) defaults to 50 and is
  adjustable, via the DosSetRelMaxFH system call (read the on-line
  documentation in your OS/2 Developers' Toolkit), up to 32767 open file
  handles per process.

  > JdeBP <
___
 X MegaMail 2.10 #0:
--- Maximus/2 3.00
* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 808 809 934 955 712/407 515
SEEN-BY: 712/517 628 713/888 800/1 7877/2809
@PATH: 440/4 141/209 270/101 712/515 711/808 809 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™.