summaryrefslogtreecommitdiffstats
path: root/lib/libcom_err/error_table.h
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-01-14 22:23:41 +0000
committerwollman <wollman@FreeBSD.org>1995-01-14 22:23:41 +0000
commit0916b5648b6e21b684e10cfba42b81769ea51035 (patch)
tree293623fcd45343b02313101f81356ff8761dec64 /lib/libcom_err/error_table.h
downloadFreeBSD-src-0916b5648b6e21b684e10cfba42b81769ea51035.zip
FreeBSD-src-0916b5648b6e21b684e10cfba42b81769ea51035.tar.gz
The Common Error Description Library, developed by MIT SIPB and used by
a number of (ex-)Athena programs. Breaking my own rules for importing somewhat, as this code does not appear to be actively maintained by anyone (not that it really needs it).
Diffstat (limited to 'lib/libcom_err/error_table.h')
-rw-r--r--lib/libcom_err/error_table.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/libcom_err/error_table.h b/lib/libcom_err/error_table.h
new file mode 100644
index 0000000..78f7db2
--- /dev/null
+++ b/lib/libcom_err/error_table.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright 1988 by the Student Information Processing Board of the
+ * Massachusetts Institute of Technology.
+ *
+ * For copyright info, see mit-sipb-copyright.h.
+ */
+
+#ifndef _ET_H
+/* Are we using ANSI C? */
+#ifndef __STDC__
+#define const
+#endif
+extern int errno;
+struct error_table {
+ char const * const * msgs;
+ long base;
+ int n_msgs;
+};
+struct et_list {
+ struct et_list *next;
+ const struct error_table *table;
+};
+extern struct et_list * _et_list;
+
+#define ERRCODE_RANGE 8 /* # of bits to shift table number */
+#define BITS_PER_CHAR 6 /* # bits to shift per character in name */
+
+extern const char *error_table_name();
+#define _ET_H
+#endif
OpenPOWER on IntegriCloud