From 503d0f5b52fe2eafd6523ce785d6c9f73b46329b Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 19 Oct 2007 19:12:48 -0500 Subject: Get toysh.c to start using the option parsing logic, and some minor cleanup. --- toys/toylist.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'toys/toylist.h') diff --git a/toys/toylist.h b/toys/toylist.h index deeb6204..3c3b316a 100644 --- a/toys/toylist.h +++ b/toys/toylist.h @@ -18,6 +18,9 @@ struct df_data { long units; }; +// Still to go: "E:jJ:L:m:O:" +#define MKE2FS_OPTSTRING "<1>2g:Fnqm#N#i#b#" + struct mke2fs_data { // Command line arguments. long blocksize; @@ -55,12 +58,16 @@ struct touch_data { long length; }; -// "E:jJ:L:m:O:" -#define MKE2FS_OPTSTRING "<1>2Fnqm#N#i#b#" +struct toysh_data { + char *command; +}; extern union toy_union { struct df_data df; struct mke2fs_data mke2fs; + struct sleep_data sleep; + struct touch_data touch; + struct toysh_data toysh; } toy; #define TOYFLAG_USR (1<<0) -- cgit v1.2.3