diff options
| author | Garrett Wollman <wollman@FreeBSD.org> | 1995-01-14 22:23:41 +0000 |
|---|---|---|
| committer | Garrett Wollman <wollman@FreeBSD.org> | 1995-01-14 22:23:41 +0000 |
| commit | af4d8ead38cac8e7026de67ff7ba3b744623c279 (patch) | |
| tree | 77542679c39d3d1f555f94fe8f357cc9d8a36be7 /lib/libcom_err/error_table.h | |
| parent | e7f8d55240ec1c16dd7d3c836c9922e4bb26b3ce (diff) | |
Notes
Diffstat (limited to 'lib/libcom_err/error_table.h')
| -rw-r--r-- | lib/libcom_err/error_table.h | 30 |
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 000000000000..78f7db200f77 --- /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 |
