43 lines · c
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-exception6//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_H15#define SANITIZER_MALLINFO_H16 17#include "sanitizer_internal_defs.h"18#include "sanitizer_platform.h"19 20namespace __sanitizer {21 22#if SANITIZER_ANDROID23 24struct __sanitizer_struct_mallinfo {25 uptr v[10];26};27 28#elif SANITIZER_LINUX || SANITIZER_APPLE || SANITIZER_FUCHSIA29 30struct __sanitizer_struct_mallinfo {31 int v[10];32};33 34struct __sanitizer_struct_mallinfo2 {35 uptr v[10];36};37 38#endif39 40} // namespace __sanitizer41 42#endif // SANITIZER_MALLINFO_H43