|
@@ -151,7 +151,18 @@ typedef struct siginfo {
|
|
|
#define si_arch _sifields._sigsys._arch
|
|
|
#endif
|
|
|
|
|
|
-#ifndef __KERNEL__
|
|
|
+#ifdef __KERNEL__
|
|
|
+#define __SI_MASK 0xffff0000u
|
|
|
+#define __SI_KILL (0 << 16)
|
|
|
+#define __SI_TIMER (1 << 16)
|
|
|
+#define __SI_POLL (2 << 16)
|
|
|
+#define __SI_FAULT (3 << 16)
|
|
|
+#define __SI_CHLD (4 << 16)
|
|
|
+#define __SI_RT (5 << 16)
|
|
|
+#define __SI_MESGQ (6 << 16)
|
|
|
+#define __SI_SYS (7 << 16)
|
|
|
+#define __SI_CODE(T,N) ((T) | ((N) & 0xffff))
|
|
|
+#else /* __KERNEL__ */
|
|
|
#define __SI_KILL 0
|
|
|
#define __SI_TIMER 0
|
|
|
#define __SI_POLL 0
|
|
@@ -161,7 +172,7 @@ typedef struct siginfo {
|
|
|
#define __SI_MESGQ 0
|
|
|
#define __SI_SYS 0
|
|
|
#define __SI_CODE(T,N) (N)
|
|
|
-#endif
|
|
|
+#endif /* __KERNEL__ */
|
|
|
|
|
|
/*
|
|
|
* si_code values
|