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/parser.c b/parser.c
index a68b3b9..0374f68 100644
--- a/parser.c
+++ b/parser.c
@@ -931,7 +931,7 @@
     buffer = (xmlChar *)						\
     		xmlRealloc(buffer, buffer##_size * sizeof(xmlChar));	\
     if (buffer == NULL) {						\
-	perror("realloc failed");					\
+	xmlGenericError(xmlGenericErrorContext,	"realloc failed");	\
 	return(NULL);							\
     }									\
 }
@@ -984,7 +984,8 @@
     buffer_size = XML_PARSER_BIG_BUFFER_SIZE;
     buffer = (xmlChar *) xmlMalloc(buffer_size * sizeof(xmlChar));
     if (buffer == NULL) {
-	perror("xmlStringDecodeEntities: malloc failed");
+	xmlGenericError(xmlGenericErrorContext,
+		        "xmlStringDecodeEntities: malloc failed");
 	return(NULL);
     }
 
@@ -2341,7 +2342,8 @@
     buf_size = XML_PARSER_BUFFER_SIZE;
     buf = (xmlChar *) xmlMalloc(buf_size * sizeof(xmlChar));
     if (buf == NULL) {
-	perror("xmlParseAttValue: malloc failed");
+	xmlGenericError(xmlGenericErrorContext,
+		        "xmlParseAttValue: malloc failed");
 	return(NULL);
     }
 
@@ -10191,7 +10193,8 @@
 
     input = xmlNewInputStream(ctxt);
     if (input == NULL) {
-        perror("malloc");
+        xmlGenericError(xmlGenericErrorContext,
+		        "malloc");
         xmlFree(ctxt);
         return;
     }