|
libexplain
1.4.D001
|
Go to the source code of this file.
Data Structures | |
| struct | explain_final_t |
Defines | |
| #define | must_be_a_directory(fcp) (fcp->must_be_a_st_mode && fcp->st_mode == S_IFDIR) |
Typedefs | |
| typedef struct explain_final_t | explain_final_t |
Functions | |
| void | explain_final_init (explain_final_t *final_component) |
| int | explain_buffer_errno_path_resolution (explain_string_buffer_t *sb, int errnum, const char *pathname, const char *pathname_caption, const explain_final_t *final_component) |
| int | explain_buffer_errno_path_resolution_at (explain_string_buffer_t *sb, int errnum, int fildes, const char *pathname, const char *pathname_caption, const explain_final_t *final_component) |
| #define must_be_a_directory | ( | fcp | ) | (fcp->must_be_a_st_mode && fcp->st_mode == S_IFDIR) |
Definition at line 122 of file path_resolution.h.
| typedef struct explain_final_t explain_final_t |
Definition at line 26 of file path_resolution.h.
| int explain_buffer_errno_path_resolution | ( | explain_string_buffer_t * | sb, |
| int | errnum, | ||
| const char * | pathname, | ||
| const char * | pathname_caption, | ||
| const explain_final_t * | final_component | ||
| ) |
The explain_buffer_errno_path_resolution function may be used to check a path for problems.
| sb | The string buffer to write the error to, once it is found |
| errnum | The error number expected. |
| pathname | The path being checked. |
| pathname_caption | The name of the argument being checked in the function arguments of the system call being deciphered. |
| final_component | Flags controlling the final component |
Definition at line 952 of file path_resolution.c.
| int explain_buffer_errno_path_resolution_at | ( | explain_string_buffer_t * | sb, |
| int | errnum, | ||
| int | fildes, | ||
| const char * | pathname, | ||
| const char * | pathname_caption, | ||
| const explain_final_t * | final_component | ||
| ) |
The explain_buffer_errno_path_resolution_at function may be used to check a path for problems.
| sb | The string buffer to write the error to, once it is found |
| errnum | The error number expected. |
| fildes | The directory file descriptor that relative file names are relative to. |
| pathname | The path being checked. |
| pathname_caption | The name of the argument being checked in the function arguments of the system call being deciphered. |
| final_component | Flags controlling the final component |
Definition at line 28 of file path_resolution_at.c.
| void explain_final_init | ( | explain_final_t * | final_component | ) |
The explain_final_init function is used to initialise all of the members of a explain_final_t struct to their defaults (usually 0).
| final_component | Pointer to struct to be initialised. |
Definition at line 1992 of file path_resolution.c.
1.7.6.1