summaryrefslogtreecommitdiff
path: root/libc/stdio/tempnam.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio/tempnam.c')
-rw-r--r--libc/stdio/tempnam.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libc/stdio/tempnam.c b/libc/stdio/tempnam.c
index 4beb5af83..109276de7 100644
--- a/libc/stdio/tempnam.c
+++ b/libc/stdio/tempnam.c
@@ -19,11 +19,6 @@
#include <stdio.h>
#include <string.h>
-extern int __path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx,
- int try_tmpdir);
-extern int __gen_tempname (char *tmpl, int openit);
-
-
/* Generate a unique temporary filename using up to five characters of PFX
if it is not NULL. The directory to put this file in is searched for
as follows: First the environment variable "TMPDIR" is checked.
@@ -39,7 +34,7 @@ tempnam (const char *dir, const char *pfx)
if (__path_search (buf, FILENAME_MAX, dir, pfx, 1))
return NULL;
- if (__gen_tempname (buf, 0))
+ if (__gen_tempname (buf, __GT_NOCREATE))
return NULL;
return strdup (buf);