diff options
author | DJ Delorie <dj@delorie.com> | 2001-10-16 02:55:31 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2001-10-16 02:55:31 +0000 |
commit | f3be4515529c717157531bdf65d27cd9558ac5a0 (patch) | |
tree | 695d6b4bbd60ce9b111fb1ca820467c97c109fca /libiberty/make-temp-file.c | |
parent | 4ebc0d353aac952ae3cce8620421ba232d228a92 (diff) | |
download | gdb-f3be4515529c717157531bdf65d27cd9558ac5a0.tar.gz |
merge from gcc
Diffstat (limited to 'libiberty/make-temp-file.c')
-rw-r--r-- | libiberty/make-temp-file.c | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/libiberty/make-temp-file.c b/libiberty/make-temp-file.c index f3e1d10e9a7..db4bd9e5e4a 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) |