diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-03-31 04:17:44 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-03-31 04:17:44 +0000 |
commit | cdb29e3ea6c22f0c0358f0414e3ddb615b1c394f (patch) | |
tree | 2c867e60effb9df51b1a0fa615bb55b398561341 /libc/stdio/tempnam.c | |
parent | 9116dff92e5b362011431f073fe6aa98327be254 (diff) |
Rework __gen_tempname() to better match glibc, and add mkstemp64(),
which is needed for busybox ash when using largefile support.
-Erik
Diffstat (limited to 'libc/stdio/tempnam.c')
-rw-r--r-- | libc/stdio/tempnam.c | 7 |
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); |