projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix possible bug when no args have been provided to the executable
[deliverable/binutils-gdb.git]
/
libiberty
/
choose-temp.c
diff --git
a/libiberty/choose-temp.c
b/libiberty/choose-temp.c
index 4a26a827a2c296a21e2de69fc90b90ef485bf7f1..16edb20f3ea46ee61132d8416ced4e3ffd4d3e26 100644
(file)
--- a/
libiberty/choose-temp.c
+++ b/
libiberty/choose-temp.c
@@
-1,5
+1,5
@@
/* Utility to pick a temporary filename prefix.
/* Utility to pick a temporary filename prefix.
- Copyright (C) 1996
, 1997, 1998
Free Software Foundation, Inc.
+ Copyright (C) 1996
-2017
Free Software Foundation, Inc.
This file is part of the libiberty library.
Libiberty is free software; you can redistribute it and/or
This file is part of the libiberty library.
Libiberty is free software; you can redistribute it and/or
@@
-22,6
+22,10
@@
Boston, MA 02110-1301, USA. */
#endif
#include <stdio.h> /* May get P_tmpdir. */
#endif
#include <stdio.h> /* May get P_tmpdir. */
+#include <sys/types.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
@@
-30,7
+34,6
@@
Boston, MA 02110-1301, USA. */
#endif
#include "libiberty.h"
#endif
#include "libiberty.h"
-extern char *choose_tmpdir (void);
/* Name of temporary file.
mktemp requires 6 trailing X's. */
/* Name of temporary file.
mktemp requires 6 trailing X's. */
@@
-46,7
+49,7
@@
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}.
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 compat
a
bility only. Its use is
+This function is provided for backwards compat
i
bility only. Its use is
not recommended.
@end deftypefn
not recommended.
@end deftypefn
This page took
0.023177 seconds
and
4
git commands to generate.