µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
atexit.h
Go to the documentation of this file.
1/*
2 * This file is part of the µOS++ distribution.
3 * (https://github.com/micro-os-plus)
4 * Copyright (c) 2016-2023 Liviu Ionescu. All rights reserved.
5 *
6 * Permission to use, copy, modify, and/or distribute this software
7 * for any purpose is hereby granted, under the terms of the MIT license.
8 *
9 * If a copy of the license was not distributed with this file, it can
10 * be obtained from https://opensource.org/licenses/mit/.
11 */
12
13#if defined(__ARM_EABI__)
14
15// ----------------------------------------------------------------------------
16
17#if !defined(_LITE_EXIT)
18#define _LITE_EXIT
19#endif
20
21/*
22 * Common definitions for atexit-like routines
23 */
24
25#if defined(__cplusplus)
26extern "C"
27{
28#endif
29
31 {
35 };
36
37 extern void
38 __call_exitprocs (int, void*);
39
40 typedef void
41 (*exit_func_t) (void);
42
43 extern int
44 __register_exitproc (int, exit_func_t fn, void*, void*);
45
46 extern void
47 os_run_fini_array (void);
48
49#if defined(__cplusplus)
50}
51#endif
52
53// ----------------------------------------------------------------------------
54
55#endif /* defined(__ARM_EABI__) */
void(* exit_func_t)(void)
Definition atexit.h:41
void __call_exitprocs(int, void *)
void os_run_fini_array(void)
Definition startup.cpp:197
__atexit_types
Definition atexit.h:31
@ __et_onexit
Definition atexit.h:33
@ __et_atexit
Definition atexit.h:32
@ __et_cxa
Definition atexit.h:34
int __register_exitproc(int, exit_func_t fn, void *, void *)