2021-02-13 15:14:07 +08:00
|
|
|
/*
|
2021-03-08 18:19:04 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2021-02-13 15:14:07 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2021-02-13 Meco Man implement exit() and abort()
|
|
|
|
*/
|
2022-01-08 23:29:41 +08:00
|
|
|
|
2021-02-13 15:16:53 +08:00
|
|
|
#include <rtthread.h>
|
2023-12-30 21:52:52 +08:00
|
|
|
#include <posix/stdlib.h>
|
2021-02-13 15:14:07 +08:00
|
|
|
|
2021-02-20 11:31:58 +08:00
|
|
|
/* for exit() and abort() */
|
|
|
|
void __exit (int status)
|
2021-02-13 15:14:07 +08:00
|
|
|
{
|
2021-02-17 23:50:12 +08:00
|
|
|
__rt_libc_exit(status);
|
2021-02-17 00:18:49 +08:00
|
|
|
while(1);
|
2021-02-13 15:14:07 +08:00
|
|
|
}
|