libexplain
1.4.D001
|
#include <libexplain/ac/sys/socket.h>
#include <libexplain/ac/sys/stat.h>
#include <libexplain/buffer/file_type.h>
#include <libexplain/buffer/wrong_file_type.h>
Go to the source code of this file.
Functions | |
void | explain_buffer_wrong_file_type_st (explain_string_buffer_t *sb, const struct stat *st, const char *caption, int required_file_type) |
void | explain_buffer_wrong_file_type (explain_string_buffer_t *sb, int fildes, const char *caption, int want_file_type) |
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.
sb | The string buffer to print into. |
fildes | The file descriptor that has the wrong file type. |
caption | The name of the system call argument that contains the file descriptor that has the wrong file type. |
required_file_type | The 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.
sb | The string buffer to print into. |
st | The file status describing the wrong file type. |
caption | The name of the system call argument that contains the file descriptor that has the wrong file type. |
required_file_type | The required file type, that the file descriptor does not match. |
Definition at line 27 of file wrong_file_type.c.