get rid of all the perror() calls made in the library execution paths.

* DOCBparser.c HTMLparser.c c14n.c entities.c list.c
  parser.c parserInternals.c xmlIO.c: get rid of all the
  perror() calls made in the library execution paths. This
  should fix both #92059 and #92385
Daniel
diff --git a/c14n.c b/c14n.c
index f10066e..e80536e 100644
--- a/c14n.c
+++ b/c14n.c
@@ -1821,7 +1821,7 @@
     buffer = (xmlChar *)						\
     		xmlRealloc(buffer, buffer_size * sizeof(xmlChar));	\
     if (buffer == NULL) {						\
-	perror("realloc failed");					\
+	xmlGenericError(xmlGenericErrorContext, "realloc failed");	\
 	return(NULL);							\
     }									\
 }
@@ -1856,7 +1856,7 @@
     buffer_size = 1000;
     buffer = (xmlChar *) xmlMalloc(buffer_size * sizeof(xmlChar));
     if (buffer == NULL) {
-        perror("malloc failed");
+        xmlGenericError(xmlGenericErrorContext, "malloc failed");
         return (NULL);
     }
     out = buffer;