diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-13 10:48:33 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-13 10:48:33 +0000 |
commit | f5635f4d327c7f4ce34026c64548585dd7b59ffc (patch) | |
tree | 55a2aa82cccf18350dc09921e2956fe78b9334a0 /include/usage.h | |
parent | e324184c0509cc0db168ce29546e1b52800a79c6 (diff) | |
download | busybox-w32-f5635f4d327c7f4ce34026c64548585dd7b59ffc.tar.gz busybox-w32-f5635f4d327c7f4ce34026c64548585dd7b59ffc.tar.bz2 busybox-w32-f5635f4d327c7f4ce34026c64548585dd7b59ffc.zip |
usage.h: style cleanup
Diffstat (limited to '')
-rw-r--r-- | include/usage.h | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/include/usage.h b/include/usage.h index a1b39368b..d5e9d7d5d 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -406,20 +406,20 @@ | |||
406 | "The bbsh shell (command interpreter)" | 406 | "The bbsh shell (command interpreter)" |
407 | 407 | ||
408 | #define chrt_trivial_usage \ | 408 | #define chrt_trivial_usage \ |
409 | "[OPTION]... [prio] [pid | command [arg]...]" | 409 | "[OPTION]... [prio] [pid | command [arg]...]" |
410 | #define chrt_full_usage \ | 410 | #define chrt_full_usage \ |
411 | "manipulate real-time attributes of a process" \ | 411 | "manipulate real-time attributes of a process" \ |
412 | "\n\nOptions:\n" \ | 412 | "\n\nOptions:\n" \ |
413 | " -p operate on pid\n" \ | 413 | " -p operate on pid\n" \ |
414 | " -r set scheduling policy to SCHED_RR\n" \ | 414 | " -r set scheduling policy to SCHED_RR\n" \ |
415 | " -f set scheduling policy to SCHED_FIFO\n" \ | 415 | " -f set scheduling policy to SCHED_FIFO\n" \ |
416 | " -o set scheduling policy to SCHED_OTHER\n" \ | 416 | " -o set scheduling policy to SCHED_OTHER\n" \ |
417 | " -m show min and max priorities" | 417 | " -m show min and max priorities" |
418 | 418 | ||
419 | #define chrt_example_usage \ | 419 | #define chrt_example_usage \ |
420 | "$ chrt -r 4 sleep 900; x=$!\n" \ | 420 | "$ chrt -r 4 sleep 900; x=$!\n" \ |
421 | "$ chrt -f -p 3 $x\n" \ | 421 | "$ chrt -f -p 3 $x\n" \ |
422 | "You need CAP_SYS_NICE privileges to set scheduling attributes of a process" | 422 | "You need CAP_SYS_NICE privileges to set scheduling attributes of a process" |
423 | 423 | ||
424 | #define cp_trivial_usage \ | 424 | #define cp_trivial_usage \ |
425 | "[OPTION]... SOURCE DEST" | 425 | "[OPTION]... SOURCE DEST" |
@@ -1146,7 +1146,7 @@ | |||
1146 | #define grep_trivial_usage \ | 1146 | #define grep_trivial_usage \ |
1147 | "[-HhrilLnqvso" \ | 1147 | "[-HhrilLnqvso" \ |
1148 | USE_DESKTOP("w") \ | 1148 | USE_DESKTOP("w") \ |
1149 | "eF" \ | 1149 | "eF" \ |
1150 | USE_FEATURE_GREP_EGREP_ALIAS("E") \ | 1150 | USE_FEATURE_GREP_EGREP_ALIAS("E") \ |
1151 | USE_FEATURE_GREP_CONTEXT("ABC") \ | 1151 | USE_FEATURE_GREP_CONTEXT("ABC") \ |
1152 | "] PATTERN [FILEs...]" | 1152 | "] PATTERN [FILEs...]" |
@@ -1609,7 +1609,7 @@ | |||
1609 | USE_FEATURE_IP_LINK("link | ") \ | 1609 | USE_FEATURE_IP_LINK("link | ") \ |
1610 | USE_FEATURE_IP_TUNNEL("tunnel | ") \ | 1610 | USE_FEATURE_IP_TUNNEL("tunnel | ") \ |
1611 | USE_FEATURE_IP_RULE("rule") \ | 1611 | USE_FEATURE_IP_RULE("rule") \ |
1612 | "} {COMMAND}" | 1612 | "} {COMMAND}" |
1613 | #define ip_full_usage \ | 1613 | #define ip_full_usage \ |
1614 | "ip [OPTIONS] OBJECT {COMMAND}\n" \ | 1614 | "ip [OPTIONS] OBJECT {COMMAND}\n" \ |
1615 | "where OBJECT := {" \ | 1615 | "where OBJECT := {" \ |
@@ -1618,7 +1618,7 @@ | |||
1618 | USE_FEATURE_IP_LINK("link | ") \ | 1618 | USE_FEATURE_IP_LINK("link | ") \ |
1619 | USE_FEATURE_IP_TUNNEL("tunnel | ") \ | 1619 | USE_FEATURE_IP_TUNNEL("tunnel | ") \ |
1620 | USE_FEATURE_IP_RULE("rule") \ | 1620 | USE_FEATURE_IP_RULE("rule") \ |
1621 | "}\n" \ | 1621 | "}\n" \ |
1622 | "OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }" | 1622 | "OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }" |
1623 | 1623 | ||
1624 | #define ipaddr_trivial_usage \ | 1624 | #define ipaddr_trivial_usage \ |
@@ -2401,7 +2401,7 @@ | |||
2401 | #else /* DESKTOP nc - much more compatible with nc 1.10 */ | 2401 | #else /* DESKTOP nc - much more compatible with nc 1.10 */ |
2402 | 2402 | ||
2403 | #define nc_trivial_usage \ | 2403 | #define nc_trivial_usage \ |
2404 | "[-options] hostname port - connect" \ | 2404 | "[-options] hostname port - connect" \ |
2405 | USE_NC_SERVER("\nnc [-options] -l -p port [hostname] [port] - listen") | 2405 | USE_NC_SERVER("\nnc [-options] -l -p port [hostname] [port] - listen") |
2406 | #define nc_full_usage \ | 2406 | #define nc_full_usage \ |
2407 | USE_NC_SERVER( \ | 2407 | USE_NC_SERVER( \ |
@@ -2879,18 +2879,18 @@ | |||
2879 | USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when they are not executable") | 2879 | USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when they are not executable") |
2880 | 2880 | ||
2881 | #define run_parts_example_usage \ | 2881 | #define run_parts_example_usage \ |
2882 | "$ run-parts -a start /etc/init.d\n" \ | 2882 | "$ run-parts -a start /etc/init.d\n" \ |
2883 | "$ run-parts -a stop=now /etc/init.d\n\n" \ | 2883 | "$ run-parts -a stop=now /etc/init.d\n\n" \ |
2884 | "Let's assume you have a script foo/dosomething:\n" \ | 2884 | "Let's assume you have a script foo/dosomething:\n" \ |
2885 | "#!/bin/sh\n" \ | 2885 | "#!/bin/sh\n" \ |
2886 | "for i in $*; do eval $i; done; unset i\n" \ | 2886 | "for i in $*; do eval $i; done; unset i\n" \ |
2887 | "case \"$1\" in\n" \ | 2887 | "case \"$1\" in\n" \ |
2888 | "start*) echo starting something;;\n" \ | 2888 | "start*) echo starting something;;\n" \ |
2889 | "stop*) set -x; shutdown -h $stop;;\n" \ | 2889 | "stop*) set -x; shutdown -h $stop;;\n" \ |
2890 | "esac\n\n" \ | 2890 | "esac\n\n" \ |
2891 | "Running this yields:\n" \ | 2891 | "Running this yields:\n" \ |
2892 | "$run-parts -a stop=+4m foo/\n" \ | 2892 | "$run-parts -a stop=+4m foo/\n" \ |
2893 | "+ shutdown -h +4m" | 2893 | "+ shutdown -h +4m" |
2894 | 2894 | ||
2895 | #define runlevel_trivial_usage \ | 2895 | #define runlevel_trivial_usage \ |
2896 | "[utmp]" | 2896 | "[utmp]" |
@@ -2985,8 +2985,8 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when | |||
2985 | "\n -o file Save list of files with incorrect context" \ | 2985 | "\n -o file Save list of files with incorrect context" \ |
2986 | "\n -s Take a list of files from standard input (instead of command line)" \ | 2986 | "\n -s Take a list of files from standard input (instead of command line)" \ |
2987 | "\n -v Show changes in file labels, if type or role are changing" \ | 2987 | "\n -v Show changes in file labels, if type or role are changing" \ |
2988 | "\n -vv Show changes in file labels, if type, role, or user are changing" \ | 2988 | "\n -vv Show changes in file labels, if type, role, or user are changing" \ |
2989 | "\n -W Display warnings about entries that had no matching files" | 2989 | "\n -W Display warnings about entries that had no matching files" |
2990 | 2990 | ||
2991 | #define setkeycodes_trivial_usage \ | 2991 | #define setkeycodes_trivial_usage \ |
2992 | "SCANCODE KEYCODE ..." | 2992 | "SCANCODE KEYCODE ..." |
@@ -3116,15 +3116,15 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when | |||
3116 | "" | 3116 | "" |
3117 | 3117 | ||
3118 | #define split_trivial_usage \ | 3118 | #define split_trivial_usage \ |
3119 | "[OPTION] [INPUT [PREFIX]]" | 3119 | "[OPTION] [INPUT [PREFIX]]" |
3120 | #define split_full_usage \ | 3120 | #define split_full_usage \ |
3121 | "Options:" \ | 3121 | "Options:" \ |
3122 | "\n -b n[k|m] Split by bytes" \ | 3122 | "\n -b n[k|m] Split by bytes" \ |
3123 | "\n -l n Split by lines" \ | 3123 | "\n -l n Split by lines" \ |
3124 | "\n -a n Use n letters as suffix" | 3124 | "\n -a n Use n letters as suffix" |
3125 | #define split_example_usage \ | 3125 | #define split_example_usage \ |
3126 | "$ split TODO foo\n" \ | 3126 | "$ split TODO foo\n" \ |
3127 | "$ cat TODO | split -a 2 -l 2 TODO_\n" | 3127 | "$ cat TODO | split -a 2 -l 2 TODO_\n" |
3128 | 3128 | ||
3129 | #define start_stop_daemon_trivial_usage \ | 3129 | #define start_stop_daemon_trivial_usage \ |
3130 | "[OPTIONS] [--start|--stop] ... [-- arguments...]" | 3130 | "[OPTIONS] [--start|--stop] ... [-- arguments...]" |