2013-10-16 23:27:59 +02:00
|
|
|
/* Generated by gensyscalls.py. Do not edit. */
|
|
|
|
|
2013-10-01 22:29:43 +02:00
|
|
|
#include <asm/unistd.h>
|
2013-03-12 22:57:30 +01:00
|
|
|
#include <linux/err.h>
|
2013-02-07 02:08:15 +01:00
|
|
|
#include <machine/asm.h>
|
2009-03-04 04:28:35 +01:00
|
|
|
|
2013-02-07 02:08:15 +01:00
|
|
|
ENTRY(epoll_ctl)
|
2009-03-04 04:28:35 +01:00
|
|
|
pushl %ebx
|
|
|
|
pushl %ecx
|
|
|
|
pushl %edx
|
|
|
|
pushl %esi
|
|
|
|
mov 20(%esp), %ebx
|
|
|
|
mov 24(%esp), %ecx
|
|
|
|
mov 28(%esp), %edx
|
|
|
|
mov 32(%esp), %esi
|
|
|
|
movl $__NR_epoll_ctl, %eax
|
|
|
|
int $0x80
|
2013-03-12 22:57:30 +01:00
|
|
|
cmpl $-MAX_ERRNO, %eax
|
2009-03-04 04:28:35 +01:00
|
|
|
jb 1f
|
|
|
|
negl %eax
|
|
|
|
pushl %eax
|
|
|
|
call __set_errno
|
|
|
|
addl $4, %esp
|
|
|
|
orl $-1, %eax
|
|
|
|
1:
|
|
|
|
popl %esi
|
|
|
|
popl %edx
|
|
|
|
popl %ecx
|
|
|
|
popl %ebx
|
|
|
|
ret
|
2013-02-07 02:08:15 +01:00
|
|
|
END(epoll_ctl)
|