summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorGravatar Craig Fields <cfields@mit.edu>1994-06-22 18:48:45 +0000
committerGravatar Craig Fields <cfields@mit.edu>1994-06-22 18:48:45 +0000
commit23b7c19dddf12dd23a07728e02912c3e3b27846e (patch)
tree466cbf094cfc3545ceec42d114772ad1ea93e818 /util
parentcd2db71ea0d4f611b473bf1999eec73c45a46fbe (diff)
Initial revision
Diffstat (limited to 'util')
-rw-r--r--util/et/com_err.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/util/et/com_err.h b/util/et/com_err.h
new file mode 100644
index 0000000..0190a3e
--- /dev/null
+++ b/util/et/com_err.h
@@ -0,0 +1,44 @@
+/*
+ * Header file for common error description library.
+ *
+ * Copyright 1988, Student Information Processing Board of the
+ * Massachusetts Institute of Technology.
+ *
+ * For copyright and distribution info, see the documentation supplied
+ * with this package.
+ */
+
+#ifndef __COM_ERR_H
+
+#ifndef STDARG_PROTOTYPES
+/* Imake needs this -- oh well */
+#ifdef __STDC__
+#define STDARG_PROTOTYPES
+#endif
+#endif
+
+#ifdef STDARG_PROTOTYPES
+#include <stdarg.h>
+#else
+#include <varargs.h>
+#endif
+
+#ifdef __STDC__
+/* ANSI C -- use prototypes etc */
+void com_err (const char *, long, const char *, ...);
+char const *error_message (long);
+void (*com_err_hook) (const char *, long, const char *, va_list);
+void (*set_com_err_hook (void (*) (const char *, long, const char *, va_list)))
+ (const char *, long, const char *, va_list);
+void (*reset_com_err_hook ()) (const char *, long, const char *, va_list);
+#else
+/* no prototypes */
+void com_err ();
+char *error_message ();
+void (*com_err_hook) ();
+void (*set_com_err_hook ()) ();
+void (*reset_com_err_hook ()) ();
+#endif
+
+#define __COM_ERR_H
+#endif /* ! defined(__COM_ERR_H) */