From cdb29e3ea6c22f0c0358f0414e3ddb615b1c394f Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sun, 31 Mar 2002 04:17:44 +0000 Subject: Rework __gen_tempname() to better match glibc, and add mkstemp64(), which is needed for busybox ash when using largefile support. -Erik --- libc/stdio/tempnam.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libc/stdio/tempnam.c') 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 #include -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); -- cgit v1.2.3