blob: e81c25710d0b9dd5437f8de4ccf37a728620b300 [file] [log] [blame]
Stephen Smalley5eb686d2012-01-13 07:45:16 -05001/* 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>
Stephen Smalley5eb686d2012-01-13 07:45:16 -05005
Elliott Hughes7582a9c2013-02-06 17:08:15 -08006ENTRY(fgetxattr)
Stephen Smalley5eb686d2012-01-13 07:45:16 -05007 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_fgetxattr, %eax
16 int $0x80
Elliott Hughes9aceab52013-03-12 14:57:30 -070017 cmpl $-MAX_ERRNO, %eax
Stephen Smalley5eb686d2012-01-13 07:45:16 -050018 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(fgetxattr)