clarify the purpose of this project
[nyanglibc.git] / misc / mktemp.shared.s
blob7c3e8564039a2eeff1a429e47a3443c1b3315290
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 .section .gnu.warning.mktemp
7 .previous
8 #NO_APP
9 .p2align 4,,15
10 .globl __mktemp
11 .type __mktemp, @function
12 __mktemp:
13 pushq %rbx
14 xorl %edx, %edx
15 xorl %esi, %esi
16 movl $2, %ecx
17 movq %rdi, %rbx
18 call __gen_tempname
19 testl %eax, %eax
20 jns .L2
21 movb $0, (%rbx)
22 .L2:
23 movq %rbx, %rax
24 popq %rbx
25 ret
26 .size __mktemp, .-__mktemp
27 .weak mktemp
28 .set mktemp,__mktemp
29 .section .gnu.warning.mktemp
30 #,"a",@progbits
31 .align 32
32 .type __evoke_link_warning_mktemp, @object
33 .size __evoke_link_warning_mktemp, 68
34 __evoke_link_warning_mktemp:
35 .string "the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'"
36 .hidden __gen_tempname