libexplain  1.4.D001
Functions
libexplain/buffer/fildes_to_pathname.c File Reference
#include <libexplain/ac/limits.h>
#include <libexplain/ac/sys/param.h>
#include <libexplain/ac/sys/socket.h>
#include <libexplain/ac/sys/stat.h>
#include <libexplain/buffer/fildes_to_pathname.h>
#include <libexplain/buffer/sockaddr.h>
#include <libexplain/fileinfo.h>
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

static void explain_buffer_fildes_to_path (explain_string_buffer_t *sb, int fildes)
static int explain_buffer_fildes_to_sockaddr (explain_string_buffer_t *sb, int fildes)
void explain_buffer_fildes_to_pathname (explain_string_buffer_t *sb, int fildes)

Function Documentation

static void explain_buffer_fildes_to_path ( explain_string_buffer_t sb,
int  fildes 
) [static]

Definition at line 32 of file fildes_to_pathname.c.

void explain_buffer_fildes_to_pathname ( struct explain_string_buffer_t sb,
int  fildes 
)

The explain_buffer_fildes_to_pathname function may be used to turn a file descriptor into a pathname, for the improvement of error messages. If no translation is possible, no text is emitted.

Parameters:
sbThe string buffer to place the pathname.
fildesThe file descriptor to decipher

Definition at line 73 of file fildes_to_pathname.c.

static int explain_buffer_fildes_to_sockaddr ( explain_string_buffer_t sb,
int  fildes 
) [static]

Definition at line 45 of file fildes_to_pathname.c.