mirror of
https://github.com/cc65/cc65.git
synced 2024-12-26 08:32:00 +00:00
Add signal bitmasks
git-svn-id: svn://svn.cc65.org/cc65/trunk@1799 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
a143f26061
commit
a75591573c
@ -34,9 +34,9 @@
|
|||||||
|
|
||||||
|
|
||||||
; Standard signal handling functions
|
; Standard signal handling functions
|
||||||
SIG_IGN = $0000
|
|
||||||
SIG_ERR = $FFFF
|
SIG_ERR = $FFFF
|
||||||
SIG_DFL = $FFFE
|
SIG_IGN = $0000
|
||||||
|
SIG_DFL = $0001
|
||||||
|
|
||||||
; Signal numbers
|
; Signal numbers
|
||||||
SIGABRT = 0
|
SIGABRT = 0
|
||||||
@ -45,6 +45,15 @@ SIGILL = 2
|
|||||||
SIGINT = 3
|
SIGINT = 3
|
||||||
SIGSEGV = 4
|
SIGSEGV = 4
|
||||||
SIGTERM = 5
|
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
|
; Function declarations
|
||||||
.global _signal
|
.global _signal
|
||||||
|
Loading…
Reference in New Issue
Block a user