1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 /* 3 * Copyright 1988 by the Student Information Processing Board of the 4 * Massachusetts Institute of Technology. 5 * 6 * For copyright info, see mit-sipb-copyright.h. 7 */ 8 9 #ifndef _ET_H 10 11 #include <errno.h> 12 13 #define ET_EBUFSIZ 1024 14 15 struct et_list { 16 struct et_list *next; 17 const struct error_table *table; 18 }; 19 20 #define ERRCODE_RANGE 8 /* # of bits to shift table number */ 21 #define BITS_PER_CHAR 6 /* # bits to shift per character in name */ 22 #define ERRCODE_MAX 0xFFFFFFFFUL /* Mask for maximum error table */ 23 24 const char *error_table_name(unsigned long); 25 const char *error_table_name_r(unsigned long, char *outbuf); 26 27 #include "k5-thread.h" 28 extern k5_mutex_t com_err_hook_lock; 29 int com_err_finish_init(void); 30 31 #define _ET_H 32 #endif 33