aboutsummaryrefslogtreecommitdiff
path: root/toys.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-11-16 00:35:46 -0600
committerRob Landley <rob@landley.net>2012-11-16 00:35:46 -0600
commitcaf39c26827f355c4e107f55c5c51f67c484bfd7 (patch)
tree718852f37b7143cb63e6e8838093993b19391a39 /toys.h
parent02261e8082b9b098b20a4291fc2583f3c41db8d2 (diff)
downloadtoybox-caf39c26827f355c4e107f55c5c51f67c484bfd7.tar.gz
Add rebound support to intercept error_exit() and longjmp instead.
Diffstat (limited to 'toys.h')
-rw-r--r--toys.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/toys.h b/toys.h
index 72670cd7..55256efe 100644
--- a/toys.h
+++ b/toys.h
@@ -24,6 +24,7 @@
#include <sched.h>
#include <shadow.h>
#include <stdarg.h>
+#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
@@ -103,6 +104,7 @@ extern struct toy_context {
int optc; // Count of optargs
int exithelp; // Should error_exit print a usage message first?
int old_umask; // Old umask preserved by TOYFLAG_UMASK
+ jmp_buf *rebound; // longjmp here instead of exit when do_rebound set
} toys;
// One big temporary buffer, for use by commands (not library functions).