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