aboutsummaryrefslogtreecommitdiff
path: root/src/lib/process/restrict.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/process/restrict.h')
-rw-r--r--src/lib/process/restrict.h10
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) */