Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 1988 by the Student Information Processing Board of the |
| 3 | * Massachusetts Institute of Technology. |
| 4 | * |
Theodore Ts'o | 06cefee | 1999-10-23 01:16:22 +0000 | [diff] [blame] | 5 | * Permission to use, copy, modify, and distribute this software and |
| 6 | * its documentation for any purpose is hereby granted, provided that |
| 7 | * the names of M.I.T. and the M.I.T. S.I.P.B. not be used in |
| 8 | * advertising or publicity pertaining to distribution of the software |
| 9 | * without specific, written prior permission. M.I.T. and the |
| 10 | * M.I.T. S.I.P.B. make no representations about the suitability of |
| 11 | * this software for any purpose. It is provided "as is" without |
| 12 | * express or implied warranty. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 13 | */ |
| 14 | |
| 15 | #ifndef _ET_H |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 16 | |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 17 | struct et_list { |
| 18 | struct et_list *next; |
| 19 | const struct error_table *table; |
| 20 | }; |
| 21 | extern struct et_list * _et_list; |
| 22 | |
| 23 | #define ERRCODE_RANGE 8 /* # of bits to shift table number */ |
| 24 | #define BITS_PER_CHAR 6 /* # bits to shift per character in name */ |
| 25 | |
Theodore Ts'o | a47b66e | 1997-08-10 23:02:21 +0000 | [diff] [blame] | 26 | extern const char *error_table_name(errcode_t num); |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 27 | |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 28 | #define _ET_H |
| 29 | #endif |