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

Go to the source code of this file.

Functions

void explain_buffer_emlink (explain_string_buffer_t *sb, const char *oldpath, const char *newpath)
void explain_buffer_emlink_mkdir (explain_string_buffer_t *sb, const char *parent, const char *argument_name)

Function Documentation

void explain_buffer_emlink ( explain_string_buffer_t sb,
const char *  oldpath,
const char *  newpath 
)

The explain_buffer_emlink function may be used to print an explanation of an EMLINK error into the given buffer.

Parameters:
sbThe string buffer to print on.
oldpathThe original oldpath, exactly as passed to system call.
newpathThe original newpath, exactly as passed to system call.

Definition at line 34 of file emlink.c.

void explain_buffer_emlink_mkdir ( explain_string_buffer_t sb,
const char *  parent,
const char *  argument_name 
)

The explain_buffer_emlink_mkdir function may be used to print an explanation of an EMLINK error, in the case where mkdir cannot proceed because the parent directory has too many links (would exceed LINK_MAX).

Parameters:
sbThe string buffer to print on.
parentThe path of the directory that has too many links.
argument_nameThe name of the offending argument.

Definition at line 31 of file mkdir.c.