diff options
Diffstat (limited to 'misc/mkstemp.c')
-rw-r--r-- | misc/mkstemp.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/misc/mkstemp.c b/misc/mkstemp.c index a01095b3b7..8657924806 100644 --- a/misc/mkstemp.c +++ b/misc/mkstemp.c @@ -18,19 +18,15 @@ #include <stdio.h> #include <stdlib.h> -#ifndef __GT_FILE -# define __GT_FILE 0 -#endif - /* 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 (template) - char *template; +mkstemp (char *template) { - return __gen_tempname (template, 0, 0, __GT_FILE); + return __gen_tempname (template, 0, + &__gen_tempname_try_file, __GT_FILE_DEFAULTS); } #if !defined O_LARGEFILE || O_LARGEFILE == 0 |