From cd9dfc3b7b73715840b63180e2e4bfdb6e7ca9a4 Mon Sep 17 00:00:00 2001 From: landley Date: Wed, 18 Oct 2006 18:38:16 -0400 Subject: Next drop of toysh, plus more infratructure. --- toys.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'toys.h') diff --git a/toys.h b/toys.h index 4bf29b70..9460d368 100644 --- a/toys.h +++ b/toys.h @@ -17,10 +17,10 @@ #include "lib/lib.h" int cd_main(void); +int df_main(void); int exit_main(void); int toybox_main(void); int toysh_main(void); -int df_main(void); #define TOYFLAG_USR (1<<0) #define TOYFLAG_BIN (1<<1) @@ -35,6 +35,8 @@ extern struct toy_list { int flags; } toy_list[]; struct toy_list *toy_find(char *name); +void toy_init(struct toy_list *which, char *argv[]); +void toy_exec(char *argv[]); // Global context for this applet. @@ -60,5 +62,13 @@ union toy_union { struct df_data df; } toy; -// I need a real config system. -#define CFG_TOYS_FREE 0 +// Pending the addition of menuconfig... + +#define CFG_TOYS_FREE 0 + +#define CFG_TOYSH_TTY 0 // Terminal control +#define CFG_TOYSH_JOBCTL 0 // &, fg, bg, jobs. ctrl-z with tty. +#define CFG_TOYSH_FLOWCTL 0 // if, while, for, functions { } +#define CFG_TOYSH_ENVVARS 0 // Environment variables +#define CFG_TOYSH_LOCVARS 0 // Local, synthetic, fancy prompts, set, $? +#define CFG_TOYSH_PIPES 0 // Pipes and redirects: | > < >> << && || & () ; -- cgit v1.2.3