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 | 1195207 | 2013-10-24 15:15:14 -0700 | [diff] [blame] | 7 | ENTRY(__pselect6) |
Elliott Hughes | e4ffd9f | 2013-10-01 13:29:43 -0700 | [diff] [blame] | 8 | movq %rcx, %r10 |
Elliott Hughes | 1195207 | 2013-10-24 15:15:14 -0700 | [diff] [blame] | 9 | movl $__NR_pselect6, %eax |
Elliott Hughes | e4ffd9f | 2013-10-01 13:29:43 -0700 | [diff] [blame] | 10 | syscall |
| 11 | cmpq $-MAX_ERRNO, %rax |
| 12 | jb 1f |
| 13 | negl %eax |
| 14 | movl %eax, %edi |
| 15 | call __set_errno |
| 16 | orq $-1, %rax |
| 17 | 1: |
| 18 | ret |
Elliott Hughes | 1195207 | 2013-10-24 15:15:14 -0700 | [diff] [blame] | 19 | END(__pselect6) |
Elliott Hughes | fff6e27 | 2013-10-24 17:03:20 -0700 | [diff] [blame^] | 20 | .hidden _C_LABEL(__pselect6) |