Path: blob/main/contrib/llvm-project/compiler-rt/lib/scudo/standalone/report_linux.h
213799 views
//===-- report_linux.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//===----------------------------------------------------------------------===//78#ifndef SCUDO_REPORT_LINUX_H_9#define SCUDO_REPORT_LINUX_H_1011#include "platform.h"1213#if SCUDO_LINUX || SCUDO_TRUSTY1415#include "internal_defs.h"1617namespace scudo {1819// Report a fatal error when a map call fails. SizeIfOOM shall20// hold the requested size on an out-of-memory error, 0 otherwise.21void NORETURN reportMapError(uptr SizeIfOOM = 0);2223// Report a fatal error when an unmap call fails.24void NORETURN reportUnmapError(uptr Addr, uptr Size);2526// Report a fatal error when a mprotect call fails.27void NORETURN reportProtectError(uptr Addr, uptr Size, int Prot);2829} // namespace scudo3031#endif // SCUDO_LINUX || SCUDO_TRUSTY3233#endif // SCUDO_REPORT_LINUX_H_343536