diff options
Diffstat (limited to 'misc/mkstemps64.c')
-rw-r--r-- | misc/mkstemps64.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/misc/mkstemps64.c b/misc/mkstemps64.c index 1b0f024257..d3d7013504 100644 --- a/misc/mkstemps64.c +++ b/misc/mkstemps64.c @@ -28,17 +28,9 @@ "XXXXXX"; they are replaced with a string that makes the filename unique. Then open the file and return a fd. */ int -mkstemps64 (template, suffixlen) - char *template; - int suffixlen; +mkstemps64 (char *template, int suffixlen) { - if (suffixlen < 0) - { - __set_errno (EINVAL); - return -1; - } - - return __gen_tempname (template, suffixlen, O_LARGEFILE, __GT_FILE); + return mkostemps (template, suffixlen, O_LARGEFILE); } #endif |