Path: blob/main/contrib/llvm-project/compiler-rt/lib/interception/interception_aix.h
213766 views
//===-- interception_aix.h --------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file is a part of AddressSanitizer, an address sanity checker.9//10// AIX-specific interception methods.11//===----------------------------------------------------------------------===//1213#if SANITIZER_AIX1415# if !defined(INCLUDED_FROM_INTERCEPTION_LIB)16# error \17"interception_aix.h should be included from interception library only"18# endif1920# ifndef INTERCEPTION_AIX_H21# define INTERCEPTION_AIX_H2223namespace __interception {24bool InterceptFunction(const char *name, uptr *ptr_to_real, uptr func,25uptr wrapper);26} // namespace __interception2728# define INTERCEPT_FUNCTION_AIX(func) \29::__interception::InterceptFunction( \30#func, (::__interception::uptr *)&REAL(func), \31(::__interception::uptr) & (func), \32(::__interception::uptr) & WRAP(func))3334# endif // INTERCEPTION_AIX_H35#endif // SANITIZER_AIX363738