diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-08-05 14:01:49 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-08-05 14:01:49 -0400 |
commit | 50049df0d4b9ba3654749cfbb111c72e07d54bc5 (patch) | |
tree | 0e46b7707f5f298b52b5e423acbae8ac25876660 /src/common/compat.h | |
parent | 9338847bf427b59d6dd5634fc2f8998ce0e269c1 (diff) | |
download | tor-50049df0d4b9ba3654749cfbb111c72e07d54bc5.tar.gz tor-50049df0d4b9ba3654749cfbb111c72e07d54bc5.zip |
Add a compat function to check how much disk space is free.
Closes ticket 16734.
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 3247a59878..d3b18eba92 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -405,6 +405,8 @@ int tor_fd_setpos(int fd, off_t pos); int tor_fd_seekend(int fd); int tor_ftruncate(int fd); +int64_t tor_get_avail_disk_space(const char *path); + #ifdef _WIN32 #define PATH_SEPARATOR "\\" #else |