clarify the purpose of this project
[nyanglibc.git] / rt / mq_unlink.s
blob04c350bef82cd90a0b6799ca281c5b37a137b1c3
1 .text
2 .p2align 4,,15
3 .globl mq_unlink
4 .type mq_unlink, @function
5 mq_unlink:
6 cmpb $47, (%rdi)
7 jne .L7
8 movl $241, %ecx
9 addq $1, %rdi
10 movl %ecx, %eax
11 #APP
12 # 29 "../sysdeps/unix/sysv/linux/mq_unlink.c" 1
13 syscall
15 # 0 "" 2
16 #NO_APP
17 cmpl $-4096, %eax
18 movq %rax, %rdx
19 ja .L8
20 rep ret
21 .p2align 4,,10
22 .p2align 3
23 .L8:
24 negl %eax
25 cmpl $-1, %edx
26 movl $13, %edx
27 cmove %edx, %eax
28 movq errno@gottpoff(%rip), %rdx
29 movl %eax, %fs:(%rdx)
30 movl $-1, %eax
31 ret
32 .p2align 4,,10
33 .p2align 3
34 .L7:
35 movq errno@gottpoff(%rip), %rax
36 movl $22, %fs:(%rax)
37 movl $-1, %eax
38 ret
39 .size mq_unlink, .-mq_unlink