From a854646ee044af333606f04940e60d0ac61234f7 Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 6 Dec 2005 23:06:29 +0000 Subject: Catch up to the system siginfo changes. Use a union for the ia32 layout of siginfo just like the system one. There are now two fields to copy instead of one. --- sys/compat/ia32/ia32_signal.h | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'sys/compat/ia32') diff --git a/sys/compat/ia32/ia32_signal.h b/sys/compat/ia32/ia32_signal.h index 267d472..8868a7e 100644 --- a/sys/compat/ia32/ia32_signal.h +++ b/sys/compat/ia32/ia32_signal.h @@ -155,8 +155,25 @@ struct ia32_siginfo { int si_status; /* exit value */ u_int32_t si_addr; /* faulting instruction */ union ia32_sigval si_value; /* signal value */ - int32_t si_band; /* band event for SIGPOLL */ - int __spare__[7]; /* gimme some slack */ + union { + struct { + int _trapno;/* machine specific trap code */ + } _fault; + struct { + int _timerid; + int _overrun; + } _timer; + struct { + int _mqd; + } _mesgq; + struct { + int _band; /* band event for SIGPOLL */ + } _poll; /* was this ever used ? */ + struct { + int __spare1__; + int __spare2__[7]; + } __spare__; + } _reason; }; #ifdef COMPAT_FREEBSD4 -- cgit v1.1