clarify the purpose of this project
[nyanglibc.git] / signal / sigsetmask.s
blob578fabeba78acbaf3d8e1da2b8962d78bafdba1a
1 .text
2 .p2align 4,,15
3 .globl __sigsetmask
4 .type __sigsetmask, @function
5 __sigsetmask:
6 subq $264, %rsp
7 movl %edi, %eax
8 movq %rsp, %rsi
9 movq %rax, (%rsp)
10 leaq 128(%rsi), %rdx
11 leaq 8(%rsi), %rax
12 .p2align 4,,10
13 .p2align 3
14 .L2:
15 addq $8, %rax
16 movq $0, -8(%rax)
17 cmpq %rdx, %rax
18 jne .L2
19 leaq 128(%rsp), %rdx
20 movl $2, %edi
21 call __sigprocmask
22 testl %eax, %eax
23 js .L4
24 movl 128(%rsp), %eax
25 .L1:
26 addq $264, %rsp
27 ret
28 .L4:
29 movl $-1, %eax
30 jmp .L1
31 .size __sigsetmask, .-__sigsetmask
32 .weak sigsetmask
33 .set sigsetmask,__sigsetmask
34 .hidden __sigprocmask