Path: blob/main/system/lib/llvm-libc/src/setjmp/siglongjmp.cpp
6174 views
//===-- Implementation of siglongjmp --------------------------------------===//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#include "src/setjmp/siglongjmp.h"9#include "src/__support/common.h"10#include "src/setjmp/longjmp.h"1112namespace LIBC_NAMESPACE_DECL {1314// siglongjmp is the same as longjmp. The additional recovery work is done in15// the epilogue of the sigsetjmp function.16// TODO: move this inside the TU of longjmp and making it an alias after17// sigsetjmp is implemented for all architectures.18LLVM_LIBC_FUNCTION(void, siglongjmp, (jmp_buf buf, int val)) {19return LIBC_NAMESPACE::longjmp(buf, val);20}2122} // namespace LIBC_NAMESPACE_DECL232425