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