summaryrefslogtreecommitdiff
path: root/proc.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-07-17 14:55:15 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-07-17 14:55:15 +0200
commitc5ff2059f619ac91c14d55412314d1c67de6a593 (patch)
tree18c324c5d2bbbe9a913ae693ff75b109d050a1e5 /proc.h
parent5d6d5f85d8ed49698eb3d790308e05a50b784c54 (diff)
flowtop, netsniff-ng: Move process name extraction to own function
flowtop and the netsniff-ng's netlink message dissector both need to get the process name for a pid from /proc/<pid>/exe, thus move that functionality to an own function. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/proc.h b/proc.h
index 0a31f36..996ce06 100644
--- a/proc.h
+++ b/proc.h
@@ -1,8 +1,11 @@
#ifndef PROC_H
#define PROC_H
+#include <stdlib.h>
+
extern void cpu_affinity(int cpu);
extern int set_proc_prio(int prio);
extern int set_sched_status(int policy, int priority);
+extern ssize_t proc_get_cmdline(unsigned int pid, char *cmdline, size_t len);
#endif /* PROC_H */