libexplain  1.4.D001
Functions
libexplain/buffer/einval.c File Reference
#include <libexplain/buffer/einval.h>

Go to the source code of this file.

Functions

void explain_buffer_einval_bits (explain_string_buffer_t *sb, const char *caption)
void explain_buffer_einval_too_small (explain_string_buffer_t *sb, const char *caption, long value)
void explain_buffer_einval_vague (explain_string_buffer_t *sb, const char *caption)
void explain_buffer_einval_value (explain_string_buffer_t *sb, const char *caption, long value)
void explain_buffer_einval_not_a_number (explain_string_buffer_t *sb, const char *caption)

Function Documentation

void explain_buffer_einval_bits ( explain_string_buffer_t sb,
const char *  caption 
)

The explain_buffer_einval_bits function may be used to explain a bit-field containing undefined bits.

Parameters:
sbThe string buffer to print into.
captionThe name of the offending system call argument.

Definition at line 23 of file einval.c.

void explain_buffer_einval_not_a_number ( explain_string_buffer_t sb,
const char *  caption 
)

The explain_buffer_einval_not_a_number function may be used to explain that a system call argument is invalid, when it is supposed to be a string containing a number.

Parameters:
sbThe string buffer to print into.
captionThe name of the offending system call argument.

Definition at line 113 of file einval.c.

void explain_buffer_einval_too_small ( explain_string_buffer_t sb,
const char *  caption,
long  data 
)

The explain_buffer_einval_too_small function may be used to explain that a system call argument is too small (out of range).

Parameters:
sbThe string buffer to print into.
captionThe name of the offending system call argument.
dataThe value of the offending system call argument.

Definition at line 44 of file einval.c.

void explain_buffer_einval_vague ( explain_string_buffer_t sb,
const char *  caption 
)

The explain_buffer_einval_vague function may be used to explain that a system call argument is invalid, but not why (use this one sparingly).

Parameters:
sbThe string buffer to print into.
captionThe name of the offending system call argument.

Definition at line 85 of file einval.c.

void explain_buffer_einval_value ( explain_string_buffer_t sb,
const char *  caption,
long  value 
)

The explain_buffer_einval_value function may be used to explain that a system call argument is invalid, but not why.

Parameters:
sbThe string buffer to print into.
captionThe name of the offending system call argument.
valueThe value of the offending system call argument.

Definition at line 104 of file einval.c.