clarify the purpose of this project
[nyanglibc.git] / posix / nanosleep.shared.s
blob061f98cfeac02fa29d7b6745ad7606cd76ba5654
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 __GI___nanosleep
9 .hidden __GI___nanosleep
10 .type __GI___nanosleep, @function
11 __GI___nanosleep:
12 subq $8, %rsp
13 movq %rdi, %rdx
14 movq %rsi, %rcx
15 xorl %edi, %edi
16 xorl %esi, %esi
17 call __GI___clock_nanosleep
18 testl %eax, %eax
19 jne .L8
20 .L1:
21 addq $8, %rsp
22 ret
23 .p2align 4,,10
24 .p2align 3
25 .L8:
26 movq __libc_errno@gottpoff(%rip), %rdx
27 movl %eax, %fs:(%rdx)
28 movl $-1, %eax
29 jmp .L1
30 .size __GI___nanosleep, .-__GI___nanosleep
31 .globl __nanosleep
32 .set __nanosleep,__GI___nanosleep
33 .weak nanosleep
34 .set nanosleep,__nanosleep