1c1
< /* $FreeBSD: head/sys/i386/linux/linux_genassym.c 50477 1999-08-28 01:08:13Z peter $ */
---
> /* $FreeBSD: head/sys/i386/linux/linux_genassym.c 55062 1999-12-23 19:59:47Z marcel $ */
2a3
> #include <sys/assym.h>
7,24c8,11
< #define offsetof(type, member) ((size_t)(&((type *)0)->member))
< #define OS(s, m) ((u_int)offsetof(struct s, m))
<
< int main __P((void));
< int printf __P((const char *, ...));
<
< int
< main()
< {
< printf("#define\tLINUX_SIGF_HANDLER %u\n",
< OS(linux_sigframe, sf_handler));
< printf("#define\tLINUX_SIGF_SC %u\n", OS(linux_sigframe, sf_sc));
< printf("#define\tLINUX_SC_GS %u\n", OS(linux_sigcontext, sc_gs));
< printf("#define\tLINUX_SC_EFLAGS %u\n",
< OS(linux_sigcontext, sc_eflags));
<
< return (0);
< }
---
> ASSYM(LINUX_SIGF_HANDLER, offsetof(linux_sigframe, sf_handler));
> ASSYM(LINUX_SIGF_SC, offsetof(linux_sigframe, sf_sc));
> ASSYM(LINUX_SC_GS, offsetof(linux_sigcontext, sc_gs));
> ASSYM(LINUX_SC_EFLAGS, offsetof(linux_sigcontext, sc_eflags));
< /* $FreeBSD: head/sys/i386/linux/linux_genassym.c 50477 1999-08-28 01:08:13Z peter $ */
---
> /* $FreeBSD: head/sys/i386/linux/linux_genassym.c 55062 1999-12-23 19:59:47Z marcel $ */
2a3
> #include <sys/assym.h>
7,24c8,11
< #define offsetof(type, member) ((size_t)(&((type *)0)->member))
< #define OS(s, m) ((u_int)offsetof(struct s, m))
<
< int main __P((void));
< int printf __P((const char *, ...));
<
< int
< main()
< {
< printf("#define\tLINUX_SIGF_HANDLER %u\n",
< OS(linux_sigframe, sf_handler));
< printf("#define\tLINUX_SIGF_SC %u\n", OS(linux_sigframe, sf_sc));
< printf("#define\tLINUX_SC_GS %u\n", OS(linux_sigcontext, sc_gs));
< printf("#define\tLINUX_SC_EFLAGS %u\n",
< OS(linux_sigcontext, sc_eflags));
<
< return (0);
< }
---
> ASSYM(LINUX_SIGF_HANDLER, offsetof(linux_sigframe, sf_handler));
> ASSYM(LINUX_SIGF_SC, offsetof(linux_sigframe, sf_sc));
> ASSYM(LINUX_SC_GS, offsetof(linux_sigcontext, sc_gs));
> ASSYM(LINUX_SC_EFLAGS, offsetof(linux_sigcontext, sc_eflags));