Tor
0.4.7.0-alpha-dev
|
Go to the source code of this file.
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().