Kostya Kortchinsky | f22f5fe | 2017-12-13 20:41:35 +0000 | [diff] [blame] | 1 | //===-- scudo_interface_internal.h ------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | /// |
| 10 | /// Private Scudo interface header. |
| 11 | /// |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef SCUDO_INTERFACE_INTERNAL_H_ |
| 15 | #define SCUDO_INTERFACE_INTERNAL_H_ |
| 16 | |
Kostya Kortchinsky | 541c5a0 | 2018-01-04 17:05:04 +0000 | [diff] [blame] | 17 | #include "sanitizer_common/sanitizer_internal_defs.h" |
| 18 | |
| 19 | using __sanitizer::uptr; |
| 20 | using __sanitizer::s32; |
| 21 | |
Kostya Kortchinsky | f22f5fe | 2017-12-13 20:41:35 +0000 | [diff] [blame] | 22 | extern "C" { |
Kostya Kortchinsky | 4223af4 | 2018-01-30 17:59:49 +0000 | [diff] [blame] | 23 | SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE |
| 24 | const char* __scudo_default_options(); |
| 25 | |
Kostya Kortchinsky | f22f5fe | 2017-12-13 20:41:35 +0000 | [diff] [blame] | 26 | SANITIZER_INTERFACE_ATTRIBUTE |
Kostya Kortchinsky | 541c5a0 | 2018-01-04 17:05:04 +0000 | [diff] [blame] | 27 | void __scudo_set_rss_limit(uptr LimitMb, s32 HardLimit); |
Kostya Kortchinsky | f22f5fe | 2017-12-13 20:41:35 +0000 | [diff] [blame] | 28 | } // extern "C" |
| 29 | |
| 30 | #endif // SCUDO_INTERFACE_INTERNAL_H_ |