aboutsummaryrefslogtreecommitdiff
path: root/toys/toylist.h
diff options
context:
space:
mode:
authorCharlie Shepherd <masterdriverz@gentoo.org>2007-11-10 10:03:01 +0000
committerCharlie Shepherd <masterdriverz@gentoo.org>2007-11-10 10:03:01 +0000
commit627dc77bb6749dbb2cb41d2bbca0c8e41c7504ca (patch)
tree7f3109dbd4b0b16e535e2933628f18c8e7424134 /toys/toylist.h
parentded91bd8208b1d8a1c7b145f3ee5741b6ad57591 (diff)
downloadtoybox-627dc77bb6749dbb2cb41d2bbca0c8e41c7504ca.tar.gz
Add an option to let touch extend or truncate a file and rename the err label to time_error to reduce confusion.
Diffstat (limited to 'toys/toylist.h')
-rw-r--r--toys/toylist.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/toys/toylist.h b/toys/toylist.h
index 2c308ef7..97838ce9 100644
--- a/toys/toylist.h
+++ b/toys/toylist.h
@@ -55,6 +55,7 @@ struct sleep_data {
struct touch_data {
char *ref_file;
char *time;
+ long length;
};
struct toysh_data {
@@ -116,7 +117,7 @@ USE_READLINK(NEWTOY(readlink, "<1f", TOYFLAG_BIN))
USE_TOYSH(OLDTOY(sh, toysh, "c:i", TOYFLAG_BIN))
USE_SLEEP(NEWTOY(sleep, "<1", TOYFLAG_BIN))
USE_SYNC(NEWTOY(sync, NULL, TOYFLAG_BIN))
-USE_TOUCH(NEWTOY(touch, "t:r:mca", TOYFLAG_BIN))
+USE_TOUCH(NEWTOY(touch, "l#t:r:mca", TOYFLAG_BIN))
USE_TOYSH(NEWTOY(toysh, "c:i", TOYFLAG_BIN))
USE_TRUE(NEWTOY(true, NULL, TOYFLAG_BIN))
USE_WHICH(NEWTOY(which, "a", TOYFLAG_USR|TOYFLAG_BIN))