summaryrefslogtreecommitdiffstats
path: root/sys/i386/svr4
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2000-01-03 16:49:39 +0000
committermarcel <marcel@FreeBSD.org>2000-01-03 16:49:39 +0000
commit80b06aacc83c45bff8c5ca824151b055c0921e4f (patch)
treeb4e2fc0e343e715dc81f1ddf16b94b8ec91b1370 /sys/i386/svr4
parent09fefd34d072f58ed7de6248a9b918887a198667 (diff)
downloadFreeBSD-src-80b06aacc83c45bff8c5ca824151b055c0921e4f.zip
FreeBSD-src-80b06aacc83c45bff8c5ca824151b055c0921e4f.tar.gz
Make offsetof equivalent with <stddef.h>. This paves the way for
further enhancements/reorganisations. Discussed with: bde
Diffstat (limited to 'sys/i386/svr4')
-rw-r--r--sys/i386/svr4/svr4_genassym.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/i386/svr4/svr4_genassym.c b/sys/i386/svr4/svr4_genassym.c
index 7f2c3b6..f55b5ed 100644
--- a/sys/i386/svr4/svr4_genassym.c
+++ b/sys/i386/svr4/svr4_genassym.c
@@ -15,8 +15,11 @@ struct proc;
#define SVR4_MACHDEP_JUST_REGS
#include <i386/svr4/svr4_machdep.h>
-ASSYM(SVR4_SIGF_HANDLER, offsetof(svr4_sigframe, sf_handler));
-ASSYM(SVR4_SIGF_UC, offsetof(svr4_sigframe, sf_uc));
-ASSYM(SVR4_UC_FS, offsetof(svr4_ucontext, uc_mcontext.greg[SVR4_X86_FS]));
-ASSYM(SVR4_UC_GS, offsetof(svr4_ucontext, uc_mcontext.greg[SVR4_X86_GS]));
-ASSYM(SVR4_UC_EFLAGS, offsetof(svr4_ucontext, uc_mcontext.greg[SVR4_X86_EFL]));
+ASSYM(SVR4_SIGF_HANDLER, offsetof(struct svr4_sigframe, sf_handler));
+ASSYM(SVR4_SIGF_UC, offsetof(struct svr4_sigframe, sf_uc));
+ASSYM(SVR4_UC_FS, offsetof(struct svr4_ucontext,
+ uc_mcontext.greg[SVR4_X86_FS]));
+ASSYM(SVR4_UC_GS, offsetof(struct svr4_ucontext,
+ uc_mcontext.greg[SVR4_X86_GS]));
+ASSYM(SVR4_UC_EFLAGS, offsetof(struct svr4_ucontext,
+ uc_mcontext.greg[SVR4_X86_EFL]));
OpenPOWER on IntegriCloud