aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2000-10-03 15:11:28 +0000
committerAndreas Schwab <schwab@suse.de>2000-10-03 15:11:28 +0000
commit64ae8b688b5012949b9619d6d316d925b25e8c2a (patch)
treeb57faf548d873e33600e3baa546aecf6d6b7d1f8 /sysdeps/unix
parentb39bfc452026a50a16b33d660e5e0b5029fae944 (diff)
downloadglibc-64ae8b688b5012949b9619d6d316d925b25e8c2a.tar
glibc-64ae8b688b5012949b9619d6d316d925b25e8c2a.tar.gz
glibc-64ae8b688b5012949b9619d6d316d925b25e8c2a.tar.bz2
glibc-64ae8b688b5012949b9619d6d316d925b25e8c2a.zip
Make struct stat64 backward compatible.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/m68k/bits/stat.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/sysdeps/unix/sysv/linux/m68k/bits/stat.h b/sysdeps/unix/sysv/linux/m68k/bits/stat.h
index cc93e4941e..1676f17b62 100644
--- a/sysdeps/unix/sysv/linux/m68k/bits/stat.h
+++ b/sysdeps/unix/sysv/linux/m68k/bits/stat.h
@@ -36,11 +36,10 @@
struct stat
{
__dev_t st_dev; /* Device. */
-#ifndef __USE_FILE_OFFSET64
unsigned short int __pad1;
+#ifndef __USE_FILE_OFFSET64
__ino_t st_ino; /* File serial number. */
#else
- unsigned int __pad1;
__ino_t __st_ino; /* 32bit file serial number. */
#endif
__mode_t st_mode; /* File mode. */
@@ -48,11 +47,10 @@ struct stat
__uid_t st_uid; /* User ID of the file's owner. */
__gid_t st_gid; /* Group ID of the file's group.*/
__dev_t st_rdev; /* Device number, if device. */
-#ifndef __USE_FILE_OFFSET64
unsigned short int __pad2;
+#ifndef __USE_FILE_OFFSET64
__off_t st_size; /* Size of file, in bytes. */
#else
- unsigned int __pad2;
__off64_t st_size; /* Size of file, in bytes. */
#endif
__blksize_t st_blksize; /* Optimal block size for I/O. */
@@ -80,7 +78,7 @@ struct stat
struct stat64
{
__dev_t st_dev; /* Device. */
- unsigned int __pad1;
+ unsigned short int __pad1;
__ino_t __st_ino; /* 32bit file serial number. */
__mode_t st_mode; /* File mode. */
@@ -88,7 +86,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.*/
__dev_t st_rdev; /* Device number, if device. */
- unsigned int __pad2;
+ unsigned short int __pad2;
__off64_t st_size; /* Size of file, in bytes. */
__blksize_t st_blksize; /* Optimal block size for I/O. */