mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
25 lines
570 B
C
25 lines
570 B
C
/* $FreeBSD$ */
|
|
|
|
#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);
|
|
}
|