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/stdlib/mkstemp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libc/stdlib/mkstemp.c') diff --git a/libc/stdlib/mkstemp.c b/libc/stdlib/mkstemp.c index d0104c8f3..de5d557f4 100644 --- a/libc/stdlib/mkstemp.c +++ b/libc/stdlib/mkstemp.c @@ -19,13 +19,11 @@ #include #include -extern int __gen_tempname (char *tmpl, int openit); - /* Generate a unique temporary file name from TEMPLATE. The last six characters of TEMPLATE must be "XXXXXX"; they are replaced with a string that makes the filename unique. Then open the file and return a fd. */ int mkstemp (char *template) { - return __gen_tempname (template, 1); + return __gen_tempname (template, __GT_FILE); } -- cgit v1.2.3