xref: /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_mallinfo.h (revision cb14a3fe5122c879eae1fb480ed7ce82a699ddb6)
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 
14 #ifndef SANITIZER_MALLINFO_H
15 #define SANITIZER_MALLINFO_H
16 
17 #include "sanitizer_internal_defs.h"
18 #include "sanitizer_platform.h"
19 
20 namespace __sanitizer {
21 
22 #if SANITIZER_ANDROID
23 
24 struct __sanitizer_struct_mallinfo {
25   uptr v[10];
26 };
27 
28 #elif SANITIZER_LINUX || SANITIZER_APPLE || SANITIZER_FUCHSIA
29 
30 struct __sanitizer_struct_mallinfo {
31   int v[10];
32 };
33 
34 struct __sanitizer_struct_mallinfo2 {
35   uptr v[10];
36 };
37 
38 #endif
39 
40 }  // namespace __sanitizer
41 
42 #endif  // SANITIZER_MALLINFO_H
43