1443d7152SJoseph Huber //===------------------- Implementation of _Exit --------------------------===// 2443d7152SJoseph Huber // 3443d7152SJoseph Huber // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4443d7152SJoseph Huber // See https://llvm.org/LICENSE.txt for license information. 5443d7152SJoseph Huber // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6443d7152SJoseph Huber // 7443d7152SJoseph Huber //===----------------------------------------------------------------------===// 8443d7152SJoseph Huber 907bd4394SRoseZhang03 #include "src/__support/OSUtil/exit.h" 10443d7152SJoseph Huber #include "src/__support/common.h" 11*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h" 12443d7152SJoseph Huber 13443d7152SJoseph Huber #include "src/stdlib/_Exit.h" 14443d7152SJoseph Huber 15*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL { 16443d7152SJoseph Huber 17ecfffbfdSNick Desaulniers [[noreturn]] LLVM_LIBC_FUNCTION(void, _Exit, (int status)) { 1807bd4394SRoseZhang03 internal::exit(status); 19443d7152SJoseph Huber } 20443d7152SJoseph Huber 21*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL 22