clarify the purpose of this project
[nyanglibc.git] / misc / epoll_ctl.s
blobb61726edb3029a1e2562f7cfadb4e60d7a0d74d8
1 .text
2 .globl epoll_ctl
3 .type epoll_ctl,@function
4 .align 1<<4
5 epoll_ctl:
7 movq %rcx, %r10
8 movl $233, %eax
9 syscall
10 cmpq $-4095, %rax
11 jae 0f
12 ret
13 0: movq __libc_errno@GOTTPOFF(%rip), %rcx
14 neg %eax
15 movl %eax, %fs:(%rcx)
16 or $-1, %rax
17 ret
18 .size epoll_ctl,.-epoll_ctl