diff options
author | Rob Landley <rob@landley.net> | 2012-11-16 00:35:46 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2012-11-16 00:35:46 -0600 |
commit | caf39c26827f355c4e107f55c5c51f67c484bfd7 (patch) | |
tree | 718852f37b7143cb63e6e8838093993b19391a39 /toys.h | |
parent | 02261e8082b9b098b20a4291fc2583f3c41db8d2 (diff) | |
download | toybox-caf39c26827f355c4e107f55c5c51f67c484bfd7.tar.gz |
Add rebound support to intercept error_exit() and longjmp instead.
Diffstat (limited to 'toys.h')
-rw-r--r-- | toys.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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). |