blob: 75de9c8640669415a5c4940b664b89857f1007bb [file] [log] [blame]
Elliott Hughese4ffd9f2013-10-01 13:29:43 -07001/* autogenerated by gensyscalls.py */
2#include <asm/unistd.h>
3#include <linux/err.h>
4#include <machine/asm.h>
5
6ENTRY(faccessat)
7 movq %rcx, %r10
8 movl $__NR_faccessat, %eax
9 syscall
10 cmpq $-MAX_ERRNO, %rax
11 jb 1f
12 negl %eax
13 movl %eax, %edi
14 call __set_errno
15 orq $-1, %rax
161:
17 ret
18END(faccessat)