/
GitCaptain
/
llvm-project
Обзор
Документация
Войти
/
GitCaptain
/
llvm-project
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
fix-tests
libc/src/stdlib/linux/_Exit.cpp
24 строки
792 B
Siva Chandra Reddy
[libc] Move the x86_64 syscall functions to OSUtil.
23 дек 2021, 00:48
23 дек 2021, 00:48
3cc2161
Код
Авторство
О чём код?
//===------------------- Linux Implementation of _Exit --------------------===// // // 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 // //===----------------------------------------------------------------------===// #include "include/sys/syscall.h" // For syscall numbers. #include "src/__support/OSUtil/syscall.h" // For internal syscall function. #include "src/__support/common.h" #include "src/stdlib/_Exit.h" namespace __llvm_libc { LLVM_LIBC_FUNCTION(void, _Exit, (int status)) { for (;;) { __llvm_libc::syscall(SYS_exit_group, status); __llvm_libc::syscall(SYS_exit, status); } } } // namespace __llvm_libc