libexplain
1.4.D001
|
#include <libexplain/ac/errno.h>
#include <libexplain/buffer/does_not_have_inode_modify_permission.h>
#include <libexplain/buffer/eacces.h>
#include <libexplain/buffer/efault.h>
#include <libexplain/buffer/eio.h>
#include <libexplain/buffer/eloop.h>
#include <libexplain/buffer/enametoolong.h>
#include <libexplain/buffer/enoent.h>
#include <libexplain/buffer/enomem.h>
#include <libexplain/buffer/enotdir.h>
#include <libexplain/buffer/erofs.h>
#include <libexplain/buffer/errno/chmod.h>
#include <libexplain/buffer/errno/generic.h>
#include <libexplain/buffer/errno/path_resolution.h>
#include <libexplain/buffer/permission_mode.h>
#include <libexplain/buffer/pathname.h>
#include <libexplain/buffer/pointer.h>
#include <libexplain/capability.h>
#include <libexplain/explanation.h>
#include <libexplain/option.h>
Go to the source code of this file.
Functions | |
static void | explain_buffer_errno_chmod_system_call (explain_string_buffer_t *sb, int errnum, const char *pathname, int mode) |
static void | explain_buffer_errno_chmod_explanation (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 explain_final_t *final_component) |
void | explain_buffer_errno_chmod (explain_string_buffer_t *sb, int errnum, const char *pathname, int mode) |
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.
sb | The string buffer to print the explanation into. |
errnum | The returned error, usually obtained from the errno global variable. |
pathname | The original pathname, exactly as passed to the chmod(2) system call. |
mode | The original mode, acactly as passed to the chmod(2) system call. |
static void explain_buffer_errno_chmod_explanation | ( | explain_string_buffer_t * | sb, |
int | errnum, | ||
const char * | pathname, | ||
int | mode | ||
) | [static] |
void explain_buffer_errno_chmod_explanation_fc | ( | explain_string_buffer_t * | sb, |
int | errnum, | ||
const char * | syscall_name, | ||
const char * | pathname, | ||
int | mode, | ||
const explain_final_t * | final_component | ||
) |
static void explain_buffer_errno_chmod_system_call | ( | explain_string_buffer_t * | sb, |
int | errnum, | ||
const char * | pathname, | ||
int | mode | ||
) | [static] |