libexplain
1.4.D001
|
#include <libexplain/string_buffer.h>
Go to the source code of this file.
Functions | |
void | explain_buffer_enoent (explain_string_buffer_t *sb, const char *pathname, const char *pathname_caption, const struct explain_final_t *pathname_final_component) |
void | explain_buffer_enoent2 (explain_string_buffer_t *sb, const char *oldpath, const char *oldpath_caption, const struct explain_final_t *oldpath_final_component, const char *newpath, const char *newpath_caption, const struct explain_final_t *newpath_final_component) |
void explain_buffer_enoent | ( | explain_string_buffer_t * | sb, |
const char * | pathname, | ||
const char * | pathname_caption, | ||
const struct explain_final_t * | pathname_final_component | ||
) |
The explain_buffer_enoent function may be used to print a consistent explanation of ENOENT errors across system calls.
sb | The string buffer to print the explanation into |
pathname | The offending path |
pathname_caption | The name of the system call argument of the offending path |
pathname_final_component | the attributes required of the final path component |
void explain_buffer_enoent2 | ( | explain_string_buffer_t * | sb, |
const char * | oldpath, | ||
const char * | oldpath_caption, | ||
const struct explain_final_t * | oldpath_final_component, | ||
const char * | newpath, | ||
const char * | newpath_caption, | ||
const struct explain_final_t * | newpath_final_component | ||
) |
The explain_buffer_enoent function may be used to print a consistent explanation of ENOENT errors across system calls.
sb | The string buffer to print the explanation into |
oldpath | The offending path |
oldpath_caption | The name of the system call argument of the offending path |
oldpath_final_component | the attributes required of the final path component |
newpath | The offending path |
newpath_caption | The name of the system call argument of the offenting path |
newpath_final_component | the attributes required of the final path component |