/usr/include/aal/exception.h is in libaal-dev 1.0.6-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | /* Copyright (C) 2001, 2002, 2003 by Hans Reiser, licensing governed by
libaal/COPYING.
exception.h -- exception factory functions. */
#ifndef AAL_EXCEPTION_H
#define AAL_EXCEPTION_H
#include <aal/types.h>
#ifndef ENABLE_MINIMAL
extern void aal_exception_on(void);
extern void aal_exception_off(void);
extern char *aal_exception_type_name(aal_exception_type_t type);
extern char *aal_exception_option_name(aal_exception_option_t opt);
extern char *aal_exception_message(aal_exception_t *ex);
extern aal_exception_type_t aal_exception_type(aal_exception_t *ex);
extern aal_exception_option_t aal_exception_option(aal_exception_t *ex);
extern aal_exception_handler_t aal_exception_get_handler(void);
extern void aal_exception_set_handler(aal_exception_handler_t handler);
extern aal_exception_option_t aal_exception_throw(aal_exception_type_t type,
aal_exception_option_t opt,
const char *message, ...)
__aal_check_format(printf, 3, 4);
#define aal_fatal(msg, list...) \
aal_exception_throw(EXCEPTION_TYPE_FATAL, EXCEPTION_OPT_OK, msg, ##list)
#define aal_error(msg, list...) \
aal_exception_throw(EXCEPTION_TYPE_ERROR, EXCEPTION_OPT_OK, msg, ##list)
#define aal_warn(msg, list...) \
aal_exception_throw(EXCEPTION_TYPE_WARNING, EXCEPTION_OPT_OK, msg, ##list)
#define aal_info(msg, list...) \
aal_exception_throw(EXCEPTION_TYPE_INFO, EXCEPTION_OPT_OK, msg, ##list)
#define aal_mess(msg, list...) \
aal_exception_throw(EXCEPTION_TYPE_MESSAGE, EXCEPTION_OPT_OK, msg, ##list)
#define aal_yesno(msg, list...) \
aal_exception_throw(EXCEPTION_TYPE_MESSAGE, EXCEPTION_OPT_YESNO, msg, ##list)
#define aal_okcancel(msg, list...) \
aal_exception_throw(EXCEPTION_TYPE_MESSAGE, EXCEPTION_OPT_OKCANCEL, msg, ##list)
#define aal_retryignore(msg, list...) \
aal_exception_throw(EXCEPTION_TYPE_ERROR, EXCEPTION_OPT_RETRYIGNORE, msg, ##list)
#else
#define aal_warn(msg, list...)
#define aal_info(msg, list...)
#define aal_mess(msg, list...)
#define aal_fatal(msg, list...)
#define aal_error(msg, list...)
#define aal_yesno(msg, list...)
#define aal_okcancel(msg, list...)
#define aal_retryignore(msg, list...)
#endif
#endif
|