]>
Commit | Line | Data |
---|---|---|
5d3805fc JJ |
1 | //===-- sanitizer_fuchsia.h ------------------------------------*- C++ -*-===// |
2 | // | |
b667dd70 ML |
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | // See https://llvm.org/LICENSE.txt for license information. | |
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
5d3805fc JJ |
6 | // |
7 | //===---------------------------------------------------------------------===// | |
8 | // | |
9 | // Fuchsia-specific sanitizer support. | |
10 | // | |
11 | //===---------------------------------------------------------------------===// | |
12 | #ifndef SANITIZER_FUCHSIA_H | |
13 | #define SANITIZER_FUCHSIA_H | |
14 | ||
15 | #include "sanitizer_platform.h" | |
16 | #if SANITIZER_FUCHSIA | |
17 | ||
18 | #include "sanitizer_common.h" | |
19 | ||
20 | #include <zircon/sanitizer.h> | |
3c6331c2 | 21 | #include <zircon/syscalls/object.h> |
5d3805fc JJ |
22 | |
23 | namespace __sanitizer { | |
24 | ||
25 | extern uptr MainThreadStackBase, MainThreadStackSize; | |
26 | extern sanitizer_shadow_bounds_t ShadowBounds; | |
27 | ||
3c6331c2 ML |
28 | struct MemoryMappingLayoutData { |
29 | InternalMmapVector<zx_info_maps_t> data; | |
30 | size_t current; // Current index into the vector. | |
31 | }; | |
32 | ||
5d3805fc JJ |
33 | } // namespace __sanitizer |
34 | ||
35 | #endif // SANITIZER_FUCHSIA | |
36 | #endif // SANITIZER_FUCHSIA_H |