2 * Header file for common error description library.
4 * Copyright 1988, Student Information Processing Board of the
5 * Massachusetts Institute of Technology.
7 * Copyright 1995 by Cygnus Support.
9 * For copyright and distribution info, see the documentation supplied
21 #define KRB5_CALLCONV_C
26 typedef long errcode_t;
27 typedef void (*et_old_error_hook_func) (const char *, errcode_t,
28 const char *, va_list ap);
31 /*@shared@*/ char const * const * msgs;
40 /* Public interfaces */
41 extern void KRB5_CALLCONV_C com_err
42 (const char *, errcode_t, const char *, ...);
43 extern void KRB5_CALLCONV com_err_va
44 (const char *whoami, errcode_t code, const char *fmt,
46 extern /*@observer@*//*@dependent@*/ const char * KRB5_CALLCONV error_message
48 /*@modifies internalState@*/;
49 extern errcode_t KRB5_CALLCONV add_error_table
50 (/*@dependent@*/ const struct error_table *)
51 /*@modifies internalState@*/;
52 extern errcode_t KRB5_CALLCONV remove_error_table
53 (const struct error_table *)
54 /*@modifies internalState@*/;
58 * The display routine should be application specific. A global hook,
59 * may cause inappropriate display procedures to be called between
60 * applications under non-Unix environments.
63 extern et_old_error_hook_func set_com_err_hook (et_old_error_hook_func);
64 extern et_old_error_hook_func reset_com_err_hook (void);
72 #endif /* ! defined(__COM_ERR_H) */