diff options
author | Ron Yorston <rmy@pobox.com> | 2012-03-22 14:11:12 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2012-03-22 14:11:12 +0000 |
commit | 67758035a4fe040c6ac69b39d61bcd6bddd7b827 (patch) | |
tree | a4a1db7f54c16d12fabe2626b8f1e235cd694e9e /coreutils/sleep.c | |
parent | 811c449748d5bd0505f8510e5582892f94ac0cda (diff) | |
parent | b83c9704128dd106071184e4b00335a3b8486857 (diff) | |
download | busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.gz busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.bz2 busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.zip |
Merge commit 'b83c9704128dd106071184e4b00335a3b8486857' into merge
Diffstat (limited to 'coreutils/sleep.c')
-rw-r--r-- | coreutils/sleep.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/coreutils/sleep.c b/coreutils/sleep.c index 433f9d6ee..0ffbd16eb 100644 --- a/coreutils/sleep.c +++ b/coreutils/sleep.c | |||
@@ -18,6 +18,21 @@ | |||
18 | * time suffixes for seconds, minutes, hours, and days. | 18 | * time suffixes for seconds, minutes, hours, and days. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | //usage:#define sleep_trivial_usage | ||
22 | //usage: IF_FEATURE_FANCY_SLEEP("[") "N" IF_FEATURE_FANCY_SLEEP("]...") | ||
23 | //usage:#define sleep_full_usage "\n\n" | ||
24 | //usage: IF_NOT_FEATURE_FANCY_SLEEP("Pause for N seconds") | ||
25 | //usage: IF_FEATURE_FANCY_SLEEP( | ||
26 | //usage: "Pause for a time equal to the total of the args given, where each arg can\n" | ||
27 | //usage: "have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays") | ||
28 | //usage: | ||
29 | //usage:#define sleep_example_usage | ||
30 | //usage: "$ sleep 2\n" | ||
31 | //usage: "[2 second delay results]\n" | ||
32 | //usage: IF_FEATURE_FANCY_SLEEP( | ||
33 | //usage: "$ sleep 1d 3h 22m 8s\n" | ||
34 | //usage: "[98528 second delay results]\n") | ||
35 | |||
21 | #include "libbb.h" | 36 | #include "libbb.h" |
22 | 37 | ||
23 | /* Do not make this applet NOFORK. It breaks ^C-ing of pauses in shells */ | 38 | /* Do not make this applet NOFORK. It breaks ^C-ing of pauses in shells */ |