aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-05-15 20:22:44 -0400
committerNick Mathewson <nickm@torproject.org>2011-05-15 20:22:44 -0400
commit4ac8ff9c9f182b6202200480f8fc4689da659331 (patch)
treec7817f2cc0755ff989df49b85abde0763bbb4bf2 /src/common/util.h
parentf2c170218238a38a0106acb1a7428b514ce979ca (diff)
parentede102fd4675af8ac4060767f0348f3c93617e80 (diff)
downloadtor-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.h7
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)