aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-03 11:46:01 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-24 10:26:14 -0400
commitaca05fc5c08d6296c4f93850a0256bfd96890b18 (patch)
treed60364e182cf4d3564930eb44af423f03bf1abd6 /src/common/compat.h
parent17d5734df47bc4b9bd40f878e492eb676ca47ae8 (diff)
downloadtor-aca05fc5c08d6296c4f93850a0256bfd96890b18.tar.gz
tor-aca05fc5c08d6296c4f93850a0256bfd96890b18.zip
get_total_system_memory(): see how much RAM we have
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index bb88818d82..01faf14ae4 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -637,6 +637,8 @@ char *make_path_absolute(char *fname);
char **get_environment(void);
+int get_total_system_memory(size_t *mem_out);
+
int spawn_func(void (*func)(void *), void *data);
void spawn_exit(void) ATTR_NORETURN;