15 extern void panic_handler_add(void (*on_panic
)(void *arg
), void *arg
);
16 extern void call_panic_handlers(void);
18 static inline void panic(const char *format
, ...) __check_format_printf(1, 2);
19 static inline void syslog_panic(const char *format
,
20 ...) __check_format_printf(1, 2);
21 static inline void syslog_maybe(bool cond
, int priority
,
22 const char *format
, ...) __check_format_printf(3, 4);
24 static inline void __noreturn
__die_hard(void)
26 call_panic_handlers();
30 static inline void __noreturn
__die_harder(void)
32 call_panic_handlers();
36 static inline void __noreturn
die(void)
41 static inline void __noreturn
_die(void)
46 static inline void __noreturn
panic(const char *format
, ...)
51 vfprintf(stderr
, format
, vl
);
57 static inline void __noreturn
syslog_panic(const char *format
, ...)
62 vsyslog(LOG_ERR
, format
, vl
);
68 static inline void syslog_maybe(bool cond
, int priority
,
69 const char *format
, ...)
75 vsyslog(priority
, format
, vl
);