X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmkstemps.c;h=16f703e063b949d225c454da4a68d8d29f62dee2;hb=b572c3a256e7bf1e4eecc8c36448c08093240a6a;hp=5ce16973532248dfa0e3f7ca26e298d38d09a540;hpb=964a52336aad0cf4a4d6c08c128560c87742c921;p=gnulib.git diff --git a/lib/mkstemps.c b/lib/mkstemps.c index 5ce169735..16f703e06 100644 --- a/lib/mkstemps.c +++ b/lib/mkstemps.c @@ -1,5 +1,5 @@ -/* Copyright (C) 1998, 1999, 2001, 2005, 2006, 2007, 2009 Free - Software Foundation, Inc. +/* Copyright (C) 1998-1999, 2001, 2005-2007, 2009-2011 Free Software + Foundation, Inc. This file is derived from the one in the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -37,14 +37,12 @@ # define __GT_FILE 0 #endif -/* Generate a unique temporary file name from TEMPLATE. The last six - characters before a suffix of length SUFFIXLEN of TEMPLATE must be +/* Generate a unique temporary file name from XTEMPLATE. The last six + characters before a suffix of length SUFFIXLEN of XTEMPLATE must be "XXXXXX"; they are replaced with a string that makes the filename unique. Then open the file and return a fd. */ int -mkstemps (template, suffixlen) - char *template; - int suffixlen; +mkstemps (char *xtemplate, int suffixlen) { if (suffixlen < 0) { @@ -52,5 +50,5 @@ mkstemps (template, suffixlen) return -1; } - return __gen_tempname (template, suffixlen, 0, __GT_FILE); + return __gen_tempname (xtemplate, suffixlen, 0, __GT_FILE); }