2 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
7 * Header file for common error description library.
9 * Copyright 1988, Student Information Processing Board of the
10 * Massachusetts Institute of Technology.
12 * Copyright 1995 by Cygnus Support.
14 * For copyright and distribution info, see the documentation supplied
20 #pragma ident "%Z%%M% %I% %E% SMI"
28 #define KRB5_CALLCONV_C
33 typedef long errcode_t
;
34 typedef void (*et_old_error_hook_func
) (const char *, errcode_t
,
35 const char *, va_list ap
);
38 /*@shared@*/ char const * const * msgs
;
47 /* Public interfaces */
48 extern void KRB5_CALLCONV_C com_err
49 (const char *, errcode_t
, const char *, ...);
50 extern void KRB5_CALLCONV com_err_va
51 (const char *whoami
, errcode_t code
, const char *fmt
,
53 extern /*@observer@*//*@dependent@*/ const char * KRB5_CALLCONV error_message
55 /*@modifies internalState@*/;
59 * {add_,remove_}error_table have been removed here as they don't exist
60 * in the Solaris mech.
62 * initialize_krb5_error_table is not be needed anymore but Samba still
63 * calls it so we make it a no-op.
65 #define initialize_krb5_error_table()
69 * The display routine should be application specific. A global hook,
70 * may cause inappropriate display procedures to be called between
71 * applications under non-Unix environments.
74 extern et_old_error_hook_func
set_com_err_hook (et_old_error_hook_func
);
75 extern et_old_error_hook_func
reset_com_err_hook (void);
83 #endif /* ! defined(__COM_ERR_H) */