blob: 0e31c812214169a7eb73ea633cb0966b6047cc47 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/procfs.h>
#include <time.h>
#include "process_iterator.h"
//See this link to port to other systems: http://www.steve.org.uk/Reference/Unix/faq_8.html#SEC85
#ifdef __linux__
#include "process_iterator_linux.c"
#elif defined __FreeBSD__
#include "process_iterator_freebsd.c"
#elif defined __APPLE__
#include "process_iterator_apple.c"
#else
#error Platform not supported
#endif
|