This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: Add x86-64 x86_64/bits/statvfs.h
> * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
> Don't define if [__SYSCALL_WORDSIZE != 32].
> * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
> New macro.
[...]
> --- a/sysdeps/x86_64/bits/wordsize.h
> +++ b/sysdeps/x86_64/bits/wordsize.h
> @@ -2,7 +2,11 @@
>
> #if defined __x86_64__ && !defined __ILP32__
> # define __WORDSIZE 64
> -# define __WORDSIZE_COMPAT32 1
This is a separate change that does not belong in the same commit.
> #else
> # define __WORDSIZE 32
> #endif
> +
> +#ifdef __x86_64__
> +/* Both x86-64 and x32 use the 64-bit system call interface. */
> +# define __SYSCALL_WORDSIZE 64
> +#endif
Otherwise the change is fine.
Thanks,
Roland