Go to the source code of this file.
Function Documentation
The explain_buffer_ebadf function may be used to print a generic EBADF explanation into the string buffer.
- Parameters:
-
sb | The string buffer to print into |
fildes | The value of the manky file descriptor |
caption | the argument name to whinge about |
Definition at line 30 of file ebadf.c.
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:
-
sb | The string buffer to print into |
caption | the argument name to whinge about |
Definition at line 85 of file ebadf.c.
The explain_buffer_ebafd_not_open_for_reading 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.
- Parameters:
-
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_reading.c.
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.
- Parameters:
-
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.
The explain_buffer_ebadf_stream function may be used to print a generic EBADF explanation into the string buffer.
- Parameters:
-
sb | The string buffer to print into |
caption | the argument name to whinge about |
Definition at line 61 of file ebadf.c.