clarify the purpose of this project
[nyanglibc.git] / signal / sigprocmask.s
blob8a59da86f0affdeb2c26bc8cf3edb0b686f5f380
1 .text
2 .p2align 4,,15
3 .globl __sigprocmask
4 .hidden __sigprocmask
5 .type __sigprocmask, @function
6 __sigprocmask:
7 subq $8, %rsp
8 call __pthread_sigmask
9 testl %eax, %eax
10 jne .L8
11 .L1:
12 addq $8, %rsp
13 ret
14 .p2align 4,,10
15 .p2align 3
16 .L8:
17 movq __libc_errno@gottpoff(%rip), %rdx
18 movl %eax, %fs:(%rdx)
19 movl $-1, %eax
20 jmp .L1
21 .size __sigprocmask, .-__sigprocmask
22 .weak sigprocmask
23 .set sigprocmask,__sigprocmask
24 .hidden __pthread_sigmask