1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/* sigprocmask(int how, const sigset_t *set, sigset_t *oset); */
#include "SYS.h"
.text
PREFIX(sigprocmask)
stwu 1, -16(1)
stw 5, 12(1)
/* check set (new mask value) for null, in which case
fiddle arguments */
cmpwi 4, 0
bne+ .L_load_set
addi 3, 0, 1 /* how = SIG_BLOCK, new mask already 0 */
b .L_do_call
.L_load_set:
lwz 4, 0(4) /* get new mask */
.L_do_call:
sc
/* didnt work? */
cmpwi 0, 0
beq+ .L_sigprocmask_ok
b PIC_PLT(_ASM_LABEL(cerror))
.L_sigprocmask_ok:
lwz 5, 12(1)
cmpwi 5, 0
beq+ .L_sigprocmask_done
stw 3, 0(5)
.L_sigprocmask_done:
li 3, 0
addi 1, 1, 16
blr
|