clarify the purpose of this project
[nyanglibc.git] / io / mknodat.shared.s
bloba08c759565139303b453515a9ccb09ba89391042
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___mknodat
9 .hidden __GI___mknodat
10 .type __GI___mknodat, @function
11 __GI___mknodat:
12 movl %ecx, %eax
13 cmpq %rax, %rcx
14 jne .L7
15 movl %ecx, %r10d
16 movl $259, %eax
17 #APP
18 # 33 "../sysdeps/unix/sysv/linux/mknodat.c" 1
19 syscall
21 # 0 "" 2
22 #NO_APP
23 cmpq $-4096, %rax
24 ja .L8
25 rep ret
26 .p2align 4,,10
27 .p2align 3
28 .L8:
29 movq __libc_errno@gottpoff(%rip), %rdx
30 negl %eax
31 movl %eax, %fs:(%rdx)
32 movl $-1, %eax
33 ret
34 .p2align 4,,10
35 .p2align 3
36 .L7:
37 movq __libc_errno@gottpoff(%rip), %rax
38 movl $22, %fs:(%rax)
39 movl $-1, %eax
40 ret
41 .size __GI___mknodat, .-__GI___mknodat
42 .globl __mknodat
43 .set __mknodat,__GI___mknodat
44 .weak mknodat
45 .set mknodat,__mknodat