aboutsummaryrefslogtreecommitdiff
path: root/toys/toylist.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-11-20 01:06:29 -0600
committerRob Landley <rob@landley.net>2007-11-20 01:06:29 -0600
commitb5b82d92d26934b3d49adb146e8a4bd542ab8dfb (patch)
treecbfdb3b566c0e244ef53c4e5cd014174564a379b /toys/toylist.h
parent126f9c5c6f4da006dc389b6eb91d9c8f0d02970e (diff)
downloadtoybox-b5b82d92d26934b3d49adb146e8a4bd542ab8dfb.tar.gz
Implement dmesg.
Diffstat (limited to 'toys/toylist.h')
-rw-r--r--toys/toylist.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/toys/toylist.h b/toys/toylist.h
index 97838ce9..a55a56a6 100644
--- a/toys/toylist.h
+++ b/toys/toylist.h
@@ -21,6 +21,11 @@ struct df_data {
// Still to go: "E:jJ:L:m:O:"
#define MKE2FS_OPTSTRING "<1>2g:Fnqm#N#i#b#"
+struct dmesg_data {
+ long level;
+ long size;
+};
+
struct mke2fs_data {
// Command line arguments.
long blocksize;
@@ -67,6 +72,7 @@ struct mkfifo_data {
};
extern union toy_union {
+ struct dmesg_data dmesg;
struct df_data df;
struct mke2fs_data mke2fs;
struct mkfifo_data mkfifo;
@@ -104,6 +110,7 @@ USE_CATV(NEWTOY(catv, "vte", TOYFLAG_USR|TOYFLAG_BIN))
USE_COUNT(NEWTOY(count, "", TOYFLAG_USR|TOYFLAG_BIN))
USE_TOYSH(NEWTOY(cd, NULL, TOYFLAG_NOFORK))
USE_DF(NEWTOY(df, "Pkt*a", TOYFLAG_USR|TOYFLAG_SBIN))
+USE_DMESG(NEWTOY(dmesg, "s#n#c", TOYFLAG_BIN))
USE_ECHO(NEWTOY(echo, "+en", TOYFLAG_BIN))
USE_TOYSH(NEWTOY(exit, NULL, TOYFLAG_NOFORK))
USE_FALSE(NEWTOY(false, NULL, TOYFLAG_BIN))