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