xref: /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_mallinfo.h (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
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 #endif
35 
36 }  // namespace __sanitizer
37 
38 #endif  // SANITIZER_MALLINFO_H
39