sanitizer_fuchsia.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //===-- sanitizer_fuchsia.h ------------------------------------*- C++ -*-===//
  2. //
  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
  6. //
  7. //===---------------------------------------------------------------------===//
  8. //
  9. // Fuchsia-specific sanitizer support.
  10. //
  11. //===---------------------------------------------------------------------===//
  12. #ifndef SANITIZER_FUCHSIA_H
  13. #define SANITIZER_FUCHSIA_H
  14. #include "sanitizer_platform.h"
  15. #if SANITIZER_FUCHSIA
  16. #include "sanitizer_common.h"
  17. #error #include <zircon/sanitizer.h>
  18. #error #include <zircon/syscalls/object.h>
  19. namespace __sanitizer {
  20. extern uptr MainThreadStackBase, MainThreadStackSize;
  21. extern sanitizer_shadow_bounds_t ShadowBounds;
  22. struct MemoryMappingLayoutData {
  23. InternalMmapVector<zx_info_maps_t> data;
  24. size_t current; // Current index into the vector.
  25. };
  26. void InitShadowBounds();
  27. } // namespace __sanitizer
  28. #endif // SANITIZER_FUCHSIA
  29. #endif // SANITIZER_FUCHSIA_H