summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-09 07:12:31 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-09 07:12:31 +0000
commit180e0a9326a1383cf3a945e84700f99f5f9e4df1 (patch)
tree1839878e30f80d127ef798159b227add6200259c /src/common/util.h
parent6521c2ce51b3b808dd8ef5c47dc9995acce149e5 (diff)
downloadtor-180e0a9326a1383cf3a945e84700f99f5f9e4df1.tar.gz
tor-180e0a9326a1383cf3a945e84700f99f5f9e4df1.zip
Make check_private_dir trimodal (check/create/ignore), not bimodal (create/ignore).
svn:r2733
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h
index c925834daf..9f116b5796 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -88,7 +88,8 @@ int read_all(int fd, char *buf, size_t count, int isSocket);
typedef enum { FN_ERROR, FN_NOENT, FN_FILE, FN_DIR} file_status_t;
file_status_t file_status(const char *filename);
-int check_private_dir(const char *dirname, int create);
+typedef enum { CPD_NONE, CPD_CREATE, CPD_CHECK } cpd_check_t;
+int check_private_dir(const char *dirname, cpd_check_t check);
int write_str_to_file(const char *fname, const char *str, int bin);
int write_bytes_to_file(const char *fname, const char *str, size_t len,
int bin);