aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-08-18 06:11:11 +0000
committerAndreas Jaeger <aj@suse.de>2000-08-18 06:11:11 +0000
commit1689f54798eb19ba7311d3c6b79ef7277c5ff692 (patch)
tree8a7b05f339a3dcd98bf5fc50f238c0d6acbb121f
parent09970c4efd7b87bccc20311419d6593d67081164 (diff)
downloadglibc-1689f54798eb19ba7311d3c6b79ef7277c5ff692.tar
glibc-1689f54798eb19ba7311d3c6b79ef7277c5ff692.tar.gz
glibc-1689f54798eb19ba7311d3c6b79ef7277c5ff692.tar.bz2
glibc-1689f54798eb19ba7311d3c6b79ef7277c5ff692.zip
Add pads to show alignment for structs stat and stat64. Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
-rw-r--r--sysdeps/unix/sysv/linux/mips/bits/stat.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/bits/stat.h b/sysdeps/unix/sysv/linux/mips/bits/stat.h
index 7c6f4aa822..40f42f1df3 100644
--- a/sysdeps/unix/sysv/linux/mips/bits/stat.h
+++ b/sysdeps/unix/sysv/linux/mips/bits/stat.h
@@ -48,12 +48,13 @@ struct stat
__uid_t st_uid; /* User ID of the file's owner. */
__gid_t st_gid; /* Group ID of the file's group.*/
unsigned long int st_rdev; /* Device number, if device. */
- long int st_pad2[2];
#ifndef __USE_FILE_OFFSET64
+ long int st_pad2[2];
__off_t st_size; /* Size of file, in bytes. */
/* SVR4 added this extra long to allow for expansion of off_t. */
long int st_pad3;
#else
+ long int st_pad2[3];
__off64_t st_size; /* Size of file, in bytes. */
#endif
/*
@@ -87,7 +88,7 @@ struct stat64
__uid_t st_uid; /* User ID of the file's owner. */
__gid_t st_gid; /* Group ID of the file's group.*/
unsigned long int st_rdev; /* Device number, if device. */
- long int st_pad2[2];
+ long int st_pad2[3];
__off64_t st_size; /* Size of file, in bytes. */
/*
* Actually this should be timestruc_t st_atime, st_mtime and