summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/machine
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-05-10 16:11:01 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-05-12 07:48:02 +0200
commitc6212520abc119a4b49f7f513adb45c46ac3fc62 (patch)
tree001fe47bea3d02212ad38e23e961c7948f56d4d9 /rtemsbsd/include/machine
parenttcpdump01: New test (diff)
downloadrtems-libbsd-c6212520abc119a4b49f7f513adb45c46ac3fc62.tar.bz2
Add program destructor support
Update #4650.
Diffstat (limited to 'rtemsbsd/include/machine')
-rw-r--r--rtemsbsd/include/machine/rtems-bsd-program.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/rtemsbsd/include/machine/rtems-bsd-program.h b/rtemsbsd/include/machine/rtems-bsd-program.h
index dacd0d69..3062c1a2 100644
--- a/rtemsbsd/include/machine/rtems-bsd-program.h
+++ b/rtemsbsd/include/machine/rtems-bsd-program.h
@@ -60,6 +60,12 @@ rtems_bsd_program_call_main_with_data_restore(const char *name,
int (*main)(int, char **), int argc, char **argv,
void *data_buf, const size_t data_size);
+void *
+rtems_bsd_program_add_destructor(void (*destructor)(void *), void *arg);
+
+void
+rtems_bsd_program_remove_destructor(void *cookie, bool call);
+
void
rtems_bsd_program_exit(int exit_code) __dead2;