clarify the purpose of this project
[nyanglibc.git] / stdio-common / tmpnam_r.s
blob50062b5477dfd3bddb73223a4912f1a3980cc57e
1 .text
2 #APP
3 .section .gnu.warning.tmpnam_r
4 .previous
5 #NO_APP
6 .p2align 4,,15
7 .globl tmpnam_r
8 .type tmpnam_r, @function
9 tmpnam_r:
10 testq %rdi, %rdi
11 pushq %rbx
12 je .L4
13 xorl %r8d, %r8d
14 xorl %ecx, %ecx
15 xorl %edx, %edx
16 movl $20, %esi
17 movq %rdi, %rbx
18 call __path_search
19 testl %eax, %eax
20 jne .L4
21 xorl %edx, %edx
22 xorl %esi, %esi
23 movl $2, %ecx
24 movq %rbx, %rdi
25 call __gen_tempname
26 testl %eax, %eax
27 jne .L4
28 movq %rbx, %rax
29 popq %rbx
30 ret
31 .p2align 4,,10
32 .p2align 3
33 .L4:
34 xorl %ebx, %ebx
35 movq %rbx, %rax
36 popq %rbx
37 ret
38 .size tmpnam_r, .-tmpnam_r
39 .section .gnu.warning.tmpnam_r
40 #,"a",@progbits
41 .align 32
42 .type __evoke_link_warning_tmpnam_r, @object
43 .size __evoke_link_warning_tmpnam_r, 57
44 __evoke_link_warning_tmpnam_r:
45 .string "the use of `tmpnam_r' is dangerous, better use `mkstemp'"
46 .hidden __gen_tempname
47 .hidden __path_search