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

Go to the source code of this file.

Functions

int explain_buffer_fildes_not_open_for_writing (explain_string_buffer_t *sb, int fildes, const char *fildes_caption)

Function Documentation

int explain_buffer_fildes_not_open_for_writing ( explain_string_buffer_t sb,
int  fildes,
const char *  fildes_caption 
)

The explain_buffer_fildes_not_open_for_writing function may be used to

Parameters:
sbThe string buffer to print into.
fildesThe problematic system call argument
fildes_captionThe name of the problematic system call argument
Returns:
0 if finds problem and prints message, -1 if did not find problem and did not print message

Definition at line 27 of file fildes_not_open_for_writing.c.