restrict.h 620 B

123456789101112131415161718192021222324252627
  1. /* Copyright (c) 2003-2004, Roger Dingledine
  2. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  3. * Copyright (c) 2007-2018, The Tor Project, Inc. */
  4. /* See LICENSE for licensing information */
  5. /**
  6. * \file waitpid.h
  7. * \brief Headers for waitpid.c
  8. **/
  9. #ifndef TOR_RESTRICT_H
  10. #define TOR_RESTRICT_H
  11. #include "orconfig.h"
  12. #ifdef HAVE_SYS_RESOURCE_H
  13. #include <sys/resource.h>
  14. #endif
  15. int tor_disable_debugger_attach(void);
  16. int tor_mlockall(void);
  17. #if !defined(HAVE_RLIM_T)
  18. typedef unsigned long rlim_t;
  19. #endif
  20. int set_max_file_descriptors(rlim_t limit, int *max_out);
  21. #endif /* !defined(TOR_RESTRICT_H) */