libexplain  1.4.D001
Functions
libexplain/buffer/enomem/rlimit_exceeded.c File Reference
#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)

Function Documentation

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.

Parameters:
sbString buffer to print into.
sizeThe memory allocation size, in bytes. Or zero is unknown.
Returns:
0 if print nothing, 1 if printed something.

Definition at line 35 of file rlimit_exceeded.c.