From f2f98fa34e9c00c2b5366fb6a9a912cf94f9a157 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 17 May 2007 02:38:27 -0400 Subject: Add sleep. --- toys/toylist.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'toys/toylist.h') diff --git a/toys/toylist.h b/toys/toylist.h index 41b76698..0b3845d9 100644 --- a/toys/toylist.h +++ b/toys/toylist.h @@ -45,6 +45,10 @@ struct mke2fs_data { struct ext2_superblock sb; }; +struct sleep_data { + long seconds; +}; + struct touch_data { char *ref_file; char *time; @@ -97,6 +101,7 @@ USE_ONEIT(NEWTOY(oneit, "+<1p", TOYFLAG_SBIN)) USE_PWD(NEWTOY(pwd, NULL, TOYFLAG_BIN)) 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, "l#t:r:mca", TOYFLAG_BIN)) USE_TOYSH(NEWTOY(toysh, "c:i", TOYFLAG_BIN)) -- cgit v1.2.3