Tor 0.4.9.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 hs_config_client_authorization(), and storage_dir_new().
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(), and hs_config_client_authorization().