brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 1 | #ifndef __AOS_STARTER_H_ |
2 | #define __AOS_STARTER_H_ | ||||
3 | |||||
4 | #include <map> | ||||
5 | #include <sys/types.h> | ||||
6 | #include <signal.h> | ||||
7 | #include <stdint.h> | ||||
8 | #include <string> | ||||
9 | #include <errno.h> | ||||
10 | #include <string.h> | ||||
11 | #include <sys/wait.h> | ||||
12 | #include <set> | ||||
13 | |||||
14 | using namespace std; | ||||
15 | |||||
16 | map<pid_t, const char *> children; | ||||
17 | map<pid_t, const char *> files; // the names of the actual files | ||||
18 | map<int, pid_t> watches; | ||||
19 | set<pid_t> restarts; | ||||
20 | map<int, time_t> mtimes; | ||||
21 | |||||
22 | int sigfd = 0; | ||||
23 | int notifyfd = 0; | ||||
24 | |||||
25 | const size_t CMDLEN = 5000; | ||||
26 | |||||
27 | #endif | ||||
28 |