X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmkstemp.c;h=3c8437e5a42c1f72ca22a2516ead079f97295a06;hb=0e37faa962c9da84e85e24f409c2ff3836ba28d6;hp=dda0400948ffc7260219a8da3c61b847eee1171f;hpb=83e045030538b7838367305c0b92c7c756c90651;p=gnulib.git diff --git a/lib/mkstemp.c b/lib/mkstemp.c index dda040094..3c8437e5a 100644 --- a/lib/mkstemp.c +++ b/lib/mkstemp.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 @@ -38,7 +38,11 @@ /* Generate a unique temporary file name from XTEMPLATE. The last six characters of XTEMPLATE must be "XXXXXX"; they are replaced with a string that makes the file name unique. - Then open the file and return a fd. */ + Then open the file and return a fd. + + If you are creating temporary files which will later be removed, + consider using the clean-temp module, which avoids several pitfalls + of using mkstemp directly. */ int mkstemp (char *xtemplate) {