Hi Peter,

Thanks for your help and feedback. The definition from your links did work
for me. Now at least stat gives valid outputs and my gzip and ls, which
depends on stat, work OK though gzip still doesn't compress for some
unknown reason.

Best Regards,
Anil



On 3 October 2013 18:54, Peter Maydell <[email protected]> wrote:

> On 3 October 2013 22:13, Anil Singhar <[email protected]> wrote:
> > Plus I noticed that the original definition that was in klibc for aarch64
> > (the one with which I have issues) is exactly same as that in x86_64 and
> > there the test works fine.
>
> The struct stat layout differs from architecture to architecture.
> "This layout works on x86-64" says absolutely nothing about
> whether it is the right layout for any other architecture.
>
> I don't know where you got the stat layout you say you tried,
> but that doesn't match what the kernel has:
>
> arm64 uses the generic stat layout:
> http://lxr.linux.no/#linux+v3.11.3/arch/arm64/include/uapi/asm/stat.h
> which is defined here:
> http://lxr.linux.no/#linux+v3.11.3/include/uapi/asm-generic/stat.h
>
> -- PMM
>
_______________________________________________
cross-distro mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/cross-distro

Reply via email to