libexplain  1.4.D001
Data Fields
explain_final_t Struct Reference

#include <path_resolution.h>

Data Fields

unsigned want_to_read:1
unsigned want_to_write:1
unsigned want_to_search:1
unsigned want_to_execute:1
unsigned want_to_create:1
unsigned want_to_modify_inode:1
unsigned want_to_unlink:1
unsigned must_exist:1
unsigned must_not_exist:1
unsigned follow_symlink:1
unsigned must_be_a_st_mode:1
unsigned follow_interpreter:1
unsigned st_mode
explain_have_identity_t id
long path_max

Detailed Description

Definition at line 27 of file path_resolution.h.


Field Documentation

When want_to_execute is set, the executable file should be checked for #! and if so, the named interpreter's path should also be checked for executability. (This is the default). To avoid infinite recursion, when checking the interpreter itself, disable this flag.

Definition at line 55 of file path_resolution.h.

Definition at line 38 of file path_resolution.h.

Definition at line 73 of file path_resolution.h.

This is set to 0 by default, meaning any file type is acceptable. If you want a specific type, set this bit, and also set the st_mode member (below) to the desired file type, e.g. S_IFREG, S_IFDIR, etc.

Definition at line 46 of file path_resolution.h.

Definition at line 36 of file path_resolution.h.

Definition at line 37 of file path_resolution.h.

Definition at line 80 of file path_resolution.h.

When want_to_create, this is an indication of what is about to be created, so that it can be used to inform the error messages.

When want a file to exist (the must_be_a_st_mode bit is set) this member indicates the desired file type.

Defaults to S_IFREG.

Definition at line 66 of file path_resolution.h.

Definition at line 33 of file path_resolution.h.

Definition at line 32 of file path_resolution.h.

Definition at line 34 of file path_resolution.h.

Definition at line 29 of file path_resolution.h.

Definition at line 31 of file path_resolution.h.

Definition at line 35 of file path_resolution.h.

Definition at line 30 of file path_resolution.h.


The documentation for this struct was generated from the following file: