On 3 October 2013 22:13, Anil Singhar anil.singhar@linaro.org 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