µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
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)
 

Function Documentation

◆ _Exit()

void _Exit ( int  code)

Definition at line 115 of file exit.c.

◆ _exit()

void _exit ( int  status)

◆ abort()

void abort ( void  )

Definition at line 45 of file exit.c.

◆ exit()

void exit ( int  code)
Parameters
codeExit 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 73 of file exit.c.

◆ os_exit()

void os_exit ( int  code)

◆ os_goodbye()

void os_goodbye ( void  )