summaryrefslogtreecommitdiff
path: root/kern/tru64
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2006-03-04 15:15:47 -0500
committerAli Saidi <saidi@eecs.umich.edu>2006-03-04 15:15:47 -0500
commit41b8b41b9cdc12ff3939ca1e4b7a6fe99e60b6dc (patch)
tree277e16920a14800530a0e55cbdac2a946b2eb097 /kern/tru64
parent1e071c9f5fd5258ff92dc496aecc175db94a5ad7 (diff)
downloadgem5-41b8b41b9cdc12ff3939ca1e4b7a6fe99e60b6dc.tar.xz
properly align the uid and size fields in the pre_F54_stat structure.
Patch from Jos Delbar, modified to use variable attributes. --HG-- extra : convert_revision : 12c9ebbb109a789dd4230b7606b1f8ded00c21fc
Diffstat (limited to 'kern/tru64')
-rw-r--r--kern/tru64/tru64.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/kern/tru64/tru64.hh b/kern/tru64/tru64.hh
index ad568cb0c..9c541ae1a 100644
--- a/kern/tru64/tru64.hh
+++ b/kern/tru64/tru64.hh
@@ -155,15 +155,16 @@ class Tru64 {
/// implementing another set of stat functions using the old
/// structure definition and binding them to the old syscall
/// numbers.
+
struct pre_F64_stat {
dev_t st_dev;
ino_t st_ino;
mode_t st_mode;
nlink_t st_nlink;
- uid_t st_uid;
+ uid_t st_uid __attribute__ ((aligned(sizeof(uid_t))));
gid_t st_gid;
dev_t st_rdev;
- off_t st_size;
+ off_t st_size __attribute__ ((aligned(sizeof(off_t))));
time_t st_atimeX;
int32_t st_uatime;
time_t st_mtimeX;