diff toys/toylist.h @ 146:99e651512aa4

Get toysh.c to start using the option parsing logic, and some minor cleanup.
author Rob Landley <rob@landley.net>
date Fri, 19 Oct 2007 19:12:48 -0500
parents fb0745eec453
children ec6e13b2495d
line wrap: on
line diff
--- a/toys/toylist.h	Tue Oct 16 01:49:05 2007 -0500
+++ b/toys/toylist.h	Fri Oct 19 19:12:48 2007 -0500
@@ -18,6 +18,9 @@
 	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 @@
 	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)