clarify the purpose of this project
[nyanglibc.git] / time / clock_settime.s
blob19c50d27011f2ccc932343e371dc570b7c2ef221
1 .text
2 .p2align 4,,15
3 .globl __clock_settime
4 .hidden __clock_settime
5 .type __clock_settime, @function
6 __clock_settime:
7 cmpq $999999999, 8(%rsi)
8 ja .L7
9 movl $227, %eax
10 #APP
11 # 38 "../sysdeps/unix/sysv/linux/clock_settime.c" 1
12 syscall
14 # 0 "" 2
15 #NO_APP
16 cmpq $-4096, %rax
17 ja .L8
18 rep ret
19 .p2align 4,,10
20 .p2align 3
21 .L8:
22 movq __libc_errno@gottpoff(%rip), %rdx
23 negl %eax
24 movl %eax, %fs:(%rdx)
25 movl $-1, %eax
26 ret
27 .p2align 4,,10
28 .p2align 3
29 .L7:
30 movq __libc_errno@gottpoff(%rip), %rax
31 movl $22, %fs:(%rax)
32 movl $-1, %eax
33 ret
34 .size __clock_settime, .-__clock_settime
35 .weak clock_settime
36 .set clock_settime,__clock_settime