aboutsummaryrefslogtreecommitdiff
path: root/toys/sleep.c
diff options
context:
space:
mode:
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));
+}