]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - include/libiberty.h
import gdb-1999-08-16 snapshot
[thirdparty/binutils-gdb.git] / include / libiberty.h
index 6fb29d212237b9c1c61475a500acf83373ae5a02..cf313662ef42be870bdab23023d09506d6eb0ea3 100644 (file)
@@ -36,7 +36,7 @@ extern char **dupargv PARAMS ((char **));
    across different systems, sometimes as "char *" and sometimes as
    "const char *" */
 
-#if defined(__GNU_LIBRARY__ ) || defined (__linux__)
+#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__)
 extern char *basename PARAMS ((const char *));
 #else
 extern char *basename ();
@@ -135,6 +135,11 @@ extern PTR xmalloc PARAMS ((size_t));
 
 extern PTR xrealloc PARAMS ((PTR, size_t));
 
+/* Allocate memory without fail and set it to zero.  This works like
+   xmalloc.  */
+
+extern PTR xcalloc PARAMS ((size_t, size_t));
+
 /* Copy a string into a memory buffer without fail.  */
 
 extern char *xstrdup PARAMS ((const char *));