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#pragma ident "%Z%%M% %I% %E% SMI" 11 12#include <errno.h> 13 14#define ET_EBUFSIZ 64 15 16struct et_list { 17 /*@dependent@*//*@null@*/ struct et_list *next; 18 /*@dependent@*//*@null@*/ const struct error_table *table; 19}; 20 21struct dynamic_et_list { 22 /*@only@*//*@null@*/ struct dynamic_et_list *next; 23 /*@dependent@*/ const struct error_table *table; 24}; 25 26#define ERRCODE_RANGE 8 /* # of bits to shift table number */ 27#define BITS_PER_CHAR 6 /* # bits to shift per character in name */ 28#define ERRCODE_MAX 0xFFFFFFFFUL /* Mask for maximum error table */ 29 30#if 0 /* SUNW14resync */ 31extern /*@observer@*/ const char *error_table_name (unsigned long) 32 /*@modifies internalState@*/; 33extern const char *error_table_name_r (unsigned long, 34 /*@out@*/ /*@returned@*/ char *outbuf) 35 /*@modifies outbuf@*/; 36#endif 37 38#include "k5-thread.h" 39extern k5_mutex_t com_err_hook_lock; 40extern int com_err_finish_init(void); 41 42#define _ET_H 43#endif 44