|
libexplain
1.4.D001
|
Go to the source code of this file.
Functions | |
| void | explain_buffer_ebadf_not_open_for_writing (explain_string_buffer_t *sb, const char *caption, int flags) |
| void explain_buffer_ebadf_not_open_for_writing | ( | explain_string_buffer_t * | sb, |
| const char * | caption, | ||
| int | flags | ||
| ) |
The explain_buffer_ebafd_not_open_for_writing function is used to print an EBADF or EINVAL explanation into the string buffer, in the case where a file descriptor (or I/O stream) needs to be open for reading, but it is not.
| sb | The string buffer to print into |
| caption | The name of the offending argument. |
| flags | The file's open flags, as returned by fcntl(fildes, F_GETFL); or -1 when unknown. |
Definition at line 24 of file not_open_for_writing.c.
1.7.6.1