µOS++ IIIe Reference  v6.3.15
“Perfekt ist nicht gut genug”
The third edition of µOS++, a POSIX inspired open source system, written in C++.
exit.c File Reference
#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 os_terminate (int code)
 Terminate the application. There is no more life after this. More...
 

Function Documentation

◆ _Exit()

void _Exit ( int  code)

Definition at line 117 of file exit.c.

◆ _exit()

void _exit ( int  status)

◆ abort()

void abort ( void  )

Definition at line 52 of file exit.c.

◆ exit()

void exit ( int  code)

exit() does several cleanups before ending the application:

  • calls all application-defined cleanup functions enrolled with atexit();
  • files and streams are cleaned up: any pending output is delivered to the host system, each open file or stream is closed, and files created by tmpfile() are deleted (wishful thinking, not implemented);
  • call the static destructors (in reverse order of constructors)

When all cleanups are done, _Exit() is called to perform the actual termination.

Definition at line 78 of file exit.c.

◆ os_exit()

void os_exit ( int  code)

◆ os_goodbye()

void os_goodbye ( void  )