patch-2.2.19 linux/include/asm-sparc64/siginfo.h
Next file: linux/include/asm-sparc64/uaccess.h
Previous file: linux/include/asm-sparc64/pgtable.h
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Sun Mar 25 11:37:40 2001
- Orig file:
v2.2.18/include/asm-sparc64/siginfo.h
- Orig date:
Sun Mar 25 11:12:42 2001
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/include/asm-sparc64/siginfo.h linux/include/asm-sparc64/siginfo.h
@@ -152,8 +152,8 @@
#define SI_ASYNCIO -4 /* sent by AIO completion */
#define SI_SIGIO -5 /* sent by queued SIGIO */
-#define SI_FROMUSER(siptr) ((siptr)->si_code <= 0)
-#define SI_FROMKERNEL(siptr) ((siptr)->si_code > 0)
+#define SI_FROMUSER(siptr) ((siptr)->si_code <= 0 && (siptr)->si_code != SI_SIGIO)
+#define SI_FROMKERNEL(siptr) ((siptr)->si_code > 0 || (siptr)->si_code == SI_SIGIO)
/*
* SIGILL si_codes
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)