From 60a8c422cd8b32d2f28b145d361b3e7574c7caf4 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 30 Oct 2003 02:40:30 +0000 Subject: Add CTASSERT()'s to check that the sizes of our replicas of the 32 bit structures come out the right size. Fix the ones that broke. stat32 had some missing fields from the end and statfs32 was broken due to the strange definition of MNAMELEN (which is dependent on sizeof(long)) I'm not sure if this fixes any actual problems or not. --- sys/compat/ia32/ia32_signal.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/compat/ia32') diff --git a/sys/compat/ia32/ia32_signal.h b/sys/compat/ia32/ia32_signal.h index f251e72fb33c..53f6c7392343 100644 --- a/sys/compat/ia32/ia32_signal.h +++ b/sys/compat/ia32/ia32_signal.h @@ -35,7 +35,6 @@ struct ia32_sigaltstack { int ss_flags; /* SS_DISABLE and/or SS_ONSTACK */ }; -/* XXX should be 640 bytes long; check and see if __packed is needed */ struct ia32_mcontext { int mc_onstack; /* XXX - sigcontext compat. */ int mc_gs; /* machine state (struct trapframe) */ @@ -69,7 +68,6 @@ struct ia32_mcontext { int mc_spare2[8]; }; -/* XXX should be 704 bytes long; check and see if __packed is needed */ struct ia32_ucontext { sigset_t uc_sigmask; struct ia32_mcontext uc_mcontext; -- cgit v1.2.3