Mail Archives: djgpp-workers/1998/12/02/04:00:15
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? 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).
- Raw text -