Date: Fri, 5 Mar 2004 09:21:33 -0800 (PST) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 48228 for review Message-ID: <200403051721.i25HLXBP039914@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=48228 Change 48228 by peter@peter_daintree on 2004/03/05 09:20:40 add initial freebsd-3.x signal definitions. this is needed for some Really Old(TM) binaries. eg: certain virus scanners are only compiled as 3.x binaries. Affected files ... .. //depot/projects/hammer/sys/compat/ia32/ia32_signal.h#6 edit Differences ... ==== //depot/projects/hammer/sys/compat/ia32/ia32_signal.h#6 (text+ko) ==== @@ -113,6 +113,32 @@ }; #endif +#ifdef COMPAT_FREEBSD3 +struct ia32_sigcontext3 { + int sc_onstack; + u_int32_t sc_mask; + int sc_esp; + int sc_ebp; + int sc_isp; + int sc_eip; + int sc_eflags; + int sc_es; + int sc_ds; + int sc_cs; + int sc_ss; + int sc_edi; + int sc_esi; + int sc_ebx; + int sc_edx; + int sc_ecx; + int sc_eax; + int sc_gs; + int sc_fs; + int sc_trapno; + int sc_err; +}; +#endif + /* * Signal frames, arguments passed to application signal handlers. */ @@ -156,6 +182,23 @@ struct ia32_siginfo sf_si; /* = *sf_siginfo (SA_SIGINFO case) */ }; +#ifdefd COMPAT_FREEBSD3 +struct ia32_siginfo3 { + struct ia32_sigcontext3 si_sc; + int si_signo; + int si_code; + union ia32_sigval si_value; +}; +struct ia32_sigframe3 { + int sf_signum; + u_int32_t sf_arg2; /* int or siginfo_t */ + u_int32_t sf_scp; + u_int32_t sf_addr; + u_int32_t sf_ah; /* action/handler pointer */ + struct ia32_siginfo3 sf_siginfo; +}; +#endif + extern char ia32_sigcode[]; extern char freebsd4_ia32_sigcode[]; extern int sz_ia32_sigcode;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403051721.i25HLXBP039914>