clarify the purpose of this project
[nyanglibc.git] / signal / sigpending.s
blob9081df0d0a90200975a58b93d344271fb1045fea
1 .text
2 .p2align 4,,15
3 .globl sigpending
4 .type sigpending, @function
5 sigpending:
6 movl $8, %esi
7 movl $127, %eax
8 #APP
9 # 27 "../sysdeps/unix/sysv/linux/sigpending.c" 1
10 syscall
12 # 0 "" 2
13 #NO_APP
14 cmpq $-4096, %rax
15 ja .L5
16 rep ret
17 .p2align 4,,10
18 .p2align 3
19 .L5:
20 movq __libc_errno@gottpoff(%rip), %rdx
21 negl %eax
22 movl %eax, %fs:(%rdx)
23 movl $-1, %eax
24 ret
25 .size sigpending, .-sigpending