aboutsummaryrefslogtreecommitdiff
path: root/libiberty/make-temp-file.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2001-10-16 02:55:31 +0000
committerDJ Delorie <dj@redhat.com>2001-10-16 02:55:31 +0000
commitba19b94f67aeec0722939ce17b4067c8fd05f4cc (patch)
treedb034680b326cb43083236abf9737518d7e1c78a /libiberty/make-temp-file.c
parenta3366758ce10f5bc06f1a128c4eb82cf2a82e455 (diff)
downloadgdb-ba19b94f67aeec0722939ce17b4067c8fd05f4cc.zip
gdb-ba19b94f67aeec0722939ce17b4067c8fd05f4cc.tar.gz
gdb-ba19b94f67aeec0722939ce17b4067c8fd05f4cc.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/make-temp-file.c')
-rw-r--r--libiberty/make-temp-file.c25
1 files changed, 22 insertions, 3 deletions
diff --git a/libiberty/make-temp-file.c b/libiberty/make-temp-file.c
index f3e1d10..db4bd9e 100644
--- a/libiberty/make-temp-file.c
+++ b/libiberty/make-temp-file.c
@@ -83,6 +83,17 @@ static const char vartmp[] =
static char *memoized_tmpdir;
+/*
+
+@deftypefn Replacement char* choose_tmpdir ()
+
+Returns a pointer to a directory path suitable for creating temporary
+files in.
+
+@end deftypefn
+
+*/
+
char *
choose_tmpdir ()
{
@@ -122,9 +133,17 @@ choose_tmpdir ()
return tmpdir;
}
-/* Return a temporary file name (as a string) or NULL if unable to create
- one. SUFFIX is a suffix to append to the file name. The string is
- malloced, and the temporary file has been created. */
+/*
+
+@deftypefn Replacement char* make_temp_file (const char *@var{suffix})
+
+Return a temporary file name (as a string) or @code{NULL} if unable to
+create one. @var{suffix} is a suffix to append to the file name. The
+string is malloced, and the temporary file has been created.
+
+@end deftypefn
+
+*/
char *
make_temp_file (suffix)