liboom 1.0.1
Debugging helper library with Memory leak detection
oomfill.h
Go to the documentation of this file.
1
49#ifndef __OOMFILL_H__
50#define __OOMFILL_H__
51
52#ifdef HAVE_CONFIG_H
53#include "config.h"
54#endif
55
56#include <stddef.h> /* size_t */
57
58typedef enum { false = (0==1), true = (1==1) } bool;
59
60size_t oomfill_config(const size_t hardlimit);
61extern size_t (*oomfill_enable)(const size_t softlimit);
62extern size_t (*oomfill_disable)();
63extern size_t (*oomfill_fill)(const size_t minHeap, const size_t minStack);
64extern void (*oomfill_free)();
65extern bool oomfill_enabled();
66
67#endif /*__OOMFILL_H__ */
68
69/* vim: set tw=80: */
size_t(* oomfill_disable)()
Stops the current oomfill.
Definition: oomfill.c:210
size_t(* oomfill_enable)(const size_t softlimit)
Starts a new oomfill environment or reconfigure the soft limit.
Definition: oomfill.c:171
size_t(* oomfill_fill)(const size_t minHeap, const size_t minStack)
Starts an almost OOM single and simple test.
Definition: oomfill.c:96
void(* oomfill_free)()
Ends a single simple OOM test.
Definition: oomfill.c:125
size_t oomfill_config(const size_t hardlimit)
Sets the oomfill helpers hard rlimit and enables the oomfill helper features.
Definition: oomfill.c:457
bool oomfill_enabled()
Definition: oomfill.c:511
bool
Definition: oomfill.h:58