Elliott Hughes | 103ccde | 2013-10-16 14:27:59 -0700 | [diff] [blame] | 1 | /* Generated by gensyscalls.py. Do not edit. */ |
| 2 | |
Elliott Hughes | e4ffd9f | 2013-10-01 13:29:43 -0700 | [diff] [blame] | 3 | #include <asm/unistd.h> |
| 4 | #include <linux/err.h> |
| 5 | #include <machine/asm.h> |
| 6 | |
Elliott Hughes | cac7b9d | 2013-10-23 09:48:29 -0700 | [diff] [blame^] | 7 | ENTRY(epoll_create1) |
| 8 | movl $__NR_epoll_create1, %eax |
Elliott Hughes | e4ffd9f | 2013-10-01 13:29:43 -0700 | [diff] [blame] | 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 |
Elliott Hughes | cac7b9d | 2013-10-23 09:48:29 -0700 | [diff] [blame^] | 18 | END(epoll_create1) |