clarify the purpose of this project
[nyanglibc.git] / misc / mkdtemp.shared.s
blobf5dcb7f9579370238db610fd820067b31b20a190
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 #NO_APP
7 .p2align 4,,15
8 .globl mkdtemp
9 .type mkdtemp, @function
10 mkdtemp:
11 pushq %rbx
12 xorl %edx, %edx
13 xorl %esi, %esi
14 movl $1, %ecx
15 movq %rdi, %rbx
16 call __gen_tempname
17 testl %eax, %eax
18 movl $0, %eax
19 cmove %rbx, %rax
20 popq %rbx
21 ret
22 .size mkdtemp, .-mkdtemp
23 .hidden __gen_tempname