blob: 44d5c8d2baa9cac03755c1e6ade8626a50c32836 [file] [log] [blame]
Elliott Hughes103ccde2013-10-16 14:27:59 -07001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughese4ffd9f2013-10-01 13:29:43 -07003#include <asm/unistd.h>
4#include <linux/err.h>
5#include <machine/asm.h>
6
Elliott Hughes11952072013-10-24 15:15:14 -07007ENTRY(__pselect6)
Elliott Hughese4ffd9f2013-10-01 13:29:43 -07008 movq %rcx, %r10
Elliott Hughes11952072013-10-24 15:15:14 -07009 movl $__NR_pselect6, %eax
Elliott Hughese4ffd9f2013-10-01 13:29:43 -070010 syscall
11 cmpq $-MAX_ERRNO, %rax
12 jb 1f
13 negl %eax
14 movl %eax, %edi
15 call __set_errno
16 orq $-1, %rax
171:
18 ret
Elliott Hughes11952072013-10-24 15:15:14 -070019END(__pselect6)
Elliott Hughesfff6e272013-10-24 17:03:20 -070020.hidden _C_LABEL(__pselect6)