From: Ali Saidi Date: Sat, 4 Mar 2006 20:15:47 +0000 (-0500) Subject: properly align the uid and size fields in the pre_F54_stat structure. X-Git-Tag: m5_2.0_beta1~87^2~38^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41b8b41b9cdc12ff3939ca1e4b7a6fe99e60b6dc;p=gem5.git 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 --- 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;