clarify the purpose of this project
[nyanglibc.git] / io / readlinkat.s
blobedea0dd7126b7efe2d219b0c01b6be6ce968ef1a
1 .text
2 .globl readlinkat
3 .type readlinkat,@function
4 .align 1<<4
5 readlinkat:
6 movq %rcx, %r10
7 movl $267, %eax
8 syscall
9 cmpq $-4095, %rax
10 jae 0f
11 ret
13 movq __libc_errno@GOTTPOFF(%rip), %rcx
14 neg %eax
15 movl %eax, %fs:(%rcx)
16 or $-1, %rax
17 ret
18 .size readlinkat,.-readlinkat