#include <cmsis-plus/rtos/os-hooks.h>#include <cmsis-plus/diag/trace.h>#include <cmsis_device.h>#include <stdlib.h>#include <stdbool.h>#include "atexit.h"Go to the source code of this file.
Functions | |
| void | _Exit (int code) |
| void | _exit (int status) |
| void | abort (void) |
| void | exit (int code) |
| void | os_exit (int code) |
| void | os_goodbye (void) |
| void _Exit | ( | int | code | ) |
Definition at line 112 of file exit.c.
References os_terminate(), os_terminate_goodbye(), trace_flush(), and trace_printf().
| void _exit | ( | int | status | ) |
| void abort | ( | void | ) |
Definition at line 43 of file exit.c.
References _Exit(), and trace_puts().
Referenced by __assert_func(), __cxa_pure_virtual(), and __gnu_cxx::__verbose_terminate_handler().
| void exit | ( | int | code | ) |
| code | Exit code. |
exit() does several cleanups before ending the application:
atexit();tmpfile() are deleted (wishful thinking, not implemented);When all cleanups are done, _Exit() is called to perform the actual termination.
Definition at line 70 of file exit.c.
References __call_exitprocs(), _Exit(), os_run_fini_array(), os_terminate(), and trace_printf().
Referenced by _start().
| void os_exit | ( | int | code | ) |
| void os_goodbye | ( | void | ) |