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/tmpfile.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libc/stdio/tmpfile.c') diff --git a/libc/stdio/tmpfile.c b/libc/stdio/tmpfile.c index 7669e46db..f19c497a4 100644 --- a/libc/stdio/tmpfile.c +++ b/libc/stdio/tmpfile.c @@ -20,10 +20,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); - /* This returns a new stream opened on a temporary file (generated by tmpnam). The file is opened with mode "w+b" (binary read/write). If we couldn't generate a unique filename or the file couldn't @@ -36,7 +32,7 @@ FILE * tmpfile (void) if (__path_search (buf, FILENAME_MAX, NULL, "tmpf", 0)) return NULL; - fd = __gen_tempname (buf, 1); + fd = __gen_tempname (buf, __GT_FILE); if (fd < 0) return NULL; -- cgit v1.2.3