Path: utzoo!attcan!uunet!husc6!rutgers!rochester!pt.cs.cmu.edu!b.gp.cs.cmu.edu!ralf From: ralf@b.gp.cs.cmu.edu (Ralf Brown) Newsgroups: comp.sys.ibm.pc Subject: Re: Opening up to 255 files in DOS 3.30 Message-ID: <5367@pt.cs.cmu.edu> Date: 30 Jun 89 00:34:36 GMT References: <2385@ur-cc.UUCP> <749@mitisft.Convergent.COM> Organization: Carnegie-Mellon University, CS/RI Lines: 19 In article <749@mitisft.Convergent.COM> dold@mitisft.Convergent.COM (Clarence Dold) writes: }in article <2385@ur-cc.UUCP>, chu2_ltd@uhura.cc.rochester.edu (Jim Huang) says: }> I would like to know how to open a large number of files at }> once under MS-DOS 3.30. For instance, if I want to open } }You might be encountering a compiler limitation. }Microsoft QuickC won't open() files beyond the limit declared in stdio.h, }even though that should have no effect unless you are trying to fopen(). Actually, open() has to keep info about the file handle, too. After all, you can open a file with either O_TEXT or O_BINARY, and the runtime library has to know whether or not to perform newline conversion. Also, (at least in TurboC) specifying O_APPEND for open() tells write() to seek to the end of the file before writing. -- {harvard,uunet,ucbvax}!b.gp.cs.cmu.edu!ralf -=-=- AT&T: (412)268-3053 (school) ARPA: RALF@CS.CMU.EDU |"The optimist is the kind of person who believes a FIDO: Ralf Brown 1:129/46 | housefly is looking for a way out."--Geo.J.Nathan BITnet: RALF%CS.CMU.EDU@CMUCCVMA -=-=-=-=-=- DISCLAIMER? I claimed something?