libexplain  1.4.D001
Functions
libexplain/buffer/errno/generic.c File Reference
#include <libexplain/ac/ctype.h>
#include <libexplain/ac/errno.h>
#include <libexplain/ac/stdio.h>
#include <libexplain/ac/string.h>
#include <libexplain/buffer/eintr.h>
#include <libexplain/buffer/emfile.h>
#include <libexplain/buffer/enfile.h>
#include <libexplain/buffer/enobufs.h>
#include <libexplain/buffer/enomedium.h>
#include <libexplain/buffer/enomem.h>
#include <libexplain/buffer/enosys.h>
#include <libexplain/buffer/eoverflow.h>
#include <libexplain/buffer/erange.h>
#include <libexplain/buffer/errno/generic.h>
#include <libexplain/buffer/ewouldblock.h>
#include <libexplain/buffer/gettext.h>
#include <libexplain/option.h>

Go to the source code of this file.

Functions

static void downcase (char *dst, size_t dst_size, const char *src)
static int is_alpha (int c)
void explain_buffer_errno_generic (explain_string_buffer_t *sb, int errnum, const char *syscall_name)

Function Documentation

static void downcase ( char *  dst,
size_t  dst_size,
const char *  src 
) [static]

Definition at line 41 of file generic.c.

void explain_buffer_errno_generic ( explain_string_buffer_t sb,
int  errnum,
const char *  syscall_name 
)

The explain_buffer_errno_generic function is used to explain errors for which a completely generic explanation is possible, and which is more informative than strerror alone.

Parameters:
sbThe string bufferto print into.
errnumThe errno value to explain
syscall_nameThe name of the problematic system call, for improving error messages.

Definition at line 67 of file generic.c.

static int is_alpha ( int  c) [static]

Definition at line 60 of file generic.c.