diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-15 20:22:44 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-15 20:22:44 -0400 |
commit | 4ac8ff9c9f182b6202200480f8fc4689da659331 (patch) | |
tree | c7817f2cc0755ff989df49b85abde0763bbb4bf2 /src/common/util.h | |
parent | f2c170218238a38a0106acb1a7428b514ce979ca (diff) | |
parent | ede102fd4675af8ac4060767f0348f3c93617e80 (diff) | |
download | tor-4ac8ff9c9f182b6202200480f8fc4689da659331.tar tor-4ac8ff9c9f182b6202200480f8fc4689da659331.tar.gz |
Merge remote-tracking branch 'origin/maint-0.2.2'
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h index 974b7d6fd..e8d5de2ef 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -286,7 +286,12 @@ file_status_t file_status(const char *filename); /** Possible behaviors for check_private_dir() on encountering a nonexistent * directory; see that function's documentation for details. */ -typedef enum { CPD_NONE, CPD_CREATE, CPD_CHECK } cpd_check_t; +typedef unsigned int cpd_check_t; +#define CPD_NONE 0 +#define CPD_CREATE 1 +#define CPD_CHECK 2 +#define CPD_GROUP_OK 4 +#define CPD_CHECK_MODE_ONLY 8 int check_private_dir(const char *dirname, cpd_check_t check); #define OPEN_FLAGS_REPLACE (O_WRONLY|O_CREAT|O_TRUNC) #define OPEN_FLAGS_APPEND (O_WRONLY|O_CREAT|O_APPEND) |