aboutsummaryrefslogtreecommitdiffstats
path: root/src/firemon/firemon.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/firemon/firemon.h')
-rw-r--r--src/firemon/firemon.h84
1 files changed, 84 insertions, 0 deletions
diff --git a/src/firemon/firemon.h b/src/firemon/firemon.h
new file mode 100644
index 000000000..59b1f352c
--- /dev/null
+++ b/src/firemon/firemon.h
@@ -0,0 +1,84 @@
1/*
2 * Copyright (C) 2014, 2015 netblue30 (netblue30@yahoo.com)
3 *
4 * This file is part of firejail project
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19*/
20#ifndef FIREMON_H
21#define FIREMON_H
22#define _GNU_SOURCE
23#include <stdlib.h>
24#include <stdio.h>
25#include <ctype.h>
26#include <string.h>
27#include <errno.h>
28#include <stdint.h>
29#include "../include/pid.h"
30#include "../include/common.h"
31
32// clear screen
33static inline void firemon_clrscr(void) {
34 printf("\033[2J\033[1;1H");
35 fflush(0);
36}
37
38// firemon.c
39extern int arg_nowrap;
40int find_child(int id);
41void firemon_drop_privs(void);
42void firemon_sleep(int st);
43
44
45// procevent.c
46void procevent(pid_t pid);
47
48// usage.c
49void usage(void);
50
51// top.c
52void top(void);
53
54// list.c
55void list(void);
56
57// interface.c
58void interface(pid_t pid);
59
60// arp.c
61void arp(pid_t pid);
62
63// route.c
64void route(pid_t pid);
65
66// caps.c
67void caps(pid_t pid);
68
69// seccomp.c
70void seccomp(pid_t pid);
71
72// cpu.c
73void cpu(pid_t pid);
74
75// cgroup.c
76void cgroup(pid_t pid);
77
78// tree.c
79void tree(pid_t pid);
80
81// netstats.c
82void netstats(void);
83
84#endif