(sim_core_signal): Add missing "\n" in message.
[deliverable/binutils-gdb.git] / include / libiberty.h
index bc2e67c59d3076cd94bba3cf9c7fa96a011dba6a..498a7f0ff992e6f2471d2c1d90f496ea89eef904 100644 (file)
@@ -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 ((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,13 +122,17 @@ 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
 #define _hex_bad       99
 extern char _hex_value[_hex_array_size];
 extern void hex_init PARAMS ((void));
-#define hex_p(c)       (hex_value (c) == _hex_bad)
+#define hex_p(c)       (hex_value (c) != _hex_bad)
 /* If you change this, note well: Some code relies on side effects in
    the argument being performed exactly once.  */
 #define hex_value(c)   (_hex_value[(unsigned char) (c)])
This page took 0.023961 seconds and 4 git commands to generate.