diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-04-06 17:52:02 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-04-06 17:52:02 +0000 |
commit | 15c03c315f439c89c9fafbdc687f05a3bb012d60 (patch) | |
tree | a28bd58b10082592bfb1983309d498e1db8f6ae4 | |
parent | a151d195040305704a252913938e9704a2141241 (diff) | |
download | busybox-w32-15c03c315f439c89c9fafbdc687f05a3bb012d60.tar.gz busybox-w32-15c03c315f439c89c9fafbdc687f05a3bb012d60.tar.bz2 busybox-w32-15c03c315f439c89c9fafbdc687f05a3bb012d60.zip |
Yet more doc updates
-rw-r--r-- | AUTHORS | 2 | ||||
-rw-r--r-- | docs/busybox_footer.pod | 123 | ||||
-rw-r--r-- | include/usage.h | 146 |
3 files changed, 178 insertions, 93 deletions
@@ -14,6 +14,8 @@ Emanuele Aina <emanuele.aina@tiscali.it> | |||
14 | Erik Andersen <andersen@codepoet.org> | 14 | Erik Andersen <andersen@codepoet.org> |
15 | Tons of new stuff, major rewrite of most of the | 15 | Tons of new stuff, major rewrite of most of the |
16 | core apps, tons of new apps as noted in header files. | 16 | core apps, tons of new apps as noted in header files. |
17 | Lots of tedious effort writing these boring docs that | ||
18 | nobody is going to actually read. | ||
17 | 19 | ||
18 | Laurence Anderson <l.d.anderson@warwick.ac.uk> | 20 | Laurence Anderson <l.d.anderson@warwick.ac.uk> |
19 | rpm2cpio, unzip, get_header_cpio, read_gz interface, rpm | 21 | rpm2cpio, unzip, get_header_cpio, read_gz interface, rpm |
diff --git a/docs/busybox_footer.pod b/docs/busybox_footer.pod index 4f1058573..ddeef532c 100644 --- a/docs/busybox_footer.pod +++ b/docs/busybox_footer.pod | |||
@@ -6,29 +6,50 @@ Erik Andersen <andersen@codepoet.org> | |||
6 | 6 | ||
7 | =head1 AUTHORS | 7 | =head1 AUTHORS |
8 | 8 | ||
9 | The following people have contributed code to BusyBox whether | 9 | The following people have contributed code to BusyBox whether they know it or |
10 | they know it or not. | 10 | not. If you have written code included in BusyBox, you should probably be |
11 | listed here so you can obtain your bit of eternal glory. If you should be | ||
12 | listed here, or the description of what you have done needs more detail, or is | ||
13 | incorect, please send in an update. | ||
11 | 14 | ||
12 | 15 | ||
13 | =for html <br> | 16 | =for html <br> |
14 | 17 | ||
18 | Emanuele Aina <emanuele.aina@tiscali.it> | ||
19 | run-parts | ||
20 | |||
21 | =for html <br> | ||
22 | |||
15 | Erik Andersen <andersen@codepoet.org> | 23 | Erik Andersen <andersen@codepoet.org> |
16 | 24 | ||
17 | Tons of new stuff, major rewrite of most of the | 25 | Tons of new stuff, major rewrite of most of the |
18 | core apps, tons of new apps as noted in header files. | 26 | core apps, tons of new apps as noted in header files. |
27 | Lots of tedious effort writing these boring docs that | ||
28 | nobody is going to actually read. | ||
19 | 29 | ||
20 | =for html <br> | 30 | =for html <br> |
21 | 31 | ||
22 | John Beppu <beppu@codepoet.org> | 32 | Laurence Anderson <l.d.anderson@warwick.ac.uk> |
23 | 33 | ||
24 | du, head, nslookup, sort, tee, uniq (so Kraai could rewrite them ;-), | 34 | rpm2cpio, unzip, get_header_cpio, read_gz interface, rpm |
25 | documentation | 35 | |
36 | =for html <br> | ||
37 | |||
38 | Jeff Angielski <jeff@theptrgroup.com> | ||
39 | |||
40 | ftpput, ftpget | ||
26 | 41 | ||
27 | =for html <br> | 42 | =for html <br> |
28 | 43 | ||
29 | Edward Betts <edward@debian.org> | 44 | Edward Betts <edward@debian.org> |
30 | 45 | ||
31 | expr, hostid, logname, tty, wc, whoami, yes | 46 | expr, hostid, logname, whoami |
47 | |||
48 | =for html <br> | ||
49 | |||
50 | John Beppu <beppu@codepoet.org> | ||
51 | |||
52 | du, nslookup, sort | ||
32 | 53 | ||
33 | =for html <br> | 54 | =for html <br> |
34 | 55 | ||
@@ -40,31 +61,51 @@ Brian Candler <B.Candler@pobox.com> | |||
40 | 61 | ||
41 | Randolph Chung <tausq@debian.org> | 62 | Randolph Chung <tausq@debian.org> |
42 | 63 | ||
43 | fbset, ping, hostname, and mkfifo | 64 | fbset, ping, hostname |
44 | 65 | ||
45 | =for html <br> | 66 | =for html <br> |
46 | 67 | ||
47 | Dave Cinege <dcinege@psychosis.com> | 68 | Dave Cinege <dcinege@psychosis.com> |
48 | 69 | ||
49 | more(v2), makedevs, modularization, various fixes | 70 | more(v2), makedevs, dutmp, modularization, auto links file, |
71 | various fixes, Linux Router Project maintenance | ||
72 | |||
73 | =for html <br> | ||
74 | |||
75 | Jordan Crouse <jordan@cosmicpenguin.net> | ||
76 | |||
77 | ipcalc | ||
78 | |||
79 | =for html <br> | ||
80 | |||
81 | Magnus Damm <damm@opensource.se> | ||
82 | |||
83 | tftp client insmod powerpc support | ||
50 | 84 | ||
51 | =for html <br> | 85 | =for html <br> |
52 | 86 | ||
53 | Larry Doolittle <ldoolitt@recycle.lbl.gov> | 87 | Larry Doolittle <ldoolitt@recycle.lbl.gov> |
54 | 88 | ||
55 | various fixes, shell rewrite | 89 | pristine source directory compilation, lots of patches and fixes. |
56 | 90 | ||
57 | =for html <br> | 91 | =for html <br> |
58 | 92 | ||
59 | Karl M. Hegbloom <karlheg@debian.org> | 93 | Glenn Engel <glenne@engel.org> |
60 | 94 | ||
61 | cp_mv.c, the test suite, various fixes to utility.c, &c. | 95 | httpd |
62 | 96 | ||
63 | =for html <br> | 97 | =for html <br> |
64 | 98 | ||
65 | Sterling Huxley <sterling@europa.com> | 99 | Gennady Feldman <gfeldman@gena01.com> |
66 | 100 | ||
67 | vi (!!!) | 101 | Sysklogd (single threaded syslogd, IPC Circular buffer support, |
102 | logread), various fixes. | ||
103 | |||
104 | =for html <br> | ||
105 | |||
106 | Karl M. Hegbloom <karlheg@debian.org> | ||
107 | |||
108 | cp_mv.c, the test suite, various fixes to utility.c, &c. | ||
68 | 109 | ||
69 | =for html <br> | 110 | =for html <br> |
70 | 111 | ||
@@ -74,27 +115,46 @@ Daniel Jacobowitz <dan@debian.org> | |||
74 | 115 | ||
75 | =for html <br> | 116 | =for html <br> |
76 | 117 | ||
77 | Matt Kraai <kraai@alumni.carnegiemellon.edu> | 118 | Matt Kraai <kraai@alumni.cmu.edu> |
78 | 119 | ||
79 | documentation, bugfixes | 120 | documentation, bugfixes, test suite |
121 | |||
122 | =for html <br> | ||
123 | |||
124 | Stephan Linz <linz@li-pro.net> | ||
125 | |||
126 | ipcalc, Red Hat equivalence | ||
80 | 127 | ||
81 | =for html <br> | 128 | =for html <br> |
82 | 129 | ||
83 | John Lombardo <john@deltanet.com> | 130 | John Lombardo <john@deltanet.com> |
84 | 131 | ||
85 | dirname, tr | 132 | tr |
86 | 133 | ||
87 | =for html <br> | 134 | =for html <br> |
88 | 135 | ||
89 | Glenn McGrath <bug1@netconnect.com.au> | 136 | Glenn McGrath <bug1@optushome.com.au> |
90 | 137 | ||
91 | ar.c | 138 | ar, dpkg, dpkg-deb |
139 | |||
140 | =for html <br> | ||
141 | |||
142 | Manuel Novoa III <mjn3@codepoet.org> | ||
143 | |||
144 | cat, head, mkfifo, mknod, rmdir, sleep, tee, tty, uniq, usleep, wc, yes, | ||
145 | mesg, vconfig, make_directory, parse_mode, dirname, mode_string, | ||
146 | get_last_path_component, simplify_path, and a number trivial libbb routines | ||
147 | |||
148 | also bug fixes, partial rewrites, and size optimizations in | ||
149 | ash, basename, cal, cmp, cp, df, du, echo, env, ln, logname, md5sum, mkdir, | ||
150 | mv, realpath, rm, sort, tail, touch, uname, watch, arith, human_readable, | ||
151 | interface, dutmp, ifconfig, route | ||
92 | 152 | ||
93 | =for html <br> | 153 | =for html <br> |
94 | 154 | ||
95 | Vladimir Oleynik <dzo@simtreas.ru> | 155 | Vladimir Oleynik <dzo@simtreas.ru> |
96 | 156 | ||
97 | cmdedit, xargs(current), httpd(current); | 157 | cmdedit; xargs(current), httpd(current); |
98 | ports: ash, crond, fdisk, inetd, stty, traceroute, top; | 158 | ports: ash, crond, fdisk, inetd, stty, traceroute, top; |
99 | locale, various fixes | 159 | locale, various fixes |
100 | and irreconcilable critic of everything not perfect. | 160 | and irreconcilable critic of everything not perfect. |
@@ -103,7 +163,20 @@ Vladimir Oleynik <dzo@simtreas.ru> | |||
103 | 163 | ||
104 | Bruce Perens <bruce@pixar.com> | 164 | Bruce Perens <bruce@pixar.com> |
105 | 165 | ||
106 | Original author of BusyBox. His code is still in many apps. | 166 | Original author of BusyBox in 1995, 1996. Some of his code can |
167 | still be found hiding here and there... | ||
168 | |||
169 | =for html <br> | ||
170 | |||
171 | Tim Riker <Tim@Rikers.org> | ||
172 | |||
173 | bug fixes, member of fan club | ||
174 | |||
175 | =for html <br> | ||
176 | |||
177 | Kent Robotti <robotti@metconnect.com> | ||
178 | |||
179 | reset, tons and tons of bug reports and patches. | ||
107 | 180 | ||
108 | =for html <br> | 181 | =for html <br> |
109 | 182 | ||
@@ -133,7 +206,8 @@ Linus Torvalds <torvalds@transmeta.com> | |||
133 | 206 | ||
134 | Mark Whitley <markw@codepoet.org> | 207 | Mark Whitley <markw@codepoet.org> |
135 | 208 | ||
136 | sed remix, bug fixes, style-guide, etc. | 209 | grep, sed, cut, xargs(previous), |
210 | style-guide, new-applet-HOWTO, bug fixes, etc. | ||
137 | 211 | ||
138 | =for html <br> | 212 | =for html <br> |
139 | 213 | ||
@@ -149,10 +223,11 @@ Enrique Zanardi <ezanardi@ull.es> | |||
149 | 223 | ||
150 | =for html <br> | 224 | =for html <br> |
151 | 225 | ||
152 | Glenn Engel <glenne@engel.org> | 226 | Tito Ragusa <farmatito@tiscali.it> |
153 | 227 | ||
154 | httpd | 228 | devfsd and size optimizations in strings, openvt and deallocvt. |
155 | 229 | ||
156 | =cut | 230 | =cut |
157 | 231 | ||
158 | # $Id: busybox_footer.pod,v 1.14 2004/03/27 09:40:15 andersen Exp $ | 232 | # $Id: busybox_footer.pod,v 1.15 2004/04/06 17:52:02 andersen Exp $ |
233 | |||
diff --git a/include/usage.h b/include/usage.h index c5f978956..4b7032308 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -874,46 +874,46 @@ | |||
874 | "[options] [device] .." | 874 | "[options] [device] .." |
875 | #define hdparm_full_usage \ | 875 | #define hdparm_full_usage \ |
876 | "Options:" \ | 876 | "Options:" \ |
877 | " -a get/set fs readahead\n" \ | 877 | "\t-a get/set fs readahead\n" \ |
878 | " -A set drive read-lookahead flag (0/1)\n" \ | 878 | "\t-A set drive read-lookahead flag (0/1)\n" \ |
879 | " -b get/set bus state (0 == off, 1 == on, 2 == tristate)\n" \ | 879 | "\t-b get/set bus state (0 == off, 1 == on, 2 == tristate)\n" \ |
880 | " -B set Advanced Power Management setting (1-255)\n" \ | 880 | "\t-B set Advanced Power Management setting (1-255)\n" \ |
881 | " -c get/set IDE 32-bit IO setting\n" \ | 881 | "\t-c get/set IDE 32-bit IO setting\n" \ |
882 | " -C check IDE power mode status\n" \ | 882 | "\t-C check IDE power mode status\n" \ |
883 | USAGE_GETSET_DMA(" -d get/set using_dma flag\n") \ | 883 | USAGE_GETSET_DMA("\t-d get/set using_dma flag\n") \ |
884 | " -D enable/disable drive defect-mgmt\n" \ | 884 | "\t-D enable/disable drive defect-mgmt\n" \ |
885 | " -f flush buffer cache for device on exit\n" \ | 885 | "\t-f flush buffer cache for device on exit\n" \ |
886 | " -g display drive geometry\n" \ | 886 | "\t-g display drive geometry\n" \ |
887 | " -h display terse usage information\n" \ | 887 | "\t-h display terse usage information\n" \ |
888 | " -i display drive identification\n" \ | 888 | "\t-i display drive identification\n" \ |
889 | USAGE_HDPARM_IDENT(" -I detailed/current information directly from drive\n") \ | 889 | USAGE_HDPARM_IDENT("\t-I detailed/current information directly from drive\n") \ |
890 | USAGE_HDPARM_IDENT(" -Istdin similar to -I, but wants /proc/ide/" "*" "/hd?/identify as input\n") \ | 890 | USAGE_HDPARM_IDENT("\t-Istdin similar to -I, but wants /proc/ide/" "*" "/hd?/identify as input\n") \ |
891 | " -k get/set keep_settings_over_reset flag (0/1)\n" \ | 891 | "\t-k get/set keep_settings_over_reset flag (0/1)\n" \ |
892 | " -K set drive keep_features_over_reset flag (0/1)\n" \ | 892 | "\t-K set drive keep_features_over_reset flag (0/1)\n" \ |
893 | " -L set drive doorlock (0/1) (removable harddisks only)\n" \ | 893 | "\t-L set drive doorlock (0/1) (removable harddisks only)\n" \ |
894 | " -m get/set multiple sector count\n" \ | 894 | "\t-m get/set multiple sector count\n" \ |
895 | " -n get/set ignore-write-errors flag (0/1)\n" \ | 895 | "\t-n get/set ignore-write-errors flag (0/1)\n" \ |
896 | " -p set PIO mode on IDE interface chipset (0,1,2,3,4,...)\n" \ | 896 | "\t-p set PIO mode on IDE interface chipset (0,1,2,3,4,...)\n" \ |
897 | " -P set drive prefetch count\n" \ | 897 | "\t-P set drive prefetch count\n" \ |
898 | " -q change next setting quietly\n" \ | 898 | "\t-q change next setting quietly\n" \ |
899 | " -Q get/set DMA tagged-queuing depth (if supported)\n" \ | 899 | "\t-Q get/set DMA tagged-queuing depth (if supported)\n" \ |
900 | " -r get/set readonly flag (DANGEROUS to set)\n" \ | 900 | "\t-r get/set readonly flag (DANGEROUS to set)\n" \ |
901 | USAGE_SCAN_HWIF(" -R register an IDE interface (DANGEROUS)\n") \ | 901 | USAGE_SCAN_HWIF("\t-R register an IDE interface (DANGEROUS)\n") \ |
902 | " -S set standby (spindown) timeout\n" \ | 902 | "\t-S set standby (spindown) timeout\n" \ |
903 | " -t perform device read timings\n" \ | 903 | "\t-t perform device read timings\n" \ |
904 | " -T perform cache read timings\n" \ | 904 | "\t-T perform cache read timings\n" \ |
905 | " -u get/set unmaskirq flag (0/1)\n" \ | 905 | "\t-u get/set unmaskirq flag (0/1)\n" \ |
906 | USAGE_UNREGISTER_HWIF(" -U un-register an IDE interface (DANGEROUS)\n") \ | 906 | USAGE_UNREGISTER_HWIF("\t-U un-register an IDE interface (DANGEROUS)\n") \ |
907 | " -v defaults; same as -mcudkrag for IDE drives\n" \ | 907 | "\t-v defaults; same as -mcudkrag for IDE drives\n" \ |
908 | " -V display program version and exit immediately\n" \ | 908 | "\t-V display program version and exit immediately\n" \ |
909 | USAGE_DRIVE_RESET(" -w perform device reset (DANGEROUS)\n") \ | 909 | USAGE_DRIVE_RESET("\t-w perform device reset (DANGEROUS)\n") \ |
910 | " -W set drive write-caching flag (0/1) (DANGEROUS)\n" \ | 910 | "\t-W set drive write-caching flag (0/1) (DANGEROUS)\n" \ |
911 | USAGE_TRISTATE_HWIF(" -x tristate device for hotswap (0/1) (DANGEROUS)\n") \ | 911 | USAGE_TRISTATE_HWIF("\t-x tristate device for hotswap (0/1) (DANGEROUS)\n") \ |
912 | " -X set IDE xfer mode (DANGEROUS)\n" \ | 912 | "\t-X set IDE xfer mode (DANGEROUS)\n" \ |
913 | " -y put IDE drive in standby mode\n" \ | 913 | "\t-y put IDE drive in standby mode\n" \ |
914 | " -Y put IDE drive to sleep\n" \ | 914 | "\t-Y put IDE drive to sleep\n" \ |
915 | " -Z disable Seagate auto-powersaving mode\n" \ | 915 | "\t-Z disable Seagate auto-powersaving mode\n" \ |
916 | " -z re-read partition table" | 916 | "\t-z re-read partition table" |
917 | 917 | ||
918 | #ifdef CONFIG_FEATURE_FANCY_HEAD | 918 | #ifdef CONFIG_FEATURE_FANCY_HEAD |
919 | #define USAGE_FANCY_HEAD(a) a | 919 | #define USAGE_FANCY_HEAD(a) a |
@@ -1027,9 +1027,9 @@ | |||
1027 | "\t-l\tthe hardware clock is kept in local time" | 1027 | "\t-l\tthe hardware clock is kept in local time" |
1028 | 1028 | ||
1029 | #ifdef CONFIG_SELINUX | 1029 | #ifdef CONFIG_SELINUX |
1030 | #define USAGE_SELINUX(a, b) a | 1030 | #define USAGE_SELINUX(a) a |
1031 | #else | 1031 | #else |
1032 | #define USAGE_SELINUX(a, b) b | 1032 | #define USAGE_SELINUX(a) |
1033 | #endif | 1033 | #endif |
1034 | 1034 | ||
1035 | #define id_trivial_usage \ | 1035 | #define id_trivial_usage \ |
@@ -1037,11 +1037,11 @@ | |||
1037 | #define id_full_usage \ | 1037 | #define id_full_usage \ |
1038 | "Print information for USERNAME or the current user\n\n" \ | 1038 | "Print information for USERNAME or the current user\n\n" \ |
1039 | "Options:\n" \ | 1039 | "Options:\n" \ |
1040 | USAGE_SELINUX("\t-c\tprints only the security context\n") \ | ||
1040 | "\t-g\tprints only the group ID\n" \ | 1041 | "\t-g\tprints only the group ID\n" \ |
1041 | "\t-u\tprints only the user ID\n" \ | 1042 | "\t-u\tprints only the user ID\n" \ |
1042 | USAGE_SELINUX("\t-c\tprints only the security context\n", "") \ | 1043 | "\t-n\tprint a name instead of a number\n" \ |
1043 | "\t-n\tprint a name instead of a number (with for -ug)\n" \ | 1044 | "\t-r\tprints the real user ID instead of the effective ID" |
1044 | "\t-r\tprints the real user ID instead of the effective ID (with -ug)" | ||
1045 | #define id_example_usage \ | 1045 | #define id_example_usage \ |
1046 | "$ id\n" \ | 1046 | "$ id\n" \ |
1047 | "uid=1000(andersen) gid=1000(andersen)\n" | 1047 | "uid=1000(andersen) gid=1000(andersen)\n" |
@@ -1298,11 +1298,11 @@ | |||
1298 | #define ipaddr_full_usage \ | 1298 | #define ipaddr_full_usage \ |
1299 | "ipaddr {add|del} IFADDR dev STRING\n" \ | 1299 | "ipaddr {add|del} IFADDR dev STRING\n" \ |
1300 | "ipaddr {show|flush} [ dev STRING ] [ scope SCOPE-ID ]\n" \ | 1300 | "ipaddr {show|flush} [ dev STRING ] [ scope SCOPE-ID ]\n" \ |
1301 | " [ to PREFIX ] [ label PATTERN ]\n" \ | 1301 | "\t\t\t[ to PREFIX ] [ label PATTERN ]\n" \ |
1302 | "IFADDR := PREFIX | ADDR peer PREFIX\n" \ | 1302 | "\t\t\tIFADDR := PREFIX | ADDR peer PREFIX\n" \ |
1303 | " [ broadcast ADDR ] [ anycast ADDR ]\n" \ | 1303 | "\t\t\t[ broadcast ADDR ] [ anycast ADDR ]\n" \ |
1304 | " [ label STRING ] [ scope SCOPE-ID ]\n" \ | 1304 | "\t\t\t[ label STRING ] [ scope SCOPE-ID ]\n" \ |
1305 | "SCOPE-ID := [ host | link | global | NUMBER ]" | 1305 | "\t\t\tSCOPE-ID := [ host | link | global | NUMBER ]" |
1306 | 1306 | ||
1307 | #ifndef CONFIG_FEATURE_IPCALC_FANCY | 1307 | #ifndef CONFIG_FEATURE_IPCALC_FANCY |
1308 | #define ipcalc_trivial_usage \ | 1308 | #define ipcalc_trivial_usage \ |
@@ -1332,9 +1332,9 @@ | |||
1332 | "{ set DEVICE { up | down | arp { on | off } | show [ DEVICE ] }" | 1332 | "{ set DEVICE { up | down | arp { on | off } | show [ DEVICE ] }" |
1333 | #define iplink_full_usage \ | 1333 | #define iplink_full_usage \ |
1334 | "iplink set DEVICE { up | down | arp { on | off } |\n" \ | 1334 | "iplink set DEVICE { up | down | arp { on | off } |\n" \ |
1335 | " dynamic { on | off } |\n" \ | 1335 | "\t\t\tdynamic { on | off } |\n" \ |
1336 | " mtu MTU }\n" \ | 1336 | "\t\t\tmtu MTU }\n" \ |
1337 | "iplink show [ DEVICE ]" | 1337 | "\tiplink show [ DEVICE ]" |
1338 | 1338 | ||
1339 | #define iproute_trivial_usage \ | 1339 | #define iproute_trivial_usage \ |
1340 | "{ list | flush | { add | del | change | append |\n" \ | 1340 | "{ list | flush | { add | del | change | append |\n" \ |
@@ -1342,10 +1342,10 @@ | |||
1342 | #define iproute_full_usage \ | 1342 | #define iproute_full_usage \ |
1343 | "iproute { list | flush } SELECTOR\n" \ | 1343 | "iproute { list | flush } SELECTOR\n" \ |
1344 | "iproute get ADDRESS [ from ADDRESS iif STRING ]\n" \ | 1344 | "iproute get ADDRESS [ from ADDRESS iif STRING ]\n" \ |
1345 | " [ oif STRING ] [ tos TOS ]\n" \ | 1345 | "\t\t\t[ oif STRING ] [ tos TOS ]\n" \ |
1346 | "iproute { add | del | change | append | replace | monitor } ROUTE\n" \ | 1346 | "\tiproute { add | del | change | append | replace | monitor } ROUTE\n" \ |
1347 | "SELECTOR := [ root PREFIX ] [ match PREFIX ] [ proto RTPROTO ]\n" \ | 1347 | "\t\t\tSELECTOR := [ root PREFIX ] [ match PREFIX ] [ proto RTPROTO ]\n" \ |
1348 | "ROUTE := [ TYPE ] PREFIX [ tos TOS ] [ proto RTPROTO ]" | 1348 | "\t\t\tROUTE := [ TYPE ] PREFIX [ tos TOS ] [ proto RTPROTO ]" |
1349 | 1349 | ||
1350 | #define iptunnel_trivial_usage \ | 1350 | #define iptunnel_trivial_usage \ |
1351 | "{ add | change | del | show } [ NAME ]\n" \ | 1351 | "{ add | change | del | show } [ NAME ]\n" \ |
@@ -1353,9 +1353,9 @@ | |||
1353 | "\t\t[ remote ADDR ] [ local ADDR ] [ ttl TTL ]" | 1353 | "\t\t[ remote ADDR ] [ local ADDR ] [ ttl TTL ]" |
1354 | #define iptunnel_full_usage \ | 1354 | #define iptunnel_full_usage \ |
1355 | "iptunnel { add | change | del | show } [ NAME ]\n" \ | 1355 | "iptunnel { add | change | del | show } [ NAME ]\n" \ |
1356 | " [ mode { ipip | gre | sit } ] [ remote ADDR ] [ local ADDR ]\n" \ | 1356 | "\t\t\t[ mode { ipip | gre | sit } ] [ remote ADDR ] [ local ADDR ]\n" \ |
1357 | " [ [i|o]seq ] [ [i|o]key KEY ] [ [i|o]csum ]\n" \ | 1357 | "\t\t\t[ [i|o]seq ] [ [i|o]key KEY ] [ [i|o]csum ]\n" \ |
1358 | " [ ttl TTL ] [ tos TOS ] [ [no]pmtudisc ] [ dev PHYS_DEV ]" | 1358 | "\t\t\t[ ttl TTL ] [ tos TOS ] [ [no]pmtudisc ] [ dev PHYS_DEV ]" |
1359 | 1359 | ||
1360 | #define kill_trivial_usage \ | 1360 | #define kill_trivial_usage \ |
1361 | "[-signal] process-id [process-id ...]" | 1361 | "[-signal] process-id [process-id ...]" |
@@ -1501,8 +1501,9 @@ | |||
1501 | #else | 1501 | #else |
1502 | #define USAGE_AUTOWIDTH(a) | 1502 | #define USAGE_AUTOWIDTH(a) |
1503 | #endif | 1503 | #endif |
1504 | |||
1504 | #define ls_trivial_usage \ | 1505 | #define ls_trivial_usage \ |
1505 | "[-1Aa" USAGE_LS_TIMESTAMPS("c") "Cd" USAGE_LS_TIMESTAMPS("e") USAGE_LS_FILETYPES("F") "iln" USAGE_LS_FILETYPES("p") USAGE_LS_FOLLOWLINKS("L") USAGE_LS_RECURSIVE("R") USAGE_LS_SORTFILES("rS") "s" USAGE_AUTOWIDTH("T") USAGE_LS_TIMESTAMPS("tu") USAGE_LS_SORTFILES("v") USAGE_AUTOWIDTH("w") "x" USAGE_LS_SORTFILES("X") USAGE_HUMAN_READABLE("h") USAGE_NOT_HUMAN_READABLE("") "k" USAGE_SELINUX("K", "") "] [filenames...]" | 1506 | "[-1Aa" USAGE_LS_TIMESTAMPS("c") "Cd" USAGE_LS_TIMESTAMPS("e") USAGE_LS_FILETYPES("F") "iln" USAGE_LS_FILETYPES("p") USAGE_LS_FOLLOWLINKS("L") USAGE_LS_RECURSIVE("R") USAGE_LS_SORTFILES("rS") "s" USAGE_AUTOWIDTH("T") USAGE_LS_TIMESTAMPS("tu") USAGE_LS_SORTFILES("v") USAGE_AUTOWIDTH("w") "x" USAGE_LS_SORTFILES("X") USAGE_HUMAN_READABLE("h") USAGE_NOT_HUMAN_READABLE("") "k" USAGE_SELINUX("K") "] [filenames...]" |
1506 | #define ls_full_usage \ | 1507 | #define ls_full_usage \ |
1507 | "List directory contents\n\n" \ | 1508 | "List directory contents\n\n" \ |
1508 | "Options:\n" \ | 1509 | "Options:\n" \ |
@@ -1531,8 +1532,9 @@ | |||
1531 | "\t-x\tlist entries by lines instead of by columns\n" \ | 1532 | "\t-x\tlist entries by lines instead of by columns\n" \ |
1532 | USAGE_LS_SORTFILES("\t-X\tsort the listing by extension\n") \ | 1533 | USAGE_LS_SORTFILES("\t-X\tsort the listing by extension\n") \ |
1533 | USAGE_HUMAN_READABLE( \ | 1534 | USAGE_HUMAN_READABLE( \ |
1534 | "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" \ | 1535 | "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n") \ |
1535 | USAGE_SELINUX("\t-k\tprint security context\n\t-K\tprint security context in long format\n", "")) | 1536 | USAGE_SELINUX("\t-k\tprint security context\n") \ |
1537 | USAGE_SELINUX("\t-K\tprint security context in long format\n") | ||
1536 | 1538 | ||
1537 | #define lsmod_trivial_usage \ | 1539 | #define lsmod_trivial_usage \ |
1538 | "" | 1540 | "" |
@@ -1944,12 +1946,18 @@ | |||
1944 | "$ printf "Val=%d\\n" 5\n" \ | 1946 | "$ printf "Val=%d\\n" 5\n" \ |
1945 | "Val=5\n" | 1947 | "Val=5\n" |
1946 | 1948 | ||
1949 | #ifdef CONFIG_SELINUX | ||
1950 | #define USAGE_NONSELINUX(a) | ||
1951 | #else | ||
1952 | #define USAGE_NONSELINUX(a) a | ||
1953 | #endif | ||
1954 | |||
1947 | #define ps_trivial_usage \ | 1955 | #define ps_trivial_usage \ |
1948 | "" | 1956 | "" |
1949 | #define ps_full_usage \ | 1957 | #define ps_full_usage \ |
1950 | "Report process status\n" \ | 1958 | "Report process status\n" \ |
1951 | USAGE_SELINUX("\nOptions:\n\t-c\tshow SE Linux context", \ | 1959 | USAGE_NONSELINUX("\n\tThis version of ps accepts no options.") \ |
1952 | "\nThis version of ps accepts no options.") | 1960 | USAGE_SELINUX("\nOptions:\n\t-c\tshow SE Linux context") |
1953 | 1961 | ||
1954 | #define ps_example_usage \ | 1962 | #define ps_example_usage \ |
1955 | "$ ps\n" \ | 1963 | "$ ps\n" \ |
@@ -2172,7 +2180,7 @@ | |||
2172 | USAGE_NOT_FANCY_SLEEP("Pause for N seconds.") \ | 2180 | USAGE_NOT_FANCY_SLEEP("Pause for N seconds.") \ |
2173 | USAGE_FANCY_SLEEP( \ | 2181 | USAGE_FANCY_SLEEP( \ |
2174 | "Pause for a time equal to the total of the args given, where each arg can\n" \ | 2182 | "Pause for a time equal to the total of the args given, where each arg can\n" \ |
2175 | "have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays.") | 2183 | "\t\thave an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays.") |
2176 | #define sleep_example_usage \ | 2184 | #define sleep_example_usage \ |
2177 | "$ sleep 2\n" \ | 2185 | "$ sleep 2\n" \ |
2178 | "[2 second delay results]\n" \ | 2186 | "[2 second delay results]\n" \ |
@@ -2559,8 +2567,8 @@ | |||
2559 | "hello world\n" | 2567 | "hello world\n" |
2560 | 2568 | ||
2561 | #define traceroute_trivial_usage \ | 2569 | #define traceroute_trivial_usage \ |
2562 | "[-dnrv] [-m max_ttl] [-p port#] [-q nqueries]\n\ | 2570 | "[-dnrv] [-m max_ttl] [-p port#] [-q nqueries]\n"\ |
2563 | [-s src_addr] [-t tos] [-w wait] host [data size]" | 2571 | "\t[-s src_addr] [-t tos] [-w wait] host [data size]" |
2564 | #define traceroute_full_usage \ | 2572 | #define traceroute_full_usage \ |
2565 | "trace the route ip packets follow going to \"host\"\n" \ | 2573 | "trace the route ip packets follow going to \"host\"\n" \ |
2566 | "Options:\n" \ | 2574 | "Options:\n" \ |
@@ -2803,7 +2811,7 @@ | |||
2803 | 2811 | ||
2804 | #define wget_trivial_usage \ | 2812 | #define wget_trivial_usage \ |
2805 | "[-c|--continue] [-q|--quiet] [-O|--output-document file]\n" \ | 2813 | "[-c|--continue] [-q|--quiet] [-O|--output-document file]\n" \ |
2806 | "\t[--header 'header: value'] [-Y|--proxy on/off] [-P DIR] url" | 2814 | "\t\t[--header 'header: value'] [-Y|--proxy on/off] [-P DIR] url" |
2807 | #define wget_full_usage \ | 2815 | #define wget_full_usage \ |
2808 | "wget retrieves files via HTTP or FTP\n\n" \ | 2816 | "wget retrieves files via HTTP or FTP\n\n" \ |
2809 | "Options:\n" \ | 2817 | "Options:\n" \ |