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 AFS_ATTRIBUTE_FORMAT(__printf__, 3, 4);
18 extern void afs_com_err_va(const char *whoami, afs_int32 code, const char *fmt,
20 AFS_ATTRIBUTE_FORMAT(__printf__, 3, 0);
22 extern const char *afs_error_table_name(afs_int32);
23 extern const char *afs_error_message(afs_int32);
25 void (*afs_set_com_err_hook
26 (void (*)(const char *, afs_int32, const char *, va_list)))
27 (const char *, afs_int32, const char *, va_list);
28 extern void (*afs_reset_com_err_hook(void)) (const char *, afs_int32,
29 const char *, va_list);
31 #define __AFS_COM_ERR_H
32 #ifdef AFS_OLD_COM_ERR
33 #define com_err afs_com_err
34 #define com_err_va afs_com_err_va
35 #define error_table_name afs_error_table_name
36 #define error_message afs_error_message
37 #define set_com_err_hook afs_set_com_err_hook
38 #define reset_com_err_hook afs_reset_com_err_hook
39 #endif /* AFS_OLD_COM_ERR */
40 #endif /* ! defined(__AFS_COM_ERR_H) */