libexplain  1.4.D001
Functions
libexplain/buffer/eexist/tempname.c File Reference
#include <libexplain/ac/limits.h>
#include <libexplain/ac/sys/param.h>
#include <libexplain/ac/stdio.h>
#include <libexplain/buffer/eexist.h>
#include <libexplain/dirname.h>
#include <libexplain/option.h>

Go to the source code of this file.

Functions

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 *child)

Function Documentation

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.