aboutsummaryrefslogtreecommitdiff
path: root/include/libiberty.h
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-10-01 03:01:33 +0000
committerFred Fish <fnf@specifix.com>1996-10-01 03:01:33 +0000
commit77f7bfd835cfe6517f35eb7801bf750ca67d0137 (patch)
treef309fb8e9f5e096a83429fbc4db998ef907e3c71 /include/libiberty.h
parent875c8d5cc836c32620229f32efcb7a02318e6585 (diff)
downloadfsf-binutils-gdb-77f7bfd835cfe6517f35eb7801bf750ca67d0137.zip
fsf-binutils-gdb-77f7bfd835cfe6517f35eb7801bf750ca67d0137.tar.gz
fsf-binutils-gdb-77f7bfd835cfe6517f35eb7801bf750ca67d0137.tar.bz2
* libiberty.h: Remove #ifndef PRIVATE_XMALLOC.
Diffstat (limited to 'include/libiberty.h')
-rw-r--r--include/libiberty.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/include/libiberty.h b/include/libiberty.h
index 7e4fdaa..498a7f0 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -21,9 +21,12 @@ extern char **buildargv PARAMS ((char *));
extern void freeargv PARAMS ((char **));
-/* Return the last component of a path name. */
+/* Return the last component of a path name. Note that we can't use a
+ prototype here because the parameter is declared inconsistently
+ across different systems, sometimes as "char *" and sometimes as
+ "const char *" */
-extern char *basename PARAMS ((const char *));
+extern char *basename ();
/* Concatenate an arbitrary number of strings, up to (char *) NULL.
Allocates memory using xmalloc. */
@@ -38,6 +41,10 @@ extern int fdmatch PARAMS ((int fd1, int fd2));
extern long get_run_time PARAMS ((void));
+/* Choose a temporary directory to use for scratch files. */
+
+extern char *choose_temp_base PARAMS ((void));
+
/* Allocate memory filled with spaces. Allocates using malloc. */
extern const char *spaces PARAMS ((int count));
@@ -56,6 +63,10 @@ extern const char *strerrno PARAMS ((int));
extern int strtoerrno PARAMS ((const char *));
+/* ANSI's strerror(), but more robust. */
+
+extern char *xstrerror PARAMS ((int));
+
/* Return the maximum signal number for which strsignal will return a
string. */
@@ -111,6 +122,10 @@ extern PTR xmalloc ();
extern PTR xrealloc ();
+/* Copy a string into a memory buffer without fail. */
+
+extern char *xstrdup PARAMS ((const char *));
+
/* hex character manipulation routines */
#define _hex_array_size 256