1 /* 2 * Copyright 1988 by the Student Information Processing Board of the 3 * Massachusetts Institute of Technology. 4 * 5 * For copyright info, see mit-sipb-copyright.h. 6 */ 7 8 #ifndef _ET_H 9 10 #include <errno.h> 11 12 #define ET_EBUFSIZ 64 13 14 struct et_list { 15 /*@dependent@*//*@null@*/ struct et_list *next; 16 /*@dependent@*//*@null@*/ const struct error_table *table; 17 }; 18 19 struct dynamic_et_list { 20 /*@only@*//*@null@*/ struct dynamic_et_list *next; 21 /*@dependent@*/ const struct error_table *table; 22 }; 23 24 #define ERRCODE_RANGE 8 /* # of bits to shift table number */ 25 #define BITS_PER_CHAR 6 /* # bits to shift per character in name */ 26 #define ERRCODE_MAX 0xFFFFFFFFUL /* Mask for maximum error table */ 27 28 #if 0 /* SUNW14resync */ 29 extern /*@observer@*/ const char *error_table_name (unsigned long) 30 /*@modifies internalState@*/; 31 extern const char *error_table_name_r (unsigned long, 32 /*@out@*/ /*@returned@*/ char *outbuf) 33 /*@modifies outbuf@*/; 34 #endif 35 36 #include "k5-thread.h" 37 extern k5_mutex_t com_err_hook_lock; 38 extern int com_err_finish_init(void); 39 40 #define _ET_H 41 #endif 42