libexplain  1.4.D001
Functions
libexplain/buffer/eio.c File Reference
#include <libexplain/ac/assert.h>
#include <libexplain/ac/dirent.h>
#include <libexplain/ac/fcntl.h>
#include <libexplain/ac/limits.h>
#include <libexplain/ac/string.h>
#include <libexplain/ac/sys/param.h>
#include <libexplain/ac/sys/stat.h>
#include <libexplain/ac/unistd.h>
#include <libexplain/ac/sys/mtio.h>
#include <libexplain/ac/termios.h>
#include <libexplain/buffer/device_name.h>
#include <libexplain/buffer/eio.h>
#include <libexplain/buffer/file_type.h>
#include <libexplain/buffer/gettext.h>
#include <libexplain/dirname.h>

Go to the source code of this file.

Functions

static void possibly_as_a_result_of_a_preceding (explain_string_buffer_t *sb, int fildes)
static void explain_buffer_eio_generic (explain_string_buffer_t *sb, int fildes)
void explain_buffer_eio (explain_string_buffer_t *sb)
static int dev_stat (dev_t dev, struct stat *st, explain_string_buffer_t *dev_buf)
static void a_low_level_io_error_occurred (explain_string_buffer_t *sb, const char *device_path, const struct stat *st)
static void explain_buffer_eio_stat (explain_string_buffer_t *sb, int fildes, struct stat *st)
void explain_buffer_eio_fildes (explain_string_buffer_t *sb, int fildes)
void explain_buffer_eio_path (explain_string_buffer_t *sb, const char *path)
void explain_buffer_eio_path_dirname (explain_string_buffer_t *sb, const char *path)

Function Documentation

static void a_low_level_io_error_occurred ( explain_string_buffer_t sb,
const char *  device_path,
const struct stat *  st 
) [static]

Definition at line 126 of file eio.c.

static int dev_stat ( dev_t  dev,
struct stat *  st,
explain_string_buffer_t dev_buf 
) [static]

Definition at line 119 of file eio.c.

The explain_buffer_eio function may be used to print a description of an EIO error.

Parameters:
sbThe buffer to print the explanation on

Definition at line 112 of file eio.c.

void explain_buffer_eio_fildes ( explain_string_buffer_t sb,
int  fildes 
)

The explain_buffer_eio_fildes function may be used to print a description of an EIO error.

Parameters:
sbThe buffer to print the explanation on
fildesthe file descriptor with the problem.

Definition at line 199 of file eio.c.

static void explain_buffer_eio_generic ( explain_string_buffer_t sb,
int  fildes 
) [static]

Definition at line 94 of file eio.c.

void explain_buffer_eio_path ( explain_string_buffer_t sb,
const char *  path 
)

The explain_buffer_eio_path function may be used to print a description of an EIO error.

Parameters:
sbThe buffer to print the explanation on
paththe file with the problem.

Definition at line 211 of file eio.c.

void explain_buffer_eio_path_dirname ( explain_string_buffer_t sb,
const char *  path 
)

The explain_buffer_eio_path_dirname function may be used to print a description of an EIO error.

Parameters:
sbThe buffer to print the explanation on
paththe file in the directory with the problem.

Definition at line 223 of file eio.c.

static void explain_buffer_eio_stat ( explain_string_buffer_t sb,
int  fildes,
struct stat *  st 
) [static]

Definition at line 158 of file eio.c.

static void possibly_as_a_result_of_a_preceding ( explain_string_buffer_t sb,
int  fildes 
) [static]

Definition at line 43 of file eio.c.