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

Go to the source code of this file.

Functions

void explain_buffer_eexist (explain_string_buffer_t *sb, const char *pathname)
void explain_buffer_eexist5 (explain_string_buffer_t *sb, const char *base_name, int base_mode, const char *dir_name, int dir_mode)
void explain_buffer_eexist_tempname (explain_string_buffer_t *sb, const char *directory)
void explain_buffer_eexist_tempname_dirname (explain_string_buffer_t *sb, const char *pathname)

Function Documentation

void explain_buffer_eexist ( explain_string_buffer_t sb,
const char *  pathname 
)

The explain_buffer_eexist function may be used to print an explanation of an EEXIST error, reported by the open, mkdir, link and synlink system calls.

Parameters:
sbThe string buffer to print into.
pathnameThe offending file system path.

Definition at line 30 of file eexist.c.

void explain_buffer_eexist5 ( explain_string_buffer_t sb,
const char *  base_name,
int  base_mode,
const char *  dir_name,
int  dir_mode 
)

The explain_buffer_eexist5 function may be used to print an explanation of an EEXIST error, reported by the open system call (and indirectly by others via the explain_buffer_eexist function).

Parameters:
sbThe string buffer to print into.
base_nameThe offending final path component
base_modeThe st_mode field of the offending final path component
dir_nameThe directory containing the offending path component.
dir_modeThe st_mode field of the directory containing the offending path component.

Definition at line 57 of file eexist.c.

void explain_buffer_eexist_tempname ( explain_string_buffer_t sb,
const char *  directory 
)

The explain_buffer_eexist_tempname function is used to explain an EEXIST error, reported by the __gen_tempname function (indirectly used by many of the [e]glibc functions that generate temporary file names), when it can't find an unused (nonexistant) temporary file name.

Parameters:
sbThe string buffer to print into.
directoryThe problematic directory.

Definition at line 29 of file tempname.c.

void explain_buffer_eexist_tempname_dirname ( explain_string_buffer_t sb,
const char *  pathname 
)

The explain_buffer_eexist_tempname function is used to explain an EEXIST error, reported by the __gen_tempname function (indirectly used by many of the [e]glibc functions that generate temporary file names), when it can't find an unused (nonexistant) temporary file name.

Parameters:
sbThe string buffer to print into.
pathnameThe problematic pathname (the directory will be extracted).

Definition at line 76 of file tempname.c.