netsniff-ng: fix --bind-cpu option in example command line
[netsniff-ng-new.git] / proc.h
blobb3dfca9e3c7e8c071b51d37f6170a34d99a75a1a
1 #ifndef PROC_H
2 #define PROC_H
4 #include <stdbool.h>
5 #include <sys/stat.h>
6 #include <sys/types.h>
7 #include <unistd.h>
9 extern void cpu_affinity(int cpu);
10 extern int set_proc_prio(int prio);
11 extern int set_sched_status(int policy, int priority);
12 extern ssize_t proc_get_cmdline(unsigned int pid, char *cmdline, size_t len);
13 extern int proc_exec(const char *proc, char *const argv[]);
14 extern int proc_find_by_inode(ino_t ino, char *cmdline, size_t len, pid_t *pid);
15 extern bool proc_exists(pid_t pid);
17 #endif /* PROC_H */