| Elliott Hughes | e4ffd9f | 2013-10-01 13:29:43 -0700 | [diff] [blame^] | 1 | /* autogenerated by gensyscalls.py */ |
| 2 | #include <asm/unistd.h> | ||||
| 3 | #include <linux/err.h> | ||||
| 4 | #include <machine/asm.h> | ||||
| 5 | |||||
| 6 | ENTRY(signalfd4) | ||||
| 7 | movq %rcx, %r10 | ||||
| 8 | movl $__NR_signalfd4, %eax | ||||
| 9 | syscall | ||||
| 10 | cmpq $-MAX_ERRNO, %rax | ||||
| 11 | jb 1f | ||||
| 12 | negl %eax | ||||
| 13 | movl %eax, %edi | ||||
| 14 | call __set_errno | ||||
| 15 | orq $-1, %rax | ||||
| 16 | 1: | ||||
| 17 | ret | ||||
| 18 | END(signalfd4) | ||||