-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathcommon.h
More file actions
32 lines (27 loc) · 758 Bytes
/
common.h
File metadata and controls
32 lines (27 loc) · 758 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
32
#include <dirs.h>
#define BOOTDIR HERE "/etc/boot"
#define INITDIR HERE "/etc/init"
#define CONTROL RUN_CTRL "/svhub"
#define SV(c) TAGGED('S', 'V', c)
#define CMD_LIST SV(1)
#define CMD_RELOAD SV(2)
#define CMD_REBOOT SV(3)
#define CMD_SHUTDOWN SV(4)
#define CMD_POWEROFF SV(5)
#define CMD_FLUSHALL SV(6)
#define CMD_STATUS SV(7)
#define CMD_GETPID SV(8)
#define CMD_START SV(9)
#define CMD_STOP SV(10)
#define CMD_PAUSE SV(11)
#define CMD_RESUME SV(12)
#define CMD_HUP SV(13)
#define CMD_FLUSH SV(14)
#define CMD_SHOW SV(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