libexplain  1.4.D001
Functions
libexplain/buffer/eloop.h File Reference
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

void explain_buffer_eloop (explain_string_buffer_t *sb, const char *pathname, const char *pathname_caption, const struct explain_final_t *pathname_final_component)
void explain_buffer_eloop2 (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_eloop ( explain_string_buffer_t sb,
const char *  pathname,
const char *  pathname_caption,
const struct explain_final_t pathname_final_component 
)

The explain_buffer_eloop function may be used to provide a common explanation for ELOOP for all system calls.

Parameters:
sbThe string buffer to print into.
pathnameThe pathname being checked.
pathname_captionThe argument name of the pathname being checked.
pathname_final_componentThe desired properties of the last component of pathname
void explain_buffer_eloop2 ( 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_eloop2 function may be used to provide a common explanation for ELOOP for all system calls that take two path names.

Parameters:
sbThe string buffer to print into.
oldpathThe first pathname being checked.
oldpath_captionThe argument name of the first pathname being checked.
oldpath_final_componentThe desired properties of the last component of oldpath
newpathThe second pathname being checked.
newpath_captionThe argument name of the second pathname being checked.
newpath_final_componentThe desired properties of the last component of newpath