libexplain  1.4.D001
Functions
libexplain/buffer/enoent.h File Reference
#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)

Function Documentation

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.

Parameters:
sbThe string buffer to print the explanation into
pathnameThe offending path
pathname_captionThe name of the system call argument of the offending path
pathname_final_componentthe 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.

Parameters:
sbThe string buffer to print the explanation into
oldpathThe offending path
oldpath_captionThe name of the system call argument of the offending path
oldpath_final_componentthe attributes required of the final path component
newpathThe offending path
newpath_captionThe name of the system call argument of the offenting path
newpath_final_componentthe attributes required of the final path component