Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: Eli Zaretskii , djgpp-workers AT delorie DOT com Date: Wed, 2 Dec 1998 08:53:09 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: bug in stat? References: In-reply-to: X-mailer: Pegasus Mail for Windows (v2.54) Reply-To: djgpp-workers AT delorie DOT com Eli Zaretskii wrote: > On Tue, 1 Dec 1998, Salvador Eduardo Tropea (SET) wrote: > > > /dev/prn -> v2.01 and v2.02: is a device > > prn -> v2.02: is a device > > /foo/prn -> both says that's a normal file but DOS > > understands it as a device. > > > > The questions are: > > Is just me? (I mixed stat from v2.02 and the rest of 2.01) > > Is that easy to solve? I didn't tried because I know Eli > > knows all the guts of stat and I guess he can find the > > solution much more quickly and cleanly. > > I would gladly help, but I don't see the problem: "/foo/prn" works > for me in both patched 2.01 libc and in the latest 2.02 beta. (I > don't have stock 2.01 to try.) > > Maybe you mixed versions in a way that broke something? Yes perhaps was it. > You need to > use the entire libc.a and the include directory from v2.02, to get > consistent results (use -I and -L switches to gcc to force it to > search the correct directories). Some parts of this puzzle are solved > in places other that stat.c proper (I think _truename and _put_path > have something to do with how the devices are handled). Ok. I have an experimental djgpp installation. Is reduced but complete enough. I did it last night to test egcs v.s. pgcc v.s. gcc using some BYTE benchmarks. So I'll try to compile a test with it. BTW, I compiled the1996 BYTE benchmarks with the 3 compilers and I can contrast the results with a Watcom 10a compiled exe. Should I post the results? SET ------------------------------------ 0 -------------------------------- Visit my home page: http://set-soft.home.ml.org/ or http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013