|
Tor 0.5.0.0-alpha-dev
|
Go to the source code of this file.
Macros | |
| #define | CPD_NONE 0 |
| #define | CPD_CREATE (1u << 0) |
| #define | CPD_CHECK (1u << 1) |
| #define | CPD_GROUP_OK (1u << 2) |
| #define | CPD_GROUP_READ (1u << 3) |
| #define | CPD_CHECK_MODE_ONLY (1u << 4) |
| #define | CPD_RELAX_DIRMODE_CHECK (1u << 5) |
Typedefs | |
| typedef unsigned int | cpd_check_t |
Functions | |
| int | check_private_dir (const char *dirname, cpd_check_t check, const char *effective_user) |
| struct smartlist_t * | tor_listdir (const char *dirname) |
| typedef unsigned int cpd_check_t |
Possible behaviors for check_private_dir() on encountering a nonexistent directory; see that function's documentation for details.
| int check_private_dir | ( | const char * | dirname, |
| cpd_check_t | check, | ||
| const char * | effective_user | ||
| ) |
Check whether dirname exists and is private. If yes return 0. If dirname does not exist:
Definition at line 71 of file dir.c.
Referenced by check_and_create_data_directory(), check_or_create_data_subdir(), create_keys_directory(), dump_desc_create_dir(), dump_desc_init(), hs_check_service_private_dir(), hs_config_client_authorization(), storage_dir_new(), and store_permanent_client_auth_credentials().
| struct smartlist_t * tor_listdir | ( | const char * | dirname | ) |
Return a new list containing the filenames in the directory dirname. Return NULL on error or if dirname is not a directory.
Definition at line 307 of file dir.c.
Referenced by dump_desc_populate_fifo_from_directory(), find_and_remove_client_auth_creds_file(), hs_config_client_authorization(), list_family_key_files_impl(), load_client_keys(), and storage_dir_rescan().