From a75591573c78c75d6226641d0e460b8502268817 Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 20 Dec 2002 21:02:57 +0000 Subject: [PATCH] Add signal bitmasks git-svn-id: svn://svn.cc65.org/cc65/trunk@1799 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- asminc/signal.inc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/asminc/signal.inc b/asminc/signal.inc index f3300c50a..e07625e96 100644 --- a/asminc/signal.inc +++ b/asminc/signal.inc @@ -34,9 +34,9 @@ ; Standard signal handling functions -SIG_IGN = $0000 SIG_ERR = $FFFF -SIG_DFL = $FFFE +SIG_IGN = $0000 +SIG_DFL = $0001 ; Signal numbers SIGABRT = 0 @@ -45,6 +45,15 @@ SIGILL = 2 SIGINT = 3 SIGSEGV = 4 SIGTERM = 5 +SIGCOUNT = 6 ; Number of signals (maximum: 8) + +; Signal masks +SIGMASK_ABRT = (1 .SHL SIGABRT) +SIGMASK_FPE = (1 .SHL SIGFPE) +SIGMASK_ILL = (1 .SHL SIGILL) +SIGMASK_INT = (1 .SHL SIGINT) +SIGMASK_SEGV = (1 .SHL SIGSEGV) +SIGMASK_TERM = (1 .SHL SIGTERM) ; Function declarations .global _signal