2013-10-01 22:29:43 +02:00
|
|
|
/* autogenerated by gensyscalls.py */
|
|
|
|
#include <asm/unistd.h>
|
|
|
|
#include <linux/err.h>
|
|
|
|
#include <machine/asm.h>
|
|
|
|
|
2013-10-10 02:35:36 +02:00
|
|
|
ENTRY(setresuid)
|
2013-10-01 22:29:43 +02:00
|
|
|
movl $__NR_setresuid, %eax
|
|
|
|
syscall
|
|
|
|
cmpq $-MAX_ERRNO, %rax
|
|
|
|
jb 1f
|
|
|
|
negl %eax
|
|
|
|
movl %eax, %edi
|
|
|
|
call __set_errno
|
|
|
|
orq $-1, %rax
|
|
|
|
1:
|
|
|
|
ret
|
2013-10-10 02:35:36 +02:00
|
|
|
END(setresuid)
|