libexplain  1.4.D001
Functions
libexplain/buffer/enametoolong/gethostname.c File Reference
#include <libexplain/buffer/enametoolong.h>
#include <libexplain/buffer/gettext.h>

Go to the source code of this file.

Functions

void explain_buffer_enametoolong_gethostname (explain_string_buffer_t *sb, int actual_size, const char *caption)

Function Documentation

void explain_buffer_enametoolong_gethostname ( explain_string_buffer_t sb,
int  actual_length,
const char *  caption 
)

The explain_buffer_enametoolong_gethostname function is sued to print an explaination for an ENAMETOOLONG error reported by the gethostname, getdomainname (etc) functions.

Parameters:
sbThe string buffer to print into.
actual_lengthThe actual length of the host/domain name, this will be larger than the value passed.
captionThe name of the offending system call argument

Definition at line 24 of file gethostname.c.