clarify the purpose of this project
[nyanglibc.git] / misc / fanotify_mark.shared.s
blobc6e7ee95c82880a440b35c1e7afacee24f11d249
1 .text
2 .globl fanotify_mark
3 .type fanotify_mark,@function
4 .align 1<<4
5 fanotify_mark:
7 movq %rcx, %r10
8 movl $301, %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 fanotify_mark,.-fanotify_mark
19 .globl __GI_fanotify_mark
20 .set __GI_fanotify_mark,fanotify_mark