Merge branch 'tor-gitlab/mr/583' into maint-0.4.7
[tor.git] / src / lib / process / restrict.h
blobc34fcb5a9c4f328c4e6155cd43353c7c07a421e1
1 /* Copyright (c) 2003-2004, Roger Dingledine
2 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3 * Copyright (c) 2007-2021, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
6 /**
7 * \file restrict.h
8 * \brief Header for restrict.c
9 **/
11 #ifndef TOR_RESTRICT_H
12 #define TOR_RESTRICT_H
14 #include "orconfig.h"
15 #ifdef HAVE_SYS_RESOURCE_H
16 #include <sys/resource.h>
17 #endif
19 int tor_disable_debugger_attach(void);
20 int tor_mlockall(void);
22 #if !defined(HAVE_RLIM_T)
23 typedef unsigned long rlim_t;
24 #endif
25 int set_max_file_descriptors(rlim_t limit, int *max_out);
27 #endif /* !defined(TOR_RESTRICT_H) */