tor  0.4.1.0-alpha-dev
Macros | Typedefs | Functions
dir.h File Reference
#include "lib/cc/compat_compiler.h"
#include "lib/testsupport/testsupport.h"

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

 MOCK_DECL (int, check_private_dir,(const char *dirname, cpd_check_t check, const char *effective_user))
 
 MOCK_DECL (struct smartlist_t *, tor_listdir,(const char *dirname))
 

Detailed Description

Header for dir.c.

Definition in file dir.h.

Typedef Documentation

◆ cpd_check_t

typedef unsigned int cpd_check_t

Possible behaviors for check_private_dir() on encountering a nonexistent directory; see that function's documentation for details.

Definition at line 20 of file dir.h.