diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-29 09:44:39 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-29 12:21:52 -0400 |
commit | 0362cdc169a785a386d3c60d354cd34fafde5770 (patch) | |
tree | b0a8a876f4b6996ce73e351dc36884f348286b00 /src/lib/process/restrict.h | |
parent | 973afcc40b52d71bfb1a1285806977fee9b843f6 (diff) | |
download | tor-0362cdc169a785a386d3c60d354cd34fafde5770.tar.gz tor-0362cdc169a785a386d3c60d354cd34fafde5770.zip |
Move fd and memory-info functions.
Diffstat (limited to 'src/lib/process/restrict.h')
-rw-r--r-- | src/lib/process/restrict.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/process/restrict.h b/src/lib/process/restrict.h index d608c9c9bd..c7f76f8233 100644 --- a/src/lib/process/restrict.h +++ b/src/lib/process/restrict.h @@ -11,7 +11,17 @@ #ifndef TOR_RESTRICT_H #define TOR_RESTRICT_H +#include "orconfig.h" +#ifdef HAVE_SYS_RESOURCE_H +#include <sys/resource.h> +#endif + int tor_disable_debugger_attach(void); int tor_mlockall(void); +#if !defined(HAVE_RLIM_T) +typedef unsigned long rlim_t; +#endif +int set_max_file_descriptors(rlim_t limit, int *max_out); + #endif /* !defined(TOR_RESTRICT_H) */ |