blob: e064b553b3d6ecbf1189f54f961eaffa0a1843fd [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
Elliott Hughes232163c2013-10-09 17:35:36 -07006ENTRY(setreuid)
Elliott Hughese4ffd9f2013-10-01 13:29:43 -07007 movl $__NR_setreuid, %eax
8 syscall
9 cmpq $-MAX_ERRNO, %rax
10 jb 1f
11 negl %eax
12 movl %eax, %edi
13 call __set_errno
14 orq $-1, %rax
151:
16 ret
Elliott Hughes232163c2013-10-09 17:35:36 -070017END(setreuid)