libexplain  1.4.D001
Functions
libexplain/buffer/errno/chmod.c File Reference
#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)

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.

static void explain_buffer_errno_chmod_explanation ( explain_string_buffer_t *  sb,
int  errnum,
const char *  pathname,
int  mode 
) [static]

Definition at line 57 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 explain_final_t *  final_component 
)

Definition at line 78 of file chmod.c.

static void explain_buffer_errno_chmod_system_call ( explain_string_buffer_t *  sb,
int  errnum,
const char *  pathname,
int  mode 
) [static]

Definition at line 44 of file chmod.c.