Mercurial > hg > toybox
diff toys.h @ 696:99ca30ad3d2b
Add rebound support to intercept error_exit() and longjmp instead.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 16 Nov 2012 00:35:46 -0600 |
parents | 786841fdb1e0 |
children | cfdaead45479 |
line wrap: on
line diff
--- a/toys.h Thu Nov 15 16:15:51 2012 -0600 +++ b/toys.h Fri Nov 16 00:35:46 2012 -0600 @@ -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 @@ 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).