use __sig_ign and __sig_dft instead of _sig_ign and _sig_dft
This commit is contained in:
@@ -33,9 +33,9 @@ _raise:
|
||||
; introduce race conditions, but it's the simplest way to satisfy the
|
||||
; standard).
|
||||
|
||||
lda #<__sig_dfl
|
||||
lda #<___sig_dfl
|
||||
sta sigtable,x
|
||||
lda #>__sig_dfl
|
||||
lda #>___sig_dfl
|
||||
sta sigtable+1,x
|
||||
|
||||
; Restore the signal number and call the function
|
||||
|
||||
@@ -54,7 +54,7 @@ _signal:
|
||||
pla
|
||||
tax
|
||||
pla
|
||||
__sig_ign:
|
||||
___sig_ign:
|
||||
rts
|
||||
|
||||
; Error entry: We use our knowledge that SIG_ERR is zero here to save a byte
|
||||
@@ -63,6 +63,6 @@ invalidsig:
|
||||
lda #<EINVAL
|
||||
jsr __seterrno ; Returns 0 in A
|
||||
tax ; A/X = 0
|
||||
__sig_dfl:
|
||||
___sig_dfl:
|
||||
rts
|
||||
|
||||
|
||||
@@ -14,11 +14,11 @@
|
||||
.data
|
||||
|
||||
sigtable:
|
||||
.word __sig_dfl ; SIGABRT
|
||||
.word __sig_dfl ; SIGFPE
|
||||
.word __sig_dfl ; SIGILL
|
||||
.word __sig_dfl ; SIGINT
|
||||
.word __sig_dfl ; SIGSEGV
|
||||
.word __sig_dfl ; SIGTERM
|
||||
.word ___sig_dfl ; SIGABRT
|
||||
.word ___sig_dfl ; SIGFPE
|
||||
.word ___sig_dfl ; SIGILL
|
||||
.word ___sig_dfl ; SIGINT
|
||||
.word ___sig_dfl ; SIGSEGV
|
||||
.word ___sig_dfl ; SIGTERM
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user