aboutsummaryrefslogtreecommitdiff
path: root/toys/sleep.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-05-17 02:38:27 -0400
committerRob Landley <rob@landley.net>2007-05-17 02:38:27 -0400
commitf2f98fa34e9c00c2b5366fb6a9a912cf94f9a157 (patch)
treec6c558c472f3be6c7f907f45e1f7c1530b132fa9 /toys/sleep.c
parent8e0520c3ac41b37ccd8937ce3a81f9ab04e2a189 (diff)
downloadtoybox-f2f98fa34e9c00c2b5366fb6a9a912cf94f9a157.tar.gz
Add sleep.
Diffstat (limited to 'toys/sleep.c')
-rw-r--r--toys/sleep.c11
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));
+}