2 * Header file for common error description library.
4 * Copyright 1988, Student Information Processing Board of the
5 * Massachusetts Institute of Technology.
7 * For copyright and distribution info, see the documentation supplied
11 #ifndef __AFS_COM_ERR_H
15 extern void afs_com_err(const char *, afs_int32, const char *, ...);
16 extern void afs_com_err_va(const char *whoami, afs_int32 code, const char *fmt,
18 extern const char *afs_error_table_name(afs_int32);
19 extern const char *afs_error_message(afs_int32);
21 void (*afs_set_com_err_hook
22 (void (*)(const char *, afs_int32, const char *, va_list)))
23 (const char *, afs_int32, const char *, va_list);
24 extern void (*afs_reset_com_err_hook(void)) (const char *, afs_int32,
25 const char *, va_list);
27 #define __AFS_COM_ERR_H
28 #ifdef AFS_OLD_COM_ERR
29 #define com_err afs_com_err
30 #define com_err_va afs_com_err_va
31 #define error_table_name afs_error_table_name
32 #define error_message afs_error_message
33 #define set_com_err_hook afs_set_com_err_hook
34 #define reset_com_err_hook afs_reset_com_err_hook
35 #endif /* AFS_OLD_COM_ERR */
36 #endif /* ! defined(__AFS_COM_ERR_H) */