properly align the uid and size fields in the pre_F54_stat structure.
authorAli Saidi <saidi@eecs.umich.edu>
Sat, 4 Mar 2006 20:15:47 +0000 (15:15 -0500)
committerAli Saidi <saidi@eecs.umich.edu>
Sat, 4 Mar 2006 20:15:47 +0000 (15:15 -0500)
Patch from Jos Delbar, modified to use variable attributes.

--HG--
extra : convert_revision : 12c9ebbb109a789dd4230b7606b1f8ded00c21fc

kern/tru64/tru64.hh

index ad568cb0c7d31d6e0dc7905c223a274e8cb8d13b..9c541ae1a255cc116f271ece8016ee6f811af369 100644 (file)
@@ -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;