[PATCH] x86_64/stat64: define struct stat64 as struct stat

Mike Frysinger vapier at gentoo.org
Wed Oct 10 17:53:39 UTC 2012


On Wednesday 10 October 2012 09:19:30 Markos Chandras wrote:
> I don't think it is defined, because if it was then this would have worked:
> 
> (file.c line 186)
> 
> #if HAVE_LONG_LONG_OFF_T
> /*
>  * Ugly hacks for systems that have typedef long long off_t
>  */
> # define stat64 stat
> # define HAVE_STAT64 1  /* Ugly hack */
> # define sys_stat64 sys_stat
> # define sys_fstat64    sys_fstat
> # define sys_lstat64    sys_lstat
> # define sys_truncate64 sys_truncate
> # define sys_ftruncate64    sys_ftruncate
> #endif
> 
> So this would have defined stat64 to stat in this box
> 
> Also looking at config.log I see this:
> 
> configure:6156: checking for long long off_t
> configure:6168:
> /home/me/buildroot/output/host/usr/bin/x86_64-buildroot-linux-uclibc-gcc
> -c  -pipe -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64  conftest.c >&5
> conftest.c:44:6: error: size of array 'a' is negative
> configure:6168: $? = 1

perhaps it's a bug in uClibc's x86_64 port
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20121010/fe89d332/attachment.bin>


More information about the Strace-devel mailing list