about summary refs log tree commit diff
path: root/support/temp_file.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-11-18 14:11:09 +0100
committerFlorian Weimer <fweimer@redhat.com>2017-11-18 14:11:09 +0100
commit8adfb0eeffd1888f9b53b8d8677eb1656cd20e47 (patch)
tree1b5cabdb49792cbee8839fee6d907b5d9513a4b0 /support/temp_file.h
parentdf0c40ee3a893238ac11f4c0d876a0c3b49d198d (diff)
downloadglibc-8adfb0eeffd1888f9b53b8d8677eb1656cd20e47.tar.gz
glibc-8adfb0eeffd1888f9b53b8d8677eb1656cd20e47.tar.xz
glibc-8adfb0eeffd1888f9b53b8d8677eb1656cd20e47.zip
support_create_temp_directory: Align behavior with create_temp_file
create_temp_file automatically supplies the test directory and the
XXXXXX suffix.  support_create_temp_directory required the caller to
specify them, which was confusing.

Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to 'support/temp_file.h')
-rw-r--r--support/temp_file.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/support/temp_file.h b/support/temp_file.h
index dfefe585de..3b8563e115 100644
--- a/support/temp_file.h
+++ b/support/temp_file.h
@@ -32,9 +32,9 @@ void add_temp_file (const char *name);
    *FILENAME.  */
 int create_temp_file (const char *base, char **filename);
 
-/* Create a temporary directory and schedule it for deletion.  BASE
-   must end with the six characters "XXXXXX".  Return the name of the
-   temporary directory.  The caller should free the string.  */
+/* Create a temporary directory and schedule it for deletion.  BASE is
+   used as a prefix for the unique directory name, which the function
+   returns.  The caller should free this string.  */
 char *support_create_temp_directory (const char *base);
 
 __END_DECLS