summaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-09-14 23:27:52 +0000
committerNick Mathewson <nickm@torproject.org>2005-09-14 23:27:52 +0000
commit6973ef9be449dc3a28c6f2e30ebd08ade447d3d6 (patch)
tree8461d308f0956eb799baef34e859f904bf9ea1e3 /src/common/compat.h
parentbc0af7046a2d1025a1d7d5c54698841b1a8bee5b (diff)
downloadtor-6973ef9be449dc3a28c6f2e30ebd08ade447d3d6.tar.gz
tor-6973ef9be449dc3a28c6f2e30ebd08ade447d3d6.zip
Add a touch_file() function to compat so we can update cache mtimes.
svn:r5067
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index 686a9345b1..6bccf98c17 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -127,6 +127,7 @@ struct tm *tor_gmtime_r(const time_t *timep, struct tm *result);
/* ===== File compatibility */
int replace_file(const char *from, const char *to);
+int touch_file(const char *fname);
#ifdef MS_WINDOWS
#define PATH_SEPARATOR "\\"