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

Go to the source code of this file.

Functions

static void report_error (explain_string_buffer_t *sb)
void explain_buffer_etxtbsy (explain_string_buffer_t *sb, const char *pathname)
void explain_buffer_etxtbsy_fildes (explain_string_buffer_t *sb, int fildes)

Function Documentation

void explain_buffer_etxtbsy ( explain_string_buffer_t sb,
const char *  pathname 
)

The explain_buffer_etxtbsy function may be used to provide a common explanation for all cases of ETXTBSY.

Parameters:
sbThe string buffer to print into
pathnameThe name of the file having the problem (it is not printed, it is used to look for the process using it)

Definition at line 42 of file etxtbsy.c.

void explain_buffer_etxtbsy_fildes ( explain_string_buffer_t sb,
int  fildes 
)

The explain_buffer_etxtbsy_fildes function may be used to provide a common explanation for all cases of ETXTBSY, where a file descriptor is available, rather than a pathname.

Parameters:
sbThe string buffer to print into
fildesThe file descriptor having the problem (it is not printed, it is used to look for the process using it)

Definition at line 50 of file etxtbsy.c.

static void report_error ( explain_string_buffer_t sb) [static]

Definition at line 26 of file etxtbsy.c.