summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/procctl.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/procctl.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/procctl.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/procctl.h b/noncore/apps/opie-console/procctl.h
new file mode 100644
index 0000000..e2161f3
--- a/dev/null
+++ b/noncore/apps/opie-console/procctl.h
@@ -0,0 +1,33 @@
1#ifndef OPIE_PROC_CTL_H
2#define OPIE_PROC_CTL_H
3
4#include <sys/types.h>
5#include <unistd.h>
6#include <fcntl.h>
7#include <signal.h>
8
9#include <qmap.h>
10
11
12struct ProcContainer {
13 pid_t pid;
14 int fd;
15 int status;
16 ProcContainer* prev;
17};
18
19class ProcCtl {
20public:
21 ProcCtl();
22 ~ProcCtl();
23
24 int status(pid_t)const;
25 void add( pid_t, int fd );
26 void remove( pid_t );
27 void remove( ProcContainer );
28private:
29 static void signal_handler(int);
30 static ProcContainer* m_last;
31};
32
33#endif