clarify the purpose of this project
[nyanglibc.git] / io / open_2.s
blob18eb7b1e5e4df6b9b54411278175ac705b8849c7
1 .text
2 .section .rodata.str1.8,"aMS",@progbits,1
3 .align 8
4 .LC0:
5 .string "invalid open call: O_CREAT or O_TMPFILE without mode"
6 .text
7 .p2align 4,,15
8 .globl __open_2
9 .type __open_2, @function
10 __open_2:
11 testb $64, %sil
12 jne .L2
13 movl %esi, %eax
14 andl $4259840, %eax
15 cmpl $4259840, %eax
16 je .L2
17 xorl %eax, %eax
18 jmp __open
19 .L2:
20 leaq .LC0(%rip), %rdi
21 subq $8, %rsp
22 call __fortify_fail
23 .size __open_2, .-__open_2
24 .hidden __fortify_fail
25 .hidden __open