+
+ msg_emit (&m);
+}
+
+/* Writes error message in CLASS, with text FORMAT, formatted with
+ printf, to the standard places. */
+void
+msg (enum msg_class class, const char *format, ...)
+{
+ va_list args;
+ va_start (args, format);
+ vmsg (class, format, args);
+ va_end (args);
+}
+
+
+
+void
+msg_error (int errnum, const char *format, ...)
+{
+ va_list args;
+ char *e;
+ struct msg m;
+
+ m.category = MSG_C_GENERAL;
+ m.severity = MSG_S_ERROR;
+
+ va_start (args, format);
+ e = xvasprintf (format, args);