mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
libc: Implement quick_exit and at_quick_exit
Defined by c11: https://en.cppreference.com/w/c/program/quick_exit https://en.cppreference.com/w/c/program/at_quick_exit Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
d7ee492fc4
commit
bcd1ebf260
@@ -166,8 +166,10 @@ int unsetenv(FAR const char *name);
|
||||
/* Process exit functions */
|
||||
|
||||
void exit(int status) noreturn_function;
|
||||
void quick_exit(int status) noreturn_function;
|
||||
void abort(void) noreturn_function;
|
||||
int atexit(CODE void (*func)(void));
|
||||
int at_quick_exit(CODE void (*func)(void));
|
||||
int on_exit(CODE void (*func)(int, FAR void *), FAR void *arg);
|
||||
|
||||
/* _Exit() is a stdlib.h equivalent to the unistd.h _exit() function */
|
||||
|
||||
Reference in New Issue
Block a user