blob: c7c3b20cab614c73f69f6bdf996214355bb9737e [file] [log] [blame]
Kenny Rootf0ec06b2012-04-13 14:56:25 -07001/* autogenerated by gensyscalls.py */
Elliott Hughes9aceab52013-03-12 14:57:30 -07002#include <linux/err.h>
Elliott Hughes7582a9c2013-02-06 17:08:15 -08003#include <machine/asm.h>
Elliott Hughes5c2772f2013-03-21 22:15:06 -07004#include <asm/unistd.h>
Kenny Rootf0ec06b2012-04-13 14:56:25 -07005
Elliott Hughes7582a9c2013-02-06 17:08:15 -08006ENTRY(faccessat)
Kenny Rootf0ec06b2012-04-13 14:56:25 -07007 pushl %ebx
8 pushl %ecx
9 pushl %edx
10 pushl %esi
11 mov 20(%esp), %ebx
12 mov 24(%esp), %ecx
13 mov 28(%esp), %edx
14 mov 32(%esp), %esi
15 movl $__NR_faccessat, %eax
16 int $0x80
Elliott Hughes9aceab52013-03-12 14:57:30 -070017 cmpl $-MAX_ERRNO, %eax
Kenny Rootf0ec06b2012-04-13 14:56:25 -070018 jb 1f
19 negl %eax
20 pushl %eax
21 call __set_errno
22 addl $4, %esp
23 orl $-1, %eax
241:
25 popl %esi
26 popl %edx
27 popl %ecx
28 popl %ebx
29 ret
Elliott Hughes7582a9c2013-02-06 17:08:15 -080030END(faccessat)