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

Go to the source code of this file.

Functions

void explain_buffer_errno_chmod (explain_string_buffer_t *sb, int errnum, const char *pathname, int mode)
void explain_buffer_errno_chmod_explanation_fc (explain_string_buffer_t *sb, int errnum, const char *syscall_name, const char *pathname, int mode, const struct explain_final_t *final_component)

Function Documentation

void explain_buffer_errno_chmod ( explain_string_buffer_t sb,
int  errnum,
const char *  pathname,
int  mode 
)

The explain_buffer_errno_chmod function may be used to obtain a detailed explanation of an error returned by a chmod(2) system call.

Parameters:
sbThe string buffer to print the explanation into.
errnumThe returned error, usually obtained from the errno global variable.
pathnameThe original pathname, exactly as passed to the chmod(2) system call.
modeThe original mode, acactly as passed to the chmod(2) system call.

Definition at line 159 of file chmod.c.

void explain_buffer_errno_chmod_explanation_fc ( explain_string_buffer_t sb,
int  errnum,
const char *  syscall_name,
const char *  pathname,
int  mode,
const struct explain_final_t final_component 
)

The explain_buffer_errno_chmod_explanation_fc function contaisn the code common to both explain_buffer_errno_chmod_explanation and explain_buffer_errno_lchmod_explanation.

Parameters:
sbThe string buffer to print the explanation into.
errnumThe returned error, usually obtained from the errno global variable.
syscall_nameThe name of the system call being explained.
pathnameThe original pathname, exactly as passed to the chmod(2) system call.
modeThe original mode, acactly as passed to the chmod(2) system call.
final_componentThe expected properties of the final path component.