From 41b8b41b9cdc12ff3939ca1e4b7a6fe99e60b6dc Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Sat, 4 Mar 2006 15:15:47 -0500 Subject: [PATCH] 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 --- kern/tru64/tru64.hh | 5 +++-- 1 file 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; -- 2.30.2