summaryrefslogtreecommitdiff
path: root/libiberty/choose-temp.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2001-10-16 02:55:31 +0000
committerDJ Delorie <dj@delorie.com>2001-10-16 02:55:31 +0000
commitf3be4515529c717157531bdf65d27cd9558ac5a0 (patch)
tree695d6b4bbd60ce9b111fb1ca820467c97c109fca /libiberty/choose-temp.c
parent4ebc0d353aac952ae3cce8620421ba232d228a92 (diff)
downloadgdb-f3be4515529c717157531bdf65d27cd9558ac5a0.tar.gz
merge from gcc
Diffstat (limited to 'libiberty/choose-temp.c')
-rw-r--r--libiberty/choose-temp.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/libiberty/choose-temp.c b/libiberty/choose-temp.c
index c6df304b552..de6fbed4b7d 100644
--- a/libiberty/choose-temp.c
+++ b/libiberty/choose-temp.c
@@ -37,13 +37,21 @@ extern char *choose_tmpdir PARAMS ((void));
#define TEMP_FILE "ccXXXXXX"
#define TEMP_FILE_LEN (sizeof(TEMP_FILE) - 1)
-/* Return a prefix for temporary file names or NULL if unable to find one.
- The current directory is chosen if all else fails so the program is
- exited if a temporary directory can't be found (mktemp fails).
- The buffer for the result is obtained with xmalloc.
+/*
- This function is provided for backwards compatability only. It use
- is not recommended. */
+@deftypefn Extension char* choose_temp_base ()
+
+Return a prefix for temporary file names or @code{NULL} if unable to
+find one. The current directory is chosen if all else fails so the
+program is exited if a temporary directory can't be found (@code{mktemp}
+fails). The buffer for the result is obtained with @code{xmalloc}.
+
+This function is provided for backwards compatability only. Its use is
+not recommended.
+
+@end deftypefn
+
+*/
char *
choose_temp_base ()