Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!ptsfa!ihnp4!homxb!mtuxo!mtune!westmark!dave From: dave@westmark.UUCP (Dave Levenson) Newsgroups: comp.sys.ibm.pc,comp.lang.c Subject: Re: MS C open file limit on PC Message-ID: <211@westmark.UUCP> Date: Tue, 13-Oct-87 22:14:18 EDT Article-I.D.: westmark.211 Posted: Tue Oct 13 22:14:18 1987 Date-Received: Thu, 15-Oct-87 22:02:19 EDT References: <1576@dicome.UUCP> <173@westmark.UUCP> <11098@orchid.waterloo.edu> <5819@ihlpa.ATT.COM> Organization: Westmark, Inc., Warren, NJ, USA Lines: 29 Xref: mnetor comp.sys.ibm.pc:9044 comp.lang.c:4896 In article <5819@ihlpa.ATT.COM>, rickf@ihlpa.ATT.COM (Fritz) writes: > In article <11098@orchid.waterloo.edu> atbowler@orchid.waterloo.edu (Alan T. Bowler [SDG]) writes: ... > > Operating system imposed limits on the order of 20 files ... ... > In MS-DOS the op-sys limit can be changed with a line in the config.sys file > of the form: > FILES= No, this doesn't solve Mr Bowler's problem! The FILES= line in config.sys adjusts the global limit (for all processes) but does not increase the number of files available in any one process beyond 20. The FILES= limit is the sum of the files opened by all processes, active or dormant. Setting FILES= beyond 20 allows a process to open a lot of files, and then spawn a subordinate process which then opens more files. The per-process file limit is imposed by the structure of the psp. It can be over-ridden by moving the table of file handles out of the PSP and into user space. The limit imposed by the MS-C runtime library, however, still gets in the way. Does anyone know how to circumvent that one? -- Dave Levenson Westmark, Inc. A node for news. Warren, NJ USA {rutgers | clyde | mtune | ihnp4}!westmark!dave