libexplain  1.4.D001
Functions
libexplain/buffer/ebadf.c File Reference
#include <libexplain/ac/fcntl.h>
#include <libexplain/buffer/check_fildes_range.h>
#include <libexplain/buffer/ebadf.h>
#include <libexplain/buffer/einval.h>
#include <libexplain/buffer/software_error.h>
#include <libexplain/gettext.h>

Go to the source code of this file.

Functions

void explain_buffer_ebadf (explain_string_buffer_t *sb, int fildes, const char *caption)
void explain_buffer_ebadf_stream (explain_string_buffer_t *sb, const char *caption)
void explain_buffer_ebadf_dir (explain_string_buffer_t *sb, const char *caption)

Function Documentation

void explain_buffer_ebadf ( explain_string_buffer_t sb,
int  fildes,
const char *  caption 
)

The explain_buffer_ebadf function may be used to print a generic EBADF explanation into the string buffer.

Parameters:
sbThe string buffer to print into
fildesThe value of the manky file descriptor
captionthe argument name to whinge about

Definition at line 30 of file ebadf.c.

void explain_buffer_ebadf_dir ( explain_string_buffer_t sb,
const char *  caption 
)

The explain_buffer_ebadf_dir function may be used to print a generic EBADF or EINVAL explanation into the string buffer, where a DIR* argument does not refer to a valid directory stream.

Parameters:
sbThe string buffer to print into
captionthe argument name to whinge about

Definition at line 85 of file ebadf.c.

void explain_buffer_ebadf_stream ( explain_string_buffer_t sb,
const char *  caption 
)

The explain_buffer_ebadf_stream function may be used to print a generic EBADF explanation into the string buffer.

Parameters:
sbThe string buffer to print into
captionthe argument name to whinge about

Definition at line 61 of file ebadf.c.