clarify the purpose of this project
[nyanglibc.git] / io / openat_2.shared.s
blob683faaf6ecb193f30654cc32a70b4b9847521d33
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 .section .rodata.str1.8,"aMS",@progbits,1
7 .align 8
8 .LC0:
9 .string "invalid openat call: O_CREAT or O_TMPFILE without mode"
10 #NO_APP
11 .text
12 .p2align 4,,15
13 .globl __openat_2
14 .type __openat_2, @function
15 __openat_2:
16 testb $64, %dl
17 jne .L2
18 movl %edx, %eax
19 andl $4259840, %eax
20 cmpl $4259840, %eax
21 je .L2
22 xorl %eax, %eax
23 jmp __GI___openat
24 .L2:
25 leaq .LC0(%rip), %rdi
26 subq $8, %rsp
27 call __GI___fortify_fail
28 .size __openat_2, .-__openat_2