clarify the purpose of this project
[nyanglibc.git] / io / utimensat.s
blob3cbe88a185873702ac41c93fe2ed78551d12124f
1 .text
2 .p2align 4,,15
3 .globl __utimensat64_helper
4 .hidden __utimensat64_helper
5 .type __utimensat64_helper, @function
6 __utimensat64_helper:
7 movl %ecx, %r10d
8 movl $280, %eax
9 #APP
10 # 34 "../sysdeps/unix/sysv/linux/utimensat.c" 1
11 syscall
13 # 0 "" 2
14 #NO_APP
15 cmpq $-4096, %rax
16 ja .L5
17 rep ret
18 .p2align 4,,10
19 .p2align 3
20 .L5:
21 movq __libc_errno@gottpoff(%rip), %rdx
22 negl %eax
23 movl %eax, %fs:(%rdx)
24 movl $-1, %eax
25 ret
26 .size __utimensat64_helper, .-__utimensat64_helper
27 .p2align 4,,15
28 .globl __utimensat
29 .type __utimensat, @function
30 __utimensat:
31 testq %rsi, %rsi
32 movl %ecx, %r10d
33 je .L11
34 movl $280, %eax
35 #APP
36 # 34 "../sysdeps/unix/sysv/linux/utimensat.c" 1
37 syscall
39 # 0 "" 2
40 #NO_APP
41 cmpq $-4096, %rax
42 ja .L12
43 rep ret
44 .p2align 4,,10
45 .p2align 3
46 .L12:
47 movq __libc_errno@gottpoff(%rip), %rdx
48 negl %eax
49 movl %eax, %fs:(%rdx)
50 movl $-1, %eax
51 ret
52 .L11:
53 movq __libc_errno@gottpoff(%rip), %rax
54 movl $22, %fs:(%rax)
55 movl $-1, %eax
56 ret
57 .size __utimensat, .-__utimensat
58 .weak utimensat
59 .set utimensat,__utimensat