2018-06-28 10:53:34 -04:00
|
|
|
/* Copyright (c) 2003-2004, Roger Dingledine
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
2019-01-16 12:33:22 -05:00
|
|
|
* Copyright (c) 2007-2019, The Tor Project, Inc. */
|
2018-06-28 10:53:34 -04:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
/**
|
2018-07-10 12:22:01 -04:00
|
|
|
* \file restrict.h
|
|
|
|
* \brief Header for restrict.c
|
2018-06-28 10:53:34 -04:00
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef TOR_RESTRICT_H
|
|
|
|
#define TOR_RESTRICT_H
|
|
|
|
|
2018-06-29 09:44:39 -04:00
|
|
|
#include "orconfig.h"
|
|
|
|
#ifdef HAVE_SYS_RESOURCE_H
|
|
|
|
#include <sys/resource.h>
|
|
|
|
#endif
|
|
|
|
|
2018-06-28 10:53:34 -04:00
|
|
|
int tor_disable_debugger_attach(void);
|
|
|
|
int tor_mlockall(void);
|
|
|
|
|
2018-06-29 09:44:39 -04:00
|
|
|
#if !defined(HAVE_RLIM_T)
|
|
|
|
typedef unsigned long rlim_t;
|
|
|
|
#endif
|
|
|
|
int set_max_file_descriptors(rlim_t limit, int *max_out);
|
|
|
|
|
2018-06-28 10:53:34 -04:00
|
|
|
#endif /* !defined(TOR_RESTRICT_H) */
|