blob: 712c556c06ab1b76dc494a2982e9a7e1aaf8b57c [file] [log] [blame]
/* autogenerated by gensyscalls.py */
#include <asm/unistd.h>
#include <linux/err.h>
#include <machine/asm.h>
ENTRY(prctl)
movq %rcx, %r10
movl $__NR_prctl, %eax
syscall
cmpq $-MAX_ERRNO, %rax
jb 1f
negl %eax
movl %eax, %edi
call __set_errno
orq $-1, %rax
1:
ret
END(prctl)