Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!rochester!pt.cs.cmu.edu!b.gp.cs.cmu.edu!Ralf.Brown@B.GP.CS.CMU.EDU From: Ralf.Brown@B.GP.CS.CMU.EDU Newsgroups: comp.binaries.ibm.pc.d Subject: Re: HELP need in C (turbo c, fopen problem) Message-ID: <2457103d@ralf> Date: 27 Apr 89 12:06:05 GMT Sender: ralf@b.gp.cs.cmu.edu Organization: Carnegie Mellon University School of Computer Science Lines: 25 In-Reply-To: <313.24554F24@mudos.ann-arbor.mi.us> In article <313.24554F24@mudos.ann-arbor.mi.us>, mju@mudos.ann-arbor.mi.us (Marc Unangst) writes: }In article <1268@infmx.UUCP>, kevinf@infmx.UUCP (Kevin Franden) writes: } > By default you get 5 but those are taken up by: } }Default file handles are: } } stdin [0] } stdout [1] } stderr [2] } stdaux [3] } stdprn [4] } }It's gotta assign more than 5; if it didn't, no program could ever open }a file! (10, maybe? I don't know...) The default is FILES=8, which means 8 internal file tables, not 8 file handles-- file handles can share an internal file table if one has been DUP'ed from the other--as stdout and stderr are by default. The five standard file handles normally use only three internal file tables, leaving you five additional files to open (three if both stdin and stdout are redirected). -- UUCP: {ucbvax,harvard}!cs.cmu.edu!ralf -=-=-=- Voice: (412) 268-3053 (school) ARPA: ralf@cs.cmu.edu BIT: ralf%cs.cmu.edu@CMUCCVMA FIDO: Ralf Brown 1:129/31 Disclaimer? I claimed something? You cannot achieve the impossible without attempting the absurd.