libexplain  1.4.D001
Functions
libexplain/buffer/wrong_file_type.h File Reference
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

void explain_buffer_wrong_file_type (explain_string_buffer_t *sb, int fildes, const char *caption, int required_file_type)
void explain_buffer_wrong_file_type_st (explain_string_buffer_t *sb, const struct stat *st, const char *caption, int required_file_type)

Function Documentation

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

The explain_buffer_wrong_file_type function may be used to explain that a file descriptor system call argument refers to a file of the wrong file type.

Parameters:
sbThe string buffer to print into.
fildesThe file descriptor that has the wrong file type.
captionThe name of the system call argument that contains the file descriptor that has the wrong file type.
required_file_typeThe required file type, that the file descriptor does not match.

Definition at line 87 of file wrong_file_type.c.

void explain_buffer_wrong_file_type_st ( explain_string_buffer_t sb,
const struct stat *  st,
const char *  caption,
int  required_file_type 
)

The explain_buffer_wrong_file_type function may be used to explain that a file descriptor system call argument refers to a file of the wrong file type.

Parameters:
sbThe string buffer to print into.
stThe file status describing the wrong file type.
captionThe name of the system call argument that contains the file descriptor that has the wrong file type.
required_file_typeThe required file type, that the file descriptor does not match.

Definition at line 27 of file wrong_file_type.c.