#include <stdio.h>
Go to the source code of this file.
Function Documentation
The explain_filename_from_stream function may be used to obtain the filename associated with the given I/O stream.
- Parameters:
-
fildes | The file descriptor from which to obtain the filename. |
data | the filename will be returned in this buffer, NUL terminated. |
data_size | The available size of the return buffer, in bytes. If too small, the result will be silently truncated. |
- Returns:
- 0 on success, -1 on error (does NOT set errno)
The explain_filename_from_stream function may be used to obtain the filename associated with the given I/O stream.
- Parameters:
-
stream | The file stream from which to obtain the filename. |
data | the filename will be returned in this buffer, NUL terminated. |
data_size | The available size of the return buffer, in bytes. If too small, the result will be silently truncated. |
- Returns:
- 0 on success, -1 on error (does NOT set errno)