-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathcommon.h
More file actions
31 lines (27 loc) · 753 Bytes
/
common.h
File metadata and controls
31 lines (27 loc) · 753 Bytes
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
#include <dirs.h>
#define CONFDIR HERE "/etc/super"
#define CONTROL RUN_CTRL "/super"
#define SS(c) TAGGED('S', 'S', c)
#define CMD_RESET SS(0)
#define CMD_LIST SS(1)
#define CMD_STATUS SS(2)
#define CMD_GETPID SS(3)
#define CMD_FLUSH SS(4)
#define CMD_QUERY SS(5)
#define CMD_ENABLE SS(6)
#define CMD_DISABLE SS(7)
#define CMD_RESTART SS(8)
#define CMD_PAUSE SS(9)
#define CMD_RESUME SS(10)
#define CMD_HUP SS(11)
#define CMD_RELOAD SS(12)
#define CMD_REBOOT SS(13)
#define CMD_SHUTDOWN SS(14)
#define CMD_POWEROFF SS(15)
#define ATTR_PROC 1
#define ATTR_NAME 2
#define ATTR_CODE 3
#define ATTR_PID 4
#define ATTR_RING 5
#define ATTR_EXIT 6
#define ATTR_TIME 7