🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #5556

Re: How to change Number of Open Files

#5556
From: Adam Goldberg
Date: Sun, 31 Mar 1991 21:35
25 lines
1791 bytes
In article <1991Mar31.011139.8147@news.arc.nasa.gov>, chu@pioneer.arc.nasa.gov (Susie Chu RCS) writes:
>Can someone tell me how to change the number of files that can 
>be open simutaaneously?
>My system is runing MSDOS 4.1 and I am using Turbo C 2.0.
>I have a program that needs to open more than 20 files. I
>have tried to
>(1) in config.sys, change FILES=35
>(2) in Turbo C 2.0 include/stdio.h, change
>    #define OPEN_MAX  35
>    #define SYS_OPEN 355
>(3) in Turbo C 2.0 include/dos.h, change
>    #define NFDS 35
>It doesn't help.  I still failed in openning 21st file.  I suspect

Try adding to config.sys the line:
   BUFFERS=35
(though that'll eat up RAM, it seems likely that you don't have enough
buffers).

+----------------------------------------------------------------------------+
+ Adam Goldberg                         Bitnet:   tabu6@ISUVAX.BITNET        +
+ Iowa State University                 Internet: tabu6@CCVAX.IASTATE.EDU    +
+          "It's simple!  Even a Pascal programmer could do it!"             +
+ "Remember: The sooner you fall behind, the more time you have to catch up" +
+----------------------------------------------------------------------------+
Technical Details
Message-ID: <1991Mar31.213543.28347@news.iastate.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!ceres.physics.uiowa.edu!news.iastate.edu!VAXF.IASTATE.EDU!TABU6
References: <1991Mar31.011139.8147@news.arc.nasa.gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!ceres.physics.uiowa.edu!news.iastate.edu!VAXF.IASTATE.EDU!TABU6
Newsgroups: comp.os.msdos.programmer
Subject: Re: How to change Number of Open Files
Message-ID: <1991Mar31.213543.28347@news.iastate.edu>
From: tabu6@CCVAX.IASTATE.EDU (Adam Goldberg)
Date: Sun, 31 Mar 1991 21:35:43 GMT
Reply-To: tabu6@CCVAX.IASTATE.EDU
Sender: news@news.iastate.edu (USENET News System)
References: <1991Mar31.011139.8147@news.arc.nasa.gov>
Organization: Iowa State University, Ames, IA.
Lines: 25