Subject: Re: Linux compatibility issue for i386, alpha and m68k
To: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
From: Emmanuel Dreyfus <p99dreyf@criens.u-psud.fr>
List: tech-kern
Date: 02/11/2001 00:52:02
This is a Linux binary on NetBSD/i386:
> offset=3D512
> d_ino=3D0x2
> d_off=3D0x0
> d_reclen=3D0xc
> d_name=3D.
>=20
> d_ino=3D0x2
> d_off=3D0xc
> d_reclen=3D0x10
> d_name=3D..

This is Linux/i386 (native)
> d_ino=3D0x801
> d_off=3D0xc
> d_reclen=3D0xc
> d_name=3D.
>=20
> d_ino=3D0x2
> d_off=3D0x18
> d_reclen=3D0x10
> d_name=3D..

If you look at the d_off field, it seems that Linux has fixed the bug we
are still emulating: d_off does not point to itself anymore (it was the
bug in older Linux), it points to the next entry as it should. We should
stop emulating the bug.

Our getdents emulation is broken on powerpc and i386. What about m68k
and alpha? I think it's broken too.

--=20
Emmanuel Dreyfus.
Windows 95, Windows 98, Windows 2000
D=E9sormais, les OS portent la date de peremption dans leurs noms.
p99dreyf@criens.u-psud.fr