blob: 8ce848f4960b5db0f888438e6371c193e40579b6 [file] [log] [blame]
//===-- Linux implementation of __restore_rt ------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// This file is implemented separately from sigaction.cpp so that we can
// strongly control the options this file is compiled with. __restore_rt cannot
// make any stack allocations so we must ensure this.
#include "config/linux/syscall.h"
#include "include/sys/syscall.h"
namespace __llvm_libc {
extern "C" void __restore_rt()
__attribute__((no_sanitize("thread", "memory", "undefined", "fuzzer"),
hidden));
extern "C" void __restore_rt() { __llvm_libc::syscall(SYS_rt_sigreturn); }
} // namespace __llvm_libc