sanitizer_mallinfo.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //===-- sanitizer_mallinfo.h ----------------------------------------------===//
  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. // This file is a part of Sanitizer common code.
  10. //
  11. // Definition for mallinfo on different platforms.
  12. //===----------------------------------------------------------------------===//
  13. #ifndef SANITIZER_MALLINFO_H
  14. #define SANITIZER_MALLINFO_H
  15. #include "sanitizer_internal_defs.h"
  16. #include "sanitizer_platform.h"
  17. namespace __sanitizer {
  18. #if SANITIZER_ANDROID
  19. struct __sanitizer_struct_mallinfo {
  20. uptr v[10];
  21. };
  22. #elif SANITIZER_LINUX || SANITIZER_APPLE || SANITIZER_FUCHSIA
  23. struct __sanitizer_struct_mallinfo {
  24. int v[10];
  25. };
  26. struct __sanitizer_struct_mallinfo2 {
  27. uptr v[10];
  28. };
  29. #endif
  30. } // namespace __sanitizer
  31. #endif // SANITIZER_MALLINFO_H