aboutsummaryrefslogblamecommitdiff
path: root/sys/alpha/linux/linux_genassym.c
blob: 99a88a510f6f95c980a2520ea87184b12fa0257c (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                               
 
                      
 

                             


                                                                
                         
                                        



      


                                                                         


                                                                         


                   
/* $Id: linux_genassym.c,v 1.8 1998/07/29 15:50:41 bde Exp $ */

#include <sys/param.h>

#include <i386/linux/linux.h>

#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);
}