1//===-- sanitizer_aix.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// This file is shared between various sanitizers' runtime libraries and
10// provides definitions for AIX-specific functions.
11//===----------------------------------------------------------------------===//
12#ifndef SANITIZER_AIX_H
13#define SANITIZER_AIX_H
14
15#include "sanitizer_platform.h"
16
17#if SANITIZER_AIX
18# include "sanitizer_common.h"
19# include "sanitizer_posix.h"
20
21struct prmap;
22typedef struct prmap prmap_t;
23
24namespace __sanitizer {
25
26struct ProcSelfMapsBuff {
27 char* data;
28 uptr mmaped_size;
29 uptr len;
30 prmap_t* mapEnd;
31};
32
33struct MemoryMappingLayoutData {
34 ProcSelfMapsBuff proc_self_maps;
35 const char* current;
36};
37
38void ReadProcMaps(ProcSelfMapsBuff* proc_maps);
39
40} // namespace __sanitizer
41
42#endif // SANITIZER_AIX
43#endif // SANITIZER_AIX_H
44