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
15 #if defined(_MSDOS) || defined(_WIN32) || defined(macintosh)
16 #include <Kerberos5/win-mac.h>
17 #if defined(macintosh) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
24 #define KRB5_CALLCONV_C
27 #define KRB5_EXPORTVAR
35 #if defined(__STDC__) || defined(__cplusplus) || defined(_MSDOS) || defined(_WIN32) || defined(macintosh)
37 /* End-user programs may need this -- oh well */
39 #define HAVE_STDARG_H 1
50 #define ET_STDARG_P(x) x
53 #define ET_STDARG_P(x) ()
57 typedef long errcode_t;
58 typedef void (*et_old_error_hook_func) ET_P((const char FAR *, errcode_t,
59 const char FAR *, va_list ap));
62 char const FAR * const FAR * msgs;
71 KRB5_DLLIMP extern void KRB5_CALLCONV_C com_err
72 ET_STDARG_P((const char FAR *, errcode_t, const char FAR *, ...));
73 KRB5_DLLIMP extern void KRB5_CALLCONV com_err_va
74 ET_P((const char FAR *whoami, errcode_t code, const char FAR *fmt,
76 KRB5_DLLIMP extern const char FAR * KRB5_CALLCONV error_message
78 KRB5_DLLIMP extern errcode_t KRB5_CALLCONV add_error_table
79 ET_P((const struct error_table FAR *));
80 KRB5_DLLIMP extern errcode_t KRB5_CALLCONV remove_error_table
81 ET_P((const struct error_table FAR *));
83 #if !defined(_MSDOS) && !defined(_WIN32) && !defined(macintosh) && !defined(__MACH__)
85 * The display routine should be application specific. A global hook,
86 * may cause inappropriate display procedures to be called between
87 * applications under non-Unix environments.
90 extern et_old_error_hook_func set_com_err_hook
91 ET_P((et_old_error_hook_func));
92 extern et_old_error_hook_func reset_com_err_hook
100 #if defined(macintosh) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
105 #endif /* ! defined(__COM_ERR_H) */