1/* $Id: linux_genassym.c,v 1.4 1997/02/22 09:38:21 peter Exp $ */
2#include <stdio.h>
3#include <sys/param.h>
4#include <i386/linux/linux.h>
5
6extern int main __P((void));
7
8int
9main()
10{
11 struct linux_sigframe *linux_sigf = (struct linux_sigframe *)0;
12 struct linux_sigcontext *linux_sc = (struct linux_sigcontext *)0;
13
14 printf("#define\tLINUX_SIGF_HANDLER %d\n", &linux_sigf->sf_handler);
15 printf("#define\tLINUX_SIGF_SC %d\n", &linux_sigf->sf_sc);
16 printf("#define\tLINUX_SC_FS %d\n", &linux_sc->sc_fs);
17 printf("#define\tLINUX_SC_GS %d\n", &linux_sc->sc_gs);
18 printf("#define\tLINUX_SC_EFLAGS %d\n", &linux_sc->sc_eflags);
19
20 return (0);
21}
2#include <stdio.h>
3#include <sys/param.h>
4#include <i386/linux/linux.h>
5
6extern int main __P((void));
7
8int
9main()
10{
11 struct linux_sigframe *linux_sigf = (struct linux_sigframe *)0;
12 struct linux_sigcontext *linux_sc = (struct linux_sigcontext *)0;
13
14 printf("#define\tLINUX_SIGF_HANDLER %d\n", &linux_sigf->sf_handler);
15 printf("#define\tLINUX_SIGF_SC %d\n", &linux_sigf->sf_sc);
16 printf("#define\tLINUX_SC_FS %d\n", &linux_sc->sc_fs);
17 printf("#define\tLINUX_SC_GS %d\n", &linux_sc->sc_gs);
18 printf("#define\tLINUX_SC_EFLAGS %d\n", &linux_sc->sc_eflags);
19
20 return (0);
21}