You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by ia...@apache.org on 2001/09/27 18:44:13 UTC
cvs commit: apr/include apr_file_io.h
ianh 01/09/27 09:44:13
Modified: include apr_file_io.h
Log:
added a remark to apr_file_mktemp,
as I didn't realise the template gets overridden,
so I'm sure others wouldn't either
Revision Changes Path
1.111 +7 -0 apr/include/apr_file_io.h
Index: apr_file_io.h
===================================================================
RCS file: /home/cvs/apr/include/apr_file_io.h,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -r1.110 -r1.111
--- apr_file_io.h 2001/09/24 05:41:56 1.110
+++ apr_file_io.h 2001/09/27 16:44:13 1.111
@@ -581,6 +581,13 @@
* @param template The template to use when creating a temp file.
* @param p The pool to allocate the file out of.
* @ingroup apr_file_open
+ * @remark
+ * This function generates a unique temporary file name from template.
+ * The last six characters of template must be XXXXXX and these are replaced
+ * with a string that makes the filename unique. Since it will be modified,
+ * template must not be a string constant, but should be declared as a character
+ * array.
+ *
*/
APR_DECLARE(apr_status_t) apr_file_mktemp(apr_file_t **fp, char *tmplt,
apr_pool_t *p);