/* ISC license. */ #ifndef HPR_H #define HPR_H #include #include #include #include #include "initctl.h" #define HPR_WALL_PRE "\n\n*** WARNING ***\nThe system is going down " #define HPR_WALL_POST "!\n" #define HPR_WALL_BANNER HPR_WALL_PRE "NOW" HPR_WALL_POST #define hpr_send(s, n) openwritenclose_unsafe(INITCTL, (s), n) #define hpr_cancel() hpr_send("c", 1) extern int hpr_shutdown (unsigned int, tain const *, unsigned int) ; extern void hpr_wall (char const *) ; extern void hpr_wallv (struct iovec const *, unsigned int) ; extern void hpr_confirm_hostname (void) ; #endif