1 /* 2 * Copyright (c) 2006-2021, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2021-02-13 Meco Man implement exit() and abort() 9 */ 10 11 #include <rtthread.h> 12 #include <posix/stdlib.h> 13 14 /* for exit() and abort() */ __exit(int status)15void __exit (int status) 16 { 17 __rt_libc_exit(status); 18 while(1); 19 } 20