diff options
author | Rob Landley <rob@landley.net> | 2007-05-17 02:38:27 -0400 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2007-05-17 02:38:27 -0400 |
commit | f2f98fa34e9c00c2b5366fb6a9a912cf94f9a157 (patch) | |
tree | c6c558c472f3be6c7f907f45e1f7c1530b132fa9 /toys/sleep.c | |
parent | 8e0520c3ac41b37ccd8937ce3a81f9ab04e2a189 (diff) | |
download | toybox-f2f98fa34e9c00c2b5366fb6a9a912cf94f9a157.tar.gz |
Add sleep.
Diffstat (limited to 'toys/sleep.c')
-rw-r--r-- | toys/sleep.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/toys/sleep.c b/toys/sleep.c new file mode 100644 index 00000000..06c4565d --- /dev/null +++ b/toys/sleep.c @@ -0,0 +1,11 @@ +/* vi: set sw=4 ts=4: */ +/* + * sleep.c - Wait for a number of seconds. + */ + +#include "toys.h" + +int sleep_main(void) +{ + return sleep(atol(*toys.optargs)); +} |