libexplain  1.4.D001
Functions
libexplain/buffer/errno/path_resolution_at.c File Reference
#include <libexplain/ac/fcntl.h>
#include <libexplain/ac/limits.h>
#include <libexplain/ac/sys/param.h>
#include <libexplain/buffer/errno/path_resolution.h>
#include <libexplain/fileinfo.h>

Go to the source code of this file.

Functions

int explain_buffer_errno_path_resolution_at (explain_string_buffer_t *sb, int errnum, int fildes, const char *pathname, const char *pathname_caption, const explain_final_t *final_component)

Function Documentation

int explain_buffer_errno_path_resolution_at ( explain_string_buffer_t sb,
int  errnum,
int  fildes,
const char *  pathname,
const char *  pathname_caption,
const explain_final_t final_component 
)

The explain_buffer_errno_path_resolution_at function may be used to check a path for problems.

Parameters:
sbThe string buffer to write the error to, once it is found
errnumThe error number expected.
fildesThe directory file descriptor that relative file names are relative to.
pathnameThe path being checked.
pathname_captionThe name of the argument being checked in the function arguments of the system call being deciphered.
final_componentFlags controlling the final component
Returns:
0 on success, meaning it found an error and wrote it to sb; -1 on failure, meaning it didn't find an error or it didn't find the expected error.

Definition at line 28 of file path_resolution_at.c.