summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/machine/rtems-bsd-program.h
diff options
context:
space:
mode:
authorChristian Mauderer <Christian.Mauderer@embedded-brains.de>2016-07-15 11:39:48 +0200
committerChristian Mauderer <Christian.Mauderer@embedded-brains.de>2016-08-02 10:21:38 +0200
commit3d9134086847bc755fd9dcc7f6149f8871d6a6ed (patch)
treee7b1f68cfd9f6448511aedf3eac31b45b24f82ed /rtemsbsd/include/machine/rtems-bsd-program.h
parenttestsuite/syscalls01: Split out program01 part. (diff)
downloadrtems-libbsd-3d9134086847bc755fd9dcc7f6149f8871d6a6ed.tar.bz2
rtemsbsd: Add call to program with a data restore
This adds the rtems_bsd_program_call_main_width_data_restore function.
Diffstat (limited to 'rtemsbsd/include/machine/rtems-bsd-program.h')
-rw-r--r--rtemsbsd/include/machine/rtems-bsd-program.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/rtemsbsd/include/machine/rtems-bsd-program.h b/rtemsbsd/include/machine/rtems-bsd-program.h
index 82830f51..4605017f 100644
--- a/rtemsbsd/include/machine/rtems-bsd-program.h
+++ b/rtemsbsd/include/machine/rtems-bsd-program.h
@@ -53,6 +53,11 @@ int
rtems_bsd_program_call_main(const char *name, int (*main)(int, char **),
int argc, char **argv);
+int
+rtems_bsd_program_call_main_with_data_restore(const char *name,
+ int (*main)(int, char **), int argc, char **argv,
+ const void *data_buf, const size_t data_size);
+
void
rtems_bsd_program_exit(int exit_code) __dead2;