Blame view

check_memfree/check_memfree.h 511 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef CHECK_MEMFREE_H
#define CHECK_MEMFREE_H

#include <iostream>
#include <sstream>
#include <fstream>
#include <limits>

#include <ctype.h>
#include <cstdlib>
#include <unistd.h>
#include <cstring>

#include <sys/time.h>

#include "range.h"
Imanol-Mikel Barba Sabariego authored
17
#include "auxiliar.h"
Imanol-Mikel Barba Sabariego authored
18
Imanol-Mikel Barba Sabariego authored
19
#define MEMINFO_FILE "/proc/meminfo"
Imanol-Mikel Barba Sabariego authored
20
21
#define VERSION "1.0"
Imanol-Mikel Barba Sabariego authored
22
23
24
25
26
27
struct meminfo {
	ssize_t totalMem;
	ssize_t freeMem;
};
typedef struct meminfo MEMINFO;
Imanol-Mikel Barba Sabariego authored
28
29
30
31
32
int getNum(ifstream *file);
void printVersion();
void printHelp(bool longVersion);

#endif
Imanol-Mikel Barba Sabariego authored
33