blob: 2c545a5fbd9a5b30de472e2a7a0ab12366f66261 (
plain)
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
|
/* ISC license. */
#ifndef HPR_H
#define HPR_H
#include <stddef.h>
#include <sys/uio.h>
#include <skalibs/tai.h>
#include <skalibs/djbunix.h>
#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_t 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
|