mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
* sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New. * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New. * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available on mips n32. * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data structure on n32 as well. * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant data types on n32 and n64.
2003-04-05 Alexandre Oliva <aoliva@redhat.com> * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New. * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New. * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available on mips n32. * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data structure on n32 as well. * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant data types on n32 and n64.
This commit is contained in:
@ -1,17 +1,20 @@
|
||||
/* Definition of `struct stat' used in the kernel.. */
|
||||
#if defined _ABI64 && _MIPS_SIM == _ABI64
|
||||
/* As tempting as it is to define XSTAT_IS_XSTAT64 for n64, the
|
||||
userland data structures are not identical, because of different
|
||||
padding. */
|
||||
/* Definition of `struct stat' used in the kernel. */
|
||||
#if _MIPS_SIM != _MIPS_SIM_ABI32
|
||||
struct kernel_stat
|
||||
{
|
||||
unsigned int st_dev;
|
||||
unsigned int __pad1[3];
|
||||
unsigned long st_ino;
|
||||
unsigned long long st_ino;
|
||||
unsigned int st_mode;
|
||||
unsigned int st_nlink;
|
||||
int st_uid;
|
||||
int st_gid;
|
||||
unsigned int st_rdev;
|
||||
unsigned int __pad2[3];
|
||||
long st_size;
|
||||
long long st_size;
|
||||
unsigned int st_atime;
|
||||
unsigned int __unused1;
|
||||
unsigned int st_mtime;
|
||||
@ -20,7 +23,7 @@ struct kernel_stat
|
||||
unsigned int __unused3;
|
||||
unsigned int st_blksize;
|
||||
unsigned int __pad3;
|
||||
unsigned long st_blocks;
|
||||
unsigned long long st_blocks;
|
||||
};
|
||||
#else
|
||||
struct kernel_stat
|
||||
|
Reference in New Issue
Block a user