libexplain
1.4.D001
|
#include <libexplain/ac/sys/time.h>
#include <libexplain/ac/sys/resource.h>
#include <libexplain/buffer/enomem.h>
#include <libexplain/buffer/gettext.h>
#include <libexplain/buffer/long.h>
#include <libexplain/buffer/rlimit.h>
#include <libexplain/buffer/size_t.h>
#include <libexplain/option.h>
Go to the source code of this file.
Functions | |
int | explain_buffer_enomem_rlimit_exceeded (explain_string_buffer_t *sb, size_t size) |
int explain_buffer_enomem_rlimit_exceeded | ( | explain_string_buffer_t * | sb, |
size_t | size | ||
) |
The explain_buffer_enomem_rlimit_exceeded function is used to test whether or not the given data size would exceed the process's virtual memory limit.
If it would be exceeded, a message to that effect is printed, and true (non-zero) is returned. Otherwise nothing is printed, and false (zero) is returned.
sb | String buffer to print into. |
size | The memory allocation size, in bytes. Or zero is unknown. |
Definition at line 35 of file rlimit_exceeded.c.