clarify the purpose of this project
[nyanglibc.git] / sysvipc / semget.shared.s
blobc98ac2a07f78315b3a9eea29e8bea267c2981cb3
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 semget
9 .type semget, @function
10 semget:
11 movl $64, %eax
12 #APP
13 # 31 "../sysdeps/unix/sysv/linux/semget.c" 1
14 syscall
16 # 0 "" 2
17 #NO_APP
18 cmpq $-4096, %rax
19 ja .L5
20 rep ret
21 .p2align 4,,10
22 .p2align 3
23 .L5:
24 movq __libc_errno@gottpoff(%rip), %rdx
25 negl %eax
26 movl %eax, %fs:(%rdx)
27 movl $-1, %eax
28 ret
29 .size semget, .-semget