1 /* autogenerated by gensyscalls.py */
2 #include <linux/err.h>
3 #include <machine/asm.h>
4 #include <asm/unistd.h>
6 ENTRY(epoll_wait)
7 pushl %ebx
8 pushl %ecx
9 pushl %edx
10 pushl %esi
11 mov 20(%esp), %ebx
12 mov 24(%esp), %ecx
13 mov 28(%esp), %edx
14 mov 32(%esp), %esi
15 movl $__NR_epoll_wait, %eax
16 int $0x80
17 cmpl $-MAX_ERRNO, %eax
18 jb 1f
19 negl %eax
20 pushl %eax
21 call __set_errno
22 addl $4, %esp
23 orl $-1, %eax
24 1:
25 popl %esi
26 popl %edx
27 popl %ecx
28 popl %ebx
29 ret
30 END(epoll_wait)