]> git.sur5r.net Git - cc65/commitdiff
Add signal bitmasks
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 20 Dec 2002 21:02:57 +0000 (21:02 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 20 Dec 2002 21:02:57 +0000 (21:02 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1799 b7a2c559-68d2-44c3-8de9-860c34a00d81

asminc/signal.inc

index f3300c50a3c82b1ff9687ffd2dcb9fdfe137dc70..e07625e961ee5129a29d6d639e3cd4a37b709c90 100644 (file)
@@ -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