Applied patch from Gennady Feldman to split up syslogd.c into syslogd and
[oweals/busybox.git] / include / usage.h
1 #define ar_trivial_usage \
2         "-[ovR]{ptx} archive filenames"
3 #define ar_full_usage \
4         "Extract or list files from an ar archive.\n\n" \
5         "Options:\n" \
6         "\t-o\t\tpreserve original dates\n" \
7         "\t-p\t\textract to stdout\n" \
8         "\t-t\t\tlist\n" \
9         "\t-x\t\textract\n" \
10         "\t-v\t\tverbosely list files processed\n" \
11         "\t-R\t\trecursive action"
12
13 #define basename_trivial_usage \
14         "FILE [SUFFIX]"
15 #define basename_full_usage \
16         "Strips directory path and suffixes from FILE.\n" \
17         "If specified, also removes any trailing SUFFIX."
18
19 #define cat_trivial_usage \
20         "[FILE]..."
21 #define cat_full_usage \
22         "Concatenates FILE(s) and prints them to stdout."
23
24 #define chgrp_trivial_usage \
25         "[OPTION]... GROUP FILE..."
26 #define chgrp_full_usage \
27         "Change the group membership of each FILE to GROUP.\n" \
28         "\nOptions:\n" \
29         "\t-R\tChanges files and directories recursively."
30
31 #define chmod_trivial_usage \
32         "[-R] MODE[,MODE]... FILE..."
33 #define chmod_full_usage \
34         "Each MODE is one or more of the letters ugoa, one of the\n" \
35         "symbols +-= and one or more of the letters rwxst.\n\n" \
36         "Options:\n" \
37         "\t-R\tChanges files and directories recursively."
38
39 #define chown_trivial_usage \
40         "[OPTION]...  OWNER[<.|:>[GROUP] FILE..."
41 #define chown_full_usage \
42         "Change the owner and/or group of each FILE to OWNER and/or GROUP.\n" \
43         "\nOptions:\n" \
44         "\t-R\tChanges files and directories recursively."
45
46 #define chroot_trivial_usage \
47         "NEWROOT [COMMAND...]"
48 #define chroot_full_usage \
49         "Run COMMAND with root directory set to NEWROOT."
50
51 #define chvt_trivial_usage \
52         "N"
53 #define chvt_full_usage \
54         "Changes the foreground virtual terminal to /dev/ttyN"
55
56 #define clear_trivial_usage \
57         ""
58 #define clear_full_usage \
59         "Clear screen."
60
61 #define cmp_trivial_usage \
62         "FILE1 [FILE2]"
63 #define cmp_full_usage \
64         "Compare files."
65
66 #define cp_trivial_usage \
67         "[OPTION]... SOURCE DEST"
68 #define cp_full_usage \
69         "Copies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n" \
70         "\n" \
71         "\t-a\tSame as -dpR\n" \
72         "\t-d\tPreserves links\n" \
73         "\t-p\tPreserves file attributes if possible\n" \
74         "\t-f\tforce (implied; ignored) - always set\n" \
75         "\t-R\tCopies directories recursively"
76
77 #define cut_trivial_usage \
78         "[OPTION]... [FILE]..."
79 #define cut_full_usage \
80         "Prints selected fields from each input FILE to standard output.\n\n" \
81         "Options:\n" \
82         "\t-b LIST\t\tOutput only bytes from LIST\n" \
83         "\t-c LIST\t\tOutput only characters from LIST\n" \
84         "\t-d CHAR\t\tUse CHAR instead of tab as the field delimiter\n" \
85         "\t-s\t\tOutput only the lines containing delimiter\n" \
86         "\t-f N\t\tPrint only these fields\n" \
87         "\t-n\t\tIgnored"
88
89 #define date_trivial_usage \
90         "[OPTION]... [+FORMAT]"
91 #define date_full_usage \
92         "Displays the current time in the given FORMAT, or sets the system date.\n" \
93         "\nOptions:\n" \
94         "\t-R\t\tOutputs RFC-822 compliant date string\n" \
95         "\t-d STRING\tdisplay time described by STRING, not `now'\n" \
96         "\t-s\t\tSets time described by STRING\n" \
97         "\t-u\t\tPrints or sets Coordinated Universal Time"
98
99 #define dc_trivial_usage \
100         "expression ..."
101 #define dc_full_usage \
102         "This is a Tiny RPN calculator that understands the\n" \
103         "following operations: +, -, /, *, and, or, not, eor.\n" \
104         "i.e. 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16"
105
106 #define dd_trivial_usage \
107         "[if=FILE] [of=FILE] [bs=N] [count=N] [skip=N]\n" \
108         "\t  [seek=N] [conv=notrunc|sync]"
109 #define dd_full_usage \
110         "Copy a file, converting and formatting according to options\n\n" \
111         "\tif=FILE\t\tread from FILE instead of stdin\n" \
112         "\tof=FILE\t\twrite to FILE instead of stdout\n" \
113         "\tbs=N\t\tread and write N bytes at a time\n" \
114         "\tcount=N\t\tcopy only N input blocks\n" \
115         "\tskip=N\t\tskip N input blocks\n" \
116         "\tseek=N\t\tskip N output blocks\n" \
117         "\tconv=notrunc\tdon't truncate output file\n" \
118         "\tconv=sync\tpad blocks with zeros\n" \
119         "\n" \
120         "Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024),\n" \
121         "MD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)."
122
123 #define deallocvt_trivial_usage \
124         "N"
125 #define deallocvt_full_usage \
126          "Deallocate unused virtual terminal /dev/ttyN"
127
128
129 #ifdef BB_FEATURE_HUMAN_READABLE
130   #define USAGE_HUMAN_READABLE(a) a
131   #define USAGE_NOT_HUMAN_READABLE(a)
132 #else
133   #define USAGE_HUMAN_READABLE(a) 
134   #define USAGE_NOT_HUMAN_READABLE(a) a
135 #endif
136 #define df_trivial_usage \
137         "[-" USAGE_HUMAN_READABLE("hm") USAGE_NOT_HUMAN_READABLE("") "k] [filesystem ...]"
138 #define df_full_usage \
139         "Print the filesystem space used and space available.\n\n" \
140         "Options:\n" \
141         USAGE_HUMAN_READABLE( \
142         "\n\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" \
143         "\t-m\tprint sizes in megabytes\n" \
144         "\t-k\tprint sizes in kilobytes(default)") USAGE_NOT_HUMAN_READABLE( \
145         "\n\t-k\tprint sizes in kilobytes(compatability)")
146
147 #define dirname_trivial_usage \
148         "[FILENAME ...]"
149 #define dirname_full_usage \
150         "Strips non-directory suffix from FILENAME"
151
152 #define dmesg_trivial_usage \
153         "[-c] [-n LEVEL] [-s SIZE]"
154 #define dmesg_full_usage \
155         "Prints or controls the kernel ring buffer\n\n" \
156         "Options:\n" \
157         "\t-c\t\tClears the ring buffer's contents after printing\n" \
158         "\t-n LEVEL\tSets console logging level\n" \
159         "\t-s SIZE\t\tUse a buffer of size SIZE"
160
161 #define dos2unix_trivial_usage \
162         "[option] [file]"
163 #define dos2unix_full_usage \
164         "Converts a text file to/from dos format to unix format.\n\n" \
165         "Options:\n" \
166         "\t-u\toutput will be in UNIX format\n" \
167         "\t-d\toutput will be in DOS format\n\n" \
168         "- when no option is given then input format will be automaticaly detected\n" \
169         "  and converted to the oposite format on output\n" \
170         "- when no file is given, then stdin is used as input and stdout as output"
171
172 #define dpkg_trivial_usage \
173         "[-i|-r|--unpack|--configure] my.deb"
174 #define dpkg_full_usage \
175         "WORK IN PROGRESS, only usefull for debian-installer"
176
177 #define dpkg_deb_trivial_usage \
178         "[-cexX] file directory"
179 #define dpkg_deb_full_usage \
180         "Perform actions on debian packages (.debs)\n\n" \
181         "Options:\n" \
182         "\t-c\tList contents of filesystem tree (verbose)\n" \
183         "\t-l\tList contents of filesystem tree (.list format)\n" \
184         "\t-e\tExtract control files to directory\n" \
185         "\t-x\tExctract packages filesystem tree to directory\n" \
186         "\t-X\tVerbose extract"
187
188 #define du_trivial_usage \
189         "[-ls" USAGE_HUMAN_READABLE("hm") USAGE_NOT_HUMAN_READABLE("") "k] [FILE]..."
190 #define du_full_usage \
191         "Summarizes disk space used for each FILE and/or directory.\n" \
192         "Disk space is printed in units of 1024 bytes.\n\n" \
193         "Options:\n" \
194         "\t-l\tcount sizes many times if hard linked\n" \
195         "\t-s\tdisplay only a total for each argument" \
196         USAGE_HUMAN_READABLE( \
197         "\n\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" \
198         "\t-m\tprint sizes in megabytes\n" \
199         "\t-k\tprint sizes in kilobytes(default)") USAGE_NOT_HUMAN_READABLE( \
200         "\n\t-k\tprint sizes in kilobytes(compatability)")
201
202 #define dumpkmap_trivial_usage \
203         "> keymap"
204 #define dumpkmap_full_usage \
205         "Prints out a binary keyboard translation table to standard output."
206
207 #define dutmp_trivial_usage \
208         "[FILE]"
209 #define dutmp_full_usage \
210         "Dump utmp file format (pipe delimited) from FILE\n" \
211         "or stdin to stdout.  (i.e. 'dutmp /var/run/utmp')"
212
213 #define echo_trivial_usage \
214         "[-neE] [ARG ...]"
215 #define echo_full_usage \
216         "Prints the specified ARGs to stdout\n\n" \
217         "Options:\n" \
218         "\t-n\tsuppress trailing newline\n" \
219         "\t-e\tinterpret backslash-escaped characters (i.e. \\t=tab etc)\n" \
220         "\t-E\tdisable interpretation of backslash-escaped characters"
221
222 #define expr_trivial_usage \
223         "EXPRESSION"
224 #define expr_full_usage \
225         "Prints the value of EXPRESSION to standard output.\n\n" \
226         "EXPRESSION may be:\n" \
227         "\tARG1 |  ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n" \
228         "\tARG1 &  ARG2 ARG1 if neither argument is null or 0, otherwise 0\n" \
229         "\tARG1 <  ARG2 ARG1 is less than ARG2\n" \
230         "\tARG1 <= ARG2 ARG1 is less than or equal to ARG2\n" \
231         "\tARG1 =  ARG2 ARG1 is equal to ARG2\n" \
232         "\tARG1 != ARG2 ARG1 is unequal to ARG2\n" \
233         "\tARG1 >= ARG2 ARG1 is greater than or equal to ARG2\n" \
234         "\tARG1 >  ARG2 ARG1 is greater than ARG2\n" \
235         "\tARG1 +  ARG2 arithmetic sum of ARG1 and ARG2\n" \
236         "\tARG1 -  ARG2 arithmetic difference of ARG1 and ARG2\n" \
237         "\tARG1 *  ARG2 arithmetic product of ARG1 and ARG2\n" \
238         "\tARG1 /  ARG2 arithmetic quotient of ARG1 divided by ARG2\n" \
239         "\tARG1 %  ARG2 arithmetic remainder of ARG1 divided by ARG2\n" \
240         "\tSTRING : REGEXP             anchored pattern match of REGEXP in STRING\n" \
241         "\tmatch STRING REGEXP         same as STRING : REGEXP\n" \
242         "\tsubstr STRING POS LENGTH    substring of STRING, POS counted from 1\n" \
243         "\tindex STRING CHARS          index in STRING where any CHARS is found,\n" \
244         "\t                            or 0\n" \
245         "\tlength STRING               length of STRING\n" \
246         "\tquote TOKEN                 interpret TOKEN as a string, even if\n" \
247         "\t                            it is a keyword like `match' or an\n" \
248         "\t                            operator like `/'\n" \
249         "\t( EXPRESSION )              value of EXPRESSION\n\n" \
250         "Beware that many operators need to be escaped or quoted for shells.\n" \
251         "Comparisons are arithmetic if both ARGs are numbers, else\n" \
252         "lexicographical.  Pattern matches return the string matched between \n" \
253         "\\( and \\) or null; if \\( and \\) are not used, they return the number \n" \
254         "of characters matched or 0."
255
256 #define false_trivial_usage \
257         ""
258 #define false_full_usage \
259         "Return an exit code of FALSE (1)."
260
261 #define fdflush_trivial_usage \
262         "DEVICE"
263 #define fdflush_full_usage \
264         "Forces floppy disk drive to detect disk change"
265
266 #ifdef BB_FEATURE_FIND_TYPE
267   #define USAGE_FIND_TYPE(a) a
268 #else
269   #define USAGE_FIND_TYPE(a)
270 #endif
271 #ifdef BB_FEATURE_FIND_PERM
272   #define USAGE_FIND_PERM(a) a
273 #else
274   #define USAGE_FIND_PERM(a)
275 #endif
276 #ifdef BB_FEATURE_FIND_MTIME
277   #define USAGE_FIND_MTIME(a) a
278 #else
279   #define USAGE_FIND_MTIME(a)
280 #endif
281
282 #define find_trivial_usage \
283         "[PATH...] [EXPRESSION]"
284 #define find_full_usage \
285         "Search for files in a directory hierarchy.  The default PATH is\n" \
286         "the current directory; default EXPRESSION is '-print'\n" \
287         "\nEXPRESSION may consist of:\n" \
288         "\t-follow\t\tDereference symbolic links.\n" \
289         "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN." \
290         USAGE_FIND_TYPE( \
291         "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \
292 ) USAGE_FIND_PERM( \
293         "\n\t-perm PERMS\tPermissions match any of (+NNN); all of (-NNN);\n\t\t\tor exactly (NNN)" \
294 ) USAGE_FIND_MTIME( \
295         "\n\t-mtime TIME\tModified time is greater than (+N); less than (-N);\n\t\t\tor exactly (N) days")
296
297 #define free_trivial_usage \
298         ""
299 #define free_full_usage \
300         "Displays the amount of free and used system memory"
301
302 #define freeramdisk_trivial_usage \
303         "DEVICE"
304 #define freeramdisk_full_usage \
305         "Frees all memory used by the specified ramdisk."
306
307 #define fsck_minix_trivial_usage \
308         "[-larvsmf] /dev/name"
309 #define fsck_minix_full_usage \
310         "Performs a consistency check for MINIX filesystems.\n\n" \
311         "Options:\n" \
312         "\t-l\tLists all filenames\n" \
313         "\t-r\tPerform interactive repairs\n" \
314         "\t-a\tPerform automatic repairs\n" \
315         "\t-v\tverbose\n" \
316         "\t-s\tOutputs super-block information\n" \
317         "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n" \
318         "\t-f\tForce file system check."
319
320 #define getopt_trivial_usage \
321         "[OPTIONS]..."
322 #define getopt_full_usage \
323         "Parse command options\n" \
324         "\t-a, --alternative            Allow long options starting with single -\n" \
325         "\t-l, --longoptions=longopts   Long options to be recognized\n" \
326         "\t-n, --name=progname          The name under which errors are reported\n" \
327         "\t-o, --options=optstring      Short options to be recognized\n" \
328         "\t-q, --quiet                  Disable error reporting by getopt(3)\n" \
329         "\t-Q, --quiet-output           No normal output\n" \
330         "\t-s, --shell=shell            Set shell quoting conventions\n" \
331         "\t-T, --test                   Test for getopt(1) version\n" \
332         "\t-u, --unqote                 Do not quote the output"
333
334 #define grep_trivial_usage \
335         "[-ihHnqvs] pattern [files...]"
336 #define grep_full_usage \
337         "Search for PATTERN in each FILE or standard input.\n\n" \
338         "Options:\n" \
339         "\t-H\tprefix output lines with filename where match was found\n" \
340         "\t-h\tsuppress the prefixing filename on output\n" \
341         "\t-i\tignore case distinctions\n" \
342         "\t-n\tprint line number with output lines\n" \
343         "\t-q\tbe quiet. Returns 0 if result was found, 1 otherwise\n" \
344         "\t-v\tselect non-matching lines\n" \
345         "\t-s\tsuppress file open/read error messages"
346
347 #define gunzip_trivial_usage \
348         "[OPTION]... FILE"
349 #define gunzip_full_usage \
350         "Uncompress FILE (or standard input if FILE is '-').\n\n" \
351         "Options:\n" \
352         "\t-c\tWrite output to standard output\n" \
353         "\t-t\tTest compressed file integrity"
354
355 #define gzip_trivial_usage \
356         "[OPTION]... FILE"
357 #define gzip_full_usage \
358         "Compress FILE with maximum compression.\n" \
359         "When FILE is '-', reads standard input.  Implies -c.\n\n" \
360         "Options:\n" \
361         "\t-c\tWrite output to standard output instead of FILE.gz\n" \
362         "\t-d\tdecompress"
363
364 #define halt_trivial_usage \
365         ""
366 #define halt_full_usage \
367         "Halt the system."
368
369 #define head_trivial_usage \
370         "[OPTION] [FILE]..."
371 #define head_full_usage \
372         "Print first 10 lines of each FILE to standard output.\n" \
373         "With more than one FILE, precede each with a header giving the\n" \
374         "file name. With no FILE, or when FILE is -, read standard input.\n\n" \
375         "Options:\n" \
376         "\t-n NUM\t\tPrint first NUM lines instead of first 10"
377
378 #define hostid_trivial_usage \
379         ""
380 #define hostid_full_usage \
381         "Print out a unique 32-bit identifier for the machine."
382
383 #define hostname_trivial_usage \
384         "[OPTION] {hostname | -F file}"
385 #define hostname_full_usage \
386         "Get or set the hostname or DNS domain name. If a hostname is given\n" \
387         "(or a file with the -F parameter), the host name will be set.\n\n" \
388         "Options:\n" \
389         "\t-s\t\tShort\n" \
390         "\t-i\t\tAddresses for the hostname\n" \
391         "\t-d\t\tDNS domain name\n" \
392         "\t-F, --file FILE\tUse the contents of FILE to specify the hostname"
393
394 #define id_trivial_usage \
395         "[OPTIONS]... [USERNAME]"
396 #define id_full_usage \
397         "Print information for USERNAME or the current user\n\n" \
398         "Options:\n" \
399         "\t-g\tprints only the group ID\n" \
400         "\t-u\tprints only the user ID\n" \
401         "\t-n\tprint a name instead of a number (with for -ug)\n" \
402         "\t-r\tprints the real user ID instead of the effective ID (with -ug)"
403
404 #ifdef BB_FEATURE_IFCONFIG_SLIP
405   #define USAGE_SIOCSKEEPALIVE(a) a
406 #else
407   #define USAGE_SIOCSKEEPALIVE(a)
408 #endif
409 #ifdef BB_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ
410   #define USAGE_IFCONFIG_MII(a) a
411 #else
412   #define USAGE_IFCONFIG_MII(a)
413 #endif
414 #ifdef BB_FEATURE_IFCONFIG_HW
415   #define USAGE_IFCONFIG_HW(a) a
416 #else
417   #define USAGE_IFCONFIG_HW(a)
418 #endif
419 #ifdef BB_FEATURE_IFCONFIG_STATUS
420   #define USAGE_IFCONFIG_OPT_A(a) a
421 #else
422   #define USAGE_IFCONFIG_OPT_A(a)
423 #endif
424
425 #define ifconfig_trivial_usage \
426         USAGE_IFCONFIG_OPT_A("[-a]") " <interface> [<address>]"
427 #define ifconfig_full_usage \
428         "configure a network interface\n\n" \
429         "Options:\n" \
430         "\t[[-]broadcast [<address>]]  [[-]pointopoint [<address>]]\n" \
431         "\t[netmask <address>]  [dstaddr <address>]\n" \
432         USAGE_SIOCSKEEPALIVE("\t[outfill <NN>] [keepalive <NN>]\n") \
433         "\t" USAGE_IFCONFIG_HW("[hw ether <address>]  ") \
434     "[metric <NN>]  [mtu <NN>]\n" \
435         "\t[[-]trailers]  [[-]arp]  [[-]allmulti]\n" \
436         "\t[multicast]  [[-]promisc]  [txqueuelen <NN>]  [[-]dynamic]\n" \
437         USAGE_IFCONFIG_MII("\t[mem_start <NN>]  [io_addr <NN>]  [irq <NN>]\n") \
438         "\t[up|down] ..."
439
440 #define init_trivial_usage \
441         ""
442 #define init_full_usage \
443         "Init is the parent of all processes.\n\n" \
444         "This version of init is designed to be run only by the kernel."
445
446 #define insmod_trivial_usage \
447         "[OPTION]... MODULE [symbol=value]..."
448 #define insmod_full_usage \
449         "Loads the specified kernel modules into the kernel.\n\n" \
450         "Options:\n" \
451         "\t-f\tForce module to load into the wrong kernel version.\n" \
452         "\t-k\tMake module autoclean-able.\n" \
453         "\t-v\tverbose output\n"  \
454         "\t-L\tLock to prevent simultaneous loads of a module\n" \
455         "\t-x\tdo not export externs"
456
457 #define kill_trivial_usage \
458         "[-signal] process-id [process-id ...]"
459 #define kill_full_usage \
460         "Send a signal (default is SIGTERM) to the specified process(es).\n\n"\
461         "Options:\n" \
462         "\t-l\tList all signal names and numbers."
463
464 #define killall_trivial_usage \
465         "[-signal] process-name [process-name ...]"
466 #define killall_full_usage \
467         "Send a signal (default is SIGTERM) to the specified process(es).\n\n"\
468         "Options:\n" \
469         "\t-l\tList all signal names and numbers."
470
471 #define klogd_trivial_usage \
472         "-n"
473 #define klogd_full_usage \
474         "Kernel logger.\n"\
475         "Options:\n"\
476         "\t-n\tRun as a foreground process."
477
478 #define length_trivial_usage \
479         "STRING"
480 #define length_full_usage \
481         "Prints out the length of the specified STRING."
482
483 #define ln_trivial_usage \
484         "[OPTION] TARGET... LINK_NAME|DIRECTORY"
485 #define ln_full_usage \
486         "Create a link named LINK_NAME or DIRECTORY to the specified TARGET\n"\
487         "\nYou may use '--' to indicate that all following arguments are non-options.\n\n" \
488         "Options:\n" \
489         "\t-s\tmake symbolic links instead of hard links\n" \
490         "\t-f\tremove existing destination files\n" \
491         "\t-n\tno dereference symlinks - treat like normal file"
492
493 #define loadacm_trivial_usage \
494         "< mapfile"
495 #define loadacm_full_usage \
496         "Loads an acm from standard input."
497
498 #define loadfont_trivial_usage \
499         "< font"
500 #define loadfont_full_usage \
501         "Loads a console font from standard input."
502
503 #define loadkmap_trivial_usage \
504         "< keymap"
505 #define loadkmap_full_usage \
506         "Loads a binary keyboard translation table from standard input."
507
508 #define logger_trivial_usage \
509         "[OPTION]... [MESSAGE]"
510 #define logger_full_usage \
511         "Write MESSAGE to the system log.  If MESSAGE is omitted, log stdin.\n\n" \
512         "Options:\n" \
513         "\t-s\tLog to stderr as well as the system log.\n" \
514         "\t-t\tLog using the specified tag (defaults to user name).\n" \
515         "\t-p\tEnter the message with the specified priority.\n" \
516         "\t\tThis may be numerical or a ``facility.level'' pair."
517
518 #define logname_trivial_usage \
519         ""
520 #define logname_full_usage \
521         "Print the name of the current user."
522
523 #define logread_trivial_usage \
524         ""
525
526 #define logread_full_usage \
527         "Shows the messages from syslogd (using circular buffer)."
528
529 #ifdef BB_FEATURE_LS_TIMESTAMPS
530   #define USAGE_LS_TIMESTAMPS(a) a
531 #else
532   #define USAGE_LS_TIMESTAMPS(a)
533 #endif
534 #ifdef BB_FEATURE_LS_FILETYPES
535   #define USAGE_LS_FILETYPES(a) a
536 #else
537   #define USAGE_LS_FILETYPES(a)
538 #endif
539 #ifdef BB_FEATURE_LS_FOLLOWLINKS
540   #define USAGE_LS_FOLLOWLINKS(a) a
541 #else
542   #define USAGE_LS_FOLLOWLINKS(a)
543 #endif
544 #ifdef BB_FEATURE_LS_RECURSIVE
545   #define USAGE_LS_RECURSIVE(a) a
546 #else
547   #define USAGE_LS_RECURSIVE(a)
548 #endif
549 #ifdef BB_FEATURE_LS_SORTFILES
550   #define USAGE_LS_SORTFILES(a) a
551 #else
552   #define USAGE_LS_SORTFILES(a)
553 #endif
554 #ifdef BB_FEATURE_AUTOWIDTH
555   #define USAGE_AUTOWIDTH(a) a
556 #else
557   #define USAGE_AUTOWIDTH(a)
558 #endif
559 #define ls_trivial_usage \
560         "[-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] [filenames...]"
561 #define ls_full_usage \
562         "List directory contents\n\n" \
563         "Options:\n" \
564         "\t-1\tlist files in a single column\n" \
565         "\t-A\tdo not list implied . and ..\n" \
566         "\t-a\tdo not hide entries starting with .\n" \
567         "\t-C\tlist entries by columns\n" \
568         USAGE_LS_TIMESTAMPS("\t-c\twith -l: show ctime\n") \
569         "\t-d\tlist directory entries instead of contents\n" \
570         USAGE_LS_TIMESTAMPS("\t-e\tlist both full date and full time\n") \
571         USAGE_LS_FILETYPES("\t-F\tappend indicator (one of */=@|) to entries\n") \
572         "\t-i\tlist the i-node for each file\n" \
573         "\t-l\tuse a long listing format\n" \
574         "\t-n\tlist numeric UIDs and GIDs instead of names\n" \
575         USAGE_LS_FILETYPES("\t-p\tappend indicator (one of /=@|) to entries\n") \
576         USAGE_LS_FOLLOWLINKS("\t-L\tlist entries pointed to by symbolic links\n") \
577         USAGE_LS_RECURSIVE("\t-R\tlist subdirectories recursively\n") \
578         USAGE_LS_SORTFILES("\t-r\tsort the listing in reverse order\n") \
579         USAGE_LS_SORTFILES("\t-S\tsort the listing by file size\n") \
580         "\t-s\tlist the size of each file, in blocks\n" \
581         USAGE_AUTOWIDTH("\t-T NUM\tassume Tabstop every NUM columns\n") \
582         USAGE_LS_TIMESTAMPS("\t-t\twith -l: show modification time\n") \
583         USAGE_LS_TIMESTAMPS("\t-u\twith -l: show access time\n") \
584         USAGE_LS_SORTFILES("\t-v\tsort the listing by version\n") \
585         USAGE_AUTOWIDTH("\t-w NUM\tassume the terminal is NUM columns wide\n") \
586         "\t-x\tlist entries by lines instead of by columns\n" \
587         USAGE_LS_SORTFILES("\t-X\tsort the listing by extension\n") \
588         USAGE_HUMAN_READABLE( \
589         "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" \
590         "\t-k\tprint sizes in kilobytes(default)") USAGE_NOT_HUMAN_READABLE( \
591         "\t-k\tprint sizes in kilobytes(compatability)") 
592
593 #define lsmod_trivial_usage \
594         ""
595 #define lsmod_full_usage \
596         "List the currently loaded kernel modules."
597
598 #define makedevs_trivial_usage \
599         "NAME TYPE MAJOR MINOR FIRST LAST [s]"
600 #define makedevs_full_usage \
601         "Creates a range of block or character special files\n\n" \
602         "TYPEs include:\n" \
603         "\tb:\tMake a block (buffered) device.\n" \
604         "\tc or u:\tMake a character (un-buffered) device.\n" \
605         "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n\n" \
606         "FIRST specifies the number appended to NAME to create the first device.\n" \
607         "LAST specifies the number of the last item that should be created.\n" \
608         "If 's' is the last argument, the base device is created as well.\n\n" \
609         "For example:\n" \
610         "\tmakedevs /dev/ttyS c 4 66 2 63   ->  ttyS2-ttyS63\n" \
611         "\tmakedevs /dev/hda b 3 0 0 8 s    ->  hda,hda1-hda8"
612
613 #define md5sum_trivial_usage \
614         "[OPTION] [FILE]...\n" \
615         "or: md5sum [OPTION] -c [FILE]"
616 #define md5sum_full_usage \
617         "Print or check MD5 checksums.\n\n" \
618         "Options:\n" \
619         "With no FILE, or when FILE is -, read standard input.\n\n" \
620         "\t-b\tread files in binary mode\n" \
621         "\t-c\tcheck MD5 sums against given list\n" \
622         "\t-t\tread files in text mode (default)\n" \
623         "\t-g\tread a string\n" \
624         "\nThe following two options are useful only when verifying checksums:\n" \
625         "\t-s\tdon't output anything, status code shows success\n" \
626         "\t-w\twarn about improperly formated MD5 checksum lines"
627
628 #define mkdir_trivial_usage \
629         "[OPTION] DIRECTORY..."
630 #define mkdir_full_usage \
631         "Create the DIRECTORY(ies), if they do not already exist\n\n" \
632         "Options:\n" \
633         "\t-m\tset permission mode (as in chmod), not rwxrwxrwx - umask\n" \
634         "\t-p\tno error if existing, make parent directories as needed"
635
636 #define mkfifo_trivial_usage \
637         "[OPTIONS] name"
638 #define mkfifo_full_usage \
639         "Creates a named pipe (identical to 'mknod name p')\n\n" \
640         "Options:\n" \
641         "\t-m\tcreate the pipe using the specified mode (default a=rw)"
642
643 #define mkfs_minix_trivial_usage \
644         "[-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]"
645 #define mkfs_minix_full_usage \
646         "Make a MINIX filesystem.\n\n" \
647         "Options:\n" \
648         "\t-c\t\tCheck the device for bad blocks\n" \
649         "\t-n [14|30]\tSpecify the maximum length of filenames\n" \
650         "\t-i INODES\tSpecify the number of inodes for the filesystem\n" \
651         "\t-l FILENAME\tRead the bad blocks list from FILENAME\n" \
652         "\t-v\t\tMake a Minix version 2 filesystem"
653
654 #define mknod_trivial_usage \
655         "[OPTIONS] NAME TYPE MAJOR MINOR"
656 #define mknod_full_usage \
657         "Create a special file (block, character, or pipe).\n\n" \
658         "Options:\n" \
659         "\t-m\tcreate the special file using the specified mode (default a=rw)\n\n" \
660         "TYPEs include:\n" \
661         "\tb:\tMake a block (buffered) device.\n" \
662         "\tc or u:\tMake a character (un-buffered) device.\n" \
663         "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes."
664
665 #define mkswap_trivial_usage \
666         "[-c] [-v0|-v1] device [block-count]"
667 #define mkswap_full_usage \
668         "Prepare a disk partition to be used as a swap partition.\n\n" \
669         "Options:\n" \
670         "\t-c\t\tCheck for read-ability.\n" \
671         "\t-v0\t\tMake version 0 swap [max 128 Megs].\n" \
672         "\t-v1\t\tMake version 1 swap [big!] (default for kernels >\n\t\t\t2.1.117).\n" \
673         "\tblock-count\tNumber of block to use (default is entire partition)."
674
675 #define mktemp_trivial_usage \
676         "[-q] TEMPLATE"
677 #define mktemp_full_usage \
678         "Creates a temporary file with its name based on TEMPLATE.\n" \
679         "TEMPLATE is any name with six `Xs' (i.e. /tmp/temp.XXXXXX)."
680
681 #define more_trivial_usage \
682         "[FILE ...]"
683 #define more_full_usage \
684         "More is a filter for viewing FILE one screenful at a time."
685
686 #ifdef BB_FEATURE_MOUNT_LOOP
687   #define USAGE_MOUNT_LOOP(a) a
688 #else
689   #define USAGE_MOUNT_LOOP(a)
690 #endif
691 #ifdef BB_MTAB
692   #define USAGE_MTAB(a) a
693 #else
694   #define USAGE_MTAB(a)
695 #endif
696 #define mount_trivial_usage \
697         "[flags] device directory [-o options,more-options]"
698 #define mount_full_usage \
699         "Mount a filesystem\n\n" \
700         "Flags:\n"  \
701         "\t-a:\t\tMount all filesystems in fstab.\n" \
702         USAGE_MTAB( \
703         "\t-f:\t\t\"Fake\" Add entry to mount table but don't mount it.\n" \
704         "\t-n:\t\tDon't write a mount table entry.\n" \
705         ) \
706         "\t-o option:\tOne of many filesystem options, listed below.\n" \
707         "\t-r:\t\tMount the filesystem read-only.\n" \
708         "\t-t fs-type:\tSpecify the filesystem type.\n" \
709         "\t-w:\t\tMount for reading and writing (default).\n" \
710         "\n" \
711         "Options for use with the \"-o\" flag:\n" \
712         "\tasync/sync:\tWrites are asynchronous / synchronous.\n" \
713         "\tatime/noatime:\tEnable / disable updates to inode access times.\n" \
714         "\tdev/nodev:\tAllow use of special device files / disallow them.\n" \
715         "\texec/noexec:\tAllow use of executable files / disallow them.\n" \
716         USAGE_MOUNT_LOOP( \
717         "\tloop:\t\tMounts a file via loop device.\n" \
718         ) \
719         "\tsuid/nosuid:\tAllow set-user-id-root programs / disallow them.\n" \
720         "\tremount:\tRe-mount a mounted filesystem, changing its flags.\n" \
721         "\tro/rw:\t\tMount for read-only / read-write.\n" \
722         "\nThere are EVEN MORE flags that are specific to each filesystem.\n" \
723         "You'll have to see the written documentation for those."
724
725 #define mt_trivial_usage \
726         "[-f device] opcode value"
727 #define mt_full_usage \
728         "Control magnetic tape drive operation\n" \
729         "\nAvailable Opcodes:\n\n" \
730         "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n" \
731         "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n" \
732         "ras3 reset retension rew rewoffline seek setblk setdensity\n" \
733         "setpart tell unload unlock weof wset"
734
735 #define mv_trivial_usage \
736         "SOURCE DEST\n" \
737         "or: mv SOURCE... DIRECTORY"
738 #define mv_full_usage \
739         "Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY."
740
741 #define nc_trivial_usage \
742         "[IP] [port]" 
743 #define nc_full_usage \
744         "Netcat opens a pipe to IP:port"
745
746 #define nslookup_trivial_usage \
747         "[HOST]"
748 #define nslookup_full_usage \
749         "Queries the nameserver for the IP address of the given HOST"
750
751 #ifdef BB_FEATURE_SIMPLE_PING
752 #define ping_trivial_usage "host"
753 #define ping_full_usage    "Send ICMP ECHO_REQUEST packets to network hosts"
754 #else
755 #define ping_trivial_usage \
756         "[OPTION]... host"
757 #define ping_full_usage \
758         "Send ICMP ECHO_REQUEST packets to network hosts.\n\n" \
759         "Options:\n" \
760         "\t-c COUNT\tSend only COUNT pings.\n" \
761         "\t-s SIZE\t\tSend SIZE data bytes in packets (default=56).\n" \
762         "\t-q\t\tQuiet mode, only displays output at start\n" \
763         "\t\t\tand when finished."
764 #endif
765
766 #define pivot_root_trivial_usage \
767         "new_root put_old"
768 #define pivot_root_full_usage \
769         "Move the current root file system to put_old and make new_root\n" \
770         "the new root file system."
771
772 #define poweroff_trivial_usage \
773         ""
774 #define poweroff_full_usage \
775         "Halt the system and request that the kernel shut off the power."
776
777 #define printf_trivial_usage \
778         "FORMAT [ARGUMENT...]"
779 #define printf_full_usage \
780         "Formats and prints ARGUMENT(s) according to FORMAT,\n" \
781         "Where FORMAT controls the output exactly as in C printf."
782
783 #define ps_trivial_usage \
784         ""
785 #define ps_full_usage \
786         "Report process status\n" \
787         "\nThis version of ps accepts no options."
788
789 #define pwd_trivial_usage \
790         ""
791 #define pwd_full_usage \
792         "Print the full filename of the current working directory."
793
794 #define rdate_trivial_usage \
795         "[OPTION] HOST"
796 #define rdate_full_usage \
797         "Get and possibly set the system date and time from a remote HOST.\n\n" \
798         "Options:\n" \
799         "\t-s\tSet the system date and time (default).\n" \
800         "\t-p\tPrint the date and time."
801
802 #define readlink_trivial_usage \
803         ""
804 #define readlink_full_usage \
805         "Read a symbolic link."
806
807 #define reboot_trivial_usage \
808         ""
809 #define reboot_full_usage \
810         "Reboot the system."
811
812 #define renice_trivial_usage \
813         "priority pid [pid ...]"
814 #define renice_full_usage \
815         "Changes priority of running processes. Allowed priorities range\n" \
816         "from 20 (the process runs only when nothing else is running) to 0\n" \
817         "(default priority) to -20 (almost nothing else ever gets to run)."
818
819 #define reset_trivial_usage \
820         ""
821 #define reset_full_usage \
822         "Resets the screen."
823
824 #define rm_trivial_usage \
825         "[OPTION]... FILE..."
826 #define rm_full_usage \
827         "Remove (unlink) the FILE(s).  You may use '--' to\n" \
828         "indicate that all following arguments are non-options.\n\n" \
829         "Options:\n" \
830         "\t-f\t\tremove existing destinations, never prompt\n" \
831         "\t-r or -R\tremove the contents of directories recursively"
832
833 #define rmdir_trivial_usage \
834         "[OPTION]... DIRECTORY..."
835 #define rmdir_full_usage \
836         "Remove the DIRECTORY(ies), if they are empty."
837
838 #define rmmod_trivial_usage \
839         "[OPTION]... [MODULE]..."
840 #define rmmod_full_usage \
841         "Unloads the specified kernel modules from the kernel.\n\n" \
842         "Options:\n" \
843         "\t-a\tTry to remove all unused kernel modules."
844
845 #define route_trivial_usage \
846         "[{add|del|flush}]"
847 #define route_full_usage \
848         "Edit the kernel's routing tables"
849
850 #define rpmunpack_trivial_usage \
851         "< package.rpm | gunzip | cpio -idmuv"
852 #define rpmunpack_full_usage \
853         "Extracts an rpm archive."
854
855 #define sed_trivial_usage \
856         "[-Vhnef] pattern [files...]"
857 #define sed_full_usage \
858         "Options:\n" \
859         "\t-n\t\tsuppress automatic printing of pattern space\n" \
860         "\t-e script\tadd the script to the commands to be executed\n" \
861         "\t-f scriptfile\tadd the contents of script-file to the commands to be executed\n" \
862         "\t-h\t\tdisplay this help message\n" \
863         "\n" \
864         "If no -e or -f is given, the first non-option argument is taken as the\n" \
865         "sed script to interpret. All remaining arguments are names of input\n" \
866         "files; if no input files are specified, then the standard input is read."
867
868 #define setkeycodes_trivial_usage \
869         "SCANCODE KEYCODE ..."
870 #define setkeycodes_full_usage \
871         "Set entries into the kernel's scancode-to-keycode map,\n" \
872         "allowing unusual keyboards to generate usable keycodes.\n\n" \
873         "SCANCODE may be either xx or e0xx (hexadecimal),\n" \
874         "and KEYCODE is given in decimal"
875
876 #define sh_trivial_usage \
877         "[FILE]...\n" \
878         "or: sh -c command [args]..."
879 #define sh_full_usage \
880         "lash: The BusyBox command interpreter (shell)."
881
882 #define sleep_trivial_usage \
883         "N"
884 #define sleep_full_usage \
885         "Pause for N seconds."
886
887
888 #ifdef BB_FEATURE_SORT_REVERSE
889   #define USAGE_SORT_REVERSE(a) a
890 #else
891   #define USAGE_SORT_REVERSE(a)
892 #endif
893 #define sort_trivial_usage \
894         "[-n]" USAGE_SORT_REVERSE(" [-r]") " [FILE]..."
895 #define sort_full_usage \
896         "Sorts lines of text in the specified files"
897
898 #define stty_trivial_usage \
899         "[-a|g] [-F device] [SETTING]..."
900 #define stty_full_usage \
901         "Without arguments, prints baud rate, line discipline," \
902         "\nand deviations from stty sane." \
903         "\n\nOptions:" \
904         "\n\t-F device\topen device instead of stdin" \
905         "\n\t-a\t\tprint all current settings in human-readable form" \
906         "\n\t-g\t\tprint in stty-readable form" \
907         "\n\t[SETTING]\tsee documentation"
908
909 #define swapoff_trivial_usage \
910         "[OPTION] [device]"
911 #define swapoff_full_usage \
912         "Stop swapping virtual memory pages on the given device.\n\n" \
913         "Options:\n" \
914         "\t-a\tStop swapping on all swap devices"
915
916 #define swapon_trivial_usage \
917         "[OPTION] [device]"
918 #define swapon_full_usage \
919         "Start swapping virtual memory pages on the given device.\n\n" \
920         "Options:\n" \
921         "\t-a\tStart swapping on all swap devices"
922
923 #define sync_trivial_usage \
924         ""
925 #define sync_full_usage \
926         "Write all buffered filesystem blocks to disk."
927
928
929 #ifdef BB_FEATURE_REMOTE_LOG
930   #define USAGE_REMOTE_LOG(a) a
931 #else
932   #define USAGE_REMOTE_LOG(a)
933 #endif
934 #define syslogd_trivial_usage \
935         "[OPTION]..."
936 #define syslogd_full_usage \
937         "Linux system and kernel logging utility.\n" \
938         "Note that this version of syslogd ignores /etc/syslog.conf.\n\n" \
939         "Options:\n" \
940         "\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n" \
941         "\t-n\t\tRun as a foreground process\n" \
942         "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)" \
943         USAGE_REMOTE_LOG( \
944         "\n\t-R HOST[:PORT]\tLog to IP or hostname on PORT (default PORT=514/UDP)\n" \
945         "\t-L\t\tLog locally and via network logging (default is network only)")
946
947
948 #ifdef BB_FEATURE_SIMPLE_TAIL
949   #define USAGE_UNSIMPLE_TAIL(a)
950 #else
951   #define USAGE_UNSIMPLE_TAIL(a) a
952 #endif
953 #define tail_trivial_usage \
954         "[OPTION]... [FILE]..."
955 #define tail_full_usage \
956         "Print last 10 lines of each FILE to standard output.\n" \
957         "With more than one FILE, precede each with a header giving the\n" \
958         "file name. With no FILE, or when FILE is -, read standard input.\n\n" \
959         "Options:\n" \
960         USAGE_UNSIMPLE_TAIL("\t-c N[kbm]\toutput the last N bytes\n") \
961         "\t-n N[kbm]\tprint last N lines instead of last 10\n" \
962         "\t-f\t\toutput data as the file grows" \
963         USAGE_UNSIMPLE_TAIL( \
964         "\n\t-q\t\tnever output headers giving file names\n" \
965         "\t-s SEC\t\twait SEC seconds between reads with -f\n" \
966         "\t-v\t\talways output headers giving file names\n\n" \
967         "If the first character of N (bytes or lines) is a `+', output begins with \n" \
968         "the Nth item from the start of each file, otherwise, print the last N items\n" \
969         "in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2)." \
970         )
971
972 #ifdef BB_FEATURE_TAR_CREATE
973   #define USAGE_TAR_CREATE(a) a
974 #else
975   #define USAGE_TAR_CREATE(a)
976 #endif
977 #ifdef BB_FEATURE_TAR_EXCLUDE
978   #define USAGE_TAR_EXCLUDE(a) a
979 #else
980   #define USAGE_TAR_EXCLUDE(a)
981 #endif
982 #define tar_trivial_usage \
983         "-[" USAGE_TAR_CREATE("c") "xtvO] " \
984         USAGE_TAR_EXCLUDE("[--exclude File] [-X File]") \
985         "[-f tarFile] [FILE(s)] ..."
986 #define tar_full_usage \
987         "Create, extract, or list files from a tar file.\n\n" \
988         "Main operation mode:\n" \
989         USAGE_TAR_CREATE("\tc\t\tcreate\n") \
990         "\tx\t\textract\n" \
991         "\tt\t\tlist\n" \
992         "\nFile selection:\n" \
993         "\tf\t\tname of tarfile or \"-\" for stdin\n" \
994         "\tO\t\textract to stdout\n" \
995         USAGE_TAR_EXCLUDE( \
996         "\texclude\t\tfile to exclude\n" \
997          "\tX\t\tfile with names to exclude\n" \
998         ) \
999         "\nInformative output:\n" \
1000         "\tv\t\tverbosely list files processed"
1001
1002 #define tee_trivial_usage \
1003         "[OPTION]... [FILE]..."
1004 #define tee_full_usage \
1005         "Copy standard input to each FILE, and also to standard output.\n\n" \
1006         "Options:\n" \
1007         "\t-a\tappend to the given FILEs, do not overwrite"
1008
1009 #define telnet_trivial_usage \
1010         "host [port]"
1011 #define telnet_full_usage \
1012         "Telnet is used to establish interactive communication with another\n"\
1013         "computer over a network using the TELNET protocol."
1014
1015 #define test_trivial_usage \
1016         "EXPRESSION\n  or   [ EXPRESSION ]"
1017 #define test_full_usage \
1018         "Checks file types and compares values returning an exit\n" \
1019         "code determined by the value of EXPRESSION."
1020
1021 #ifdef BB_FEATURE_TFTP_GET
1022   #define USAGE_TFTP_GET(a) a
1023 #else
1024   #define USAGE_TFTP_GET(a)
1025 #endif
1026 #ifdef BB_FEATURE_TFTP_PUT
1027   #define USAGE_TFTP_PUT(a) a
1028 #else
1029   #define USAGE_TFTP_PUT(a)
1030 #endif
1031
1032 #define tftp_trivial_usage \
1033         "command SOURCE DEST"
1034 #define tftp_full_usage \
1035         "Transfers a file from/to a tftp server using \"octet\" mode.\n\n" \
1036         "Commands:\n" \
1037         USAGE_TFTP_GET( \
1038         "\tget\tGet file from server SOURCE and store to local DEST.\n" \
1039         ) \
1040         USAGE_TFTP_PUT( \
1041         "\tput\tPut local file SOURCE to server DEST.\n" \
1042         ) \
1043         "\nWhen nameing a server, use the syntax \"server:file\"."
1044
1045 #define touch_trivial_usage \
1046         "[-c] file [file ...]"
1047 #define touch_full_usage \
1048         "Update the last-modified date on the given file[s].\n\n" \
1049         "Options:\n" \
1050         "\t-c\tDo not create any files"
1051
1052 #define tr_trivial_usage \
1053         "[-cds] STRING1 [STRING2]"
1054 #define tr_full_usage \
1055         "Translate, squeeze, and/or delete characters from\n" \
1056         "standard input, writing to standard output.\n\n" \
1057         "Options:\n" \
1058         "\t-c\ttake complement of STRING1\n" \
1059         "\t-d\tdelete input characters coded STRING1\n" \
1060         "\t-s\tsqueeze multiple output characters of STRING2 into one character"
1061
1062 #define true_trivial_usage \
1063         ""
1064 #define true_full_usage \
1065         "Return an exit code of TRUE (0)."
1066
1067 #define tty_trivial_usage \
1068         ""
1069 #define tty_full_usage \
1070         "Print the file name of the terminal connected to standard input.\n\n"\
1071         "Options:\n" \
1072         "\t-s\tprint nothing, only return an exit status"
1073
1074 #ifdef BB_FEATURE_MOUNT_FORCE
1075   #define USAGE_MOUNT_FORCE(a) a
1076 #else
1077   #define USAGE_MOUNT_FORCE(a)
1078 #endif
1079 #define umount_trivial_usage \
1080         "[flags] filesystem|directory"
1081 #define umount_full_usage \
1082         "Unmount file systems\n" \
1083         "\nFlags:\n" "\t-a:\tUnmount all file systems" \
1084         USAGE_MTAB(" in /etc/mtab\n\t-n:\tDon't erase /etc/mtab entries") \
1085         "\n\t-r:\tTry to remount devices as read-only if mount is busy" \
1086         USAGE_MOUNT_FORCE("\n\t-f:\tForce filesystem umount (i.e. unreachable NFS server)") \
1087         USAGE_MOUNT_LOOP("\n\t-l:\tDo not free loop device (if a loop device has been used)")
1088
1089 #define uname_trivial_usage \
1090         "[OPTION]..."
1091 #define uname_full_usage \
1092         "Print certain system information.  With no OPTION, same as -s.\n\n" \
1093         "Options:\n" \
1094         "\t-a\tprint all information\n" \
1095         "\t-m\tthe machine (hardware) type\n" \
1096         "\t-n\tprint the machine's network node hostname\n" \
1097         "\t-r\tprint the operating system release\n" \
1098         "\t-s\tprint the operating system name\n" \
1099         "\t-p\tprint the host processor type\n" \
1100         "\t-v\tprint the operating system version"
1101
1102 #define uniq_trivial_usage \
1103         "[OPTION]... [INPUT [OUTPUT]]"
1104 #define uniq_full_usage \
1105         "Discard all but one of successive identical lines from INPUT\n" \
1106         "(or standard input), writing to OUTPUT (or standard output).\n\n" \
1107         "Options:\n" \
1108         "\t-c\tprefix lines by the number of occurrences\n" \
1109         "\t-d\tonly print duplicate lines\n" \
1110         "\t-u\tonly print unique lines"
1111
1112 #define unix2dos_trivial_usage \
1113         "[option] [file]"
1114 #define unix2dos_full_usage \
1115         "See 'dos2unix --help' for help!"
1116
1117 #define update_trivial_usage \
1118         "[options]"
1119 #define update_full_usage \
1120         "Periodically flushes filesystem buffers.\n\n" \
1121         "Options:\n" \
1122         "\t-S\tforce use of sync(2) instead of flushing\n" \
1123         "\t-s SECS\tcall sync this often (default 30)\n" \
1124         "\t-f SECS\tflush some buffers this often (default 5)"
1125
1126 #define uptime_trivial_usage \
1127         ""
1128 #define uptime_full_usage \
1129         "Display the time since the last boot."
1130
1131 #define usleep_trivial_usage \
1132         "N" 
1133 #define usleep_full_usage \
1134         "Pause for N microseconds."
1135
1136 #define uudecode_trivial_usage \
1137         "[FILE]..."
1138 #define uudecode_full_usage \
1139         "Uudecode a file that is uuencoded.\n\n" \
1140         "Options:\n" \
1141         "\t-o FILE\tdirect output to FILE" \
1142
1143 #define uuencode_trivial_usage \
1144         "[OPTION] [INFILE] REMOTEFILE"
1145 #define uuencode_full_usage \
1146         "Uuencode a file.\n\n" \
1147         "Options:\n" \
1148         "\t-m\tuse base64 encoding as of RFC1521"
1149
1150 #define watchdog_trivial_usage \
1151         "DEV"
1152 #define watchdog_full_usage \
1153         "Periodically write to watchdog device DEV"
1154
1155 #define wc_trivial_usage \
1156         "[OPTION]... [FILE]..."
1157 #define wc_full_usage \
1158         "Print line, word, and byte counts for each FILE, and a total line if\n" \
1159         "more than one FILE is specified.  With no FILE, read standard input.\n\n" \
1160         "Options:\n" \
1161         "\t-c\tprint the byte counts\n" \
1162         "\t-l\tprint the newline counts\n" \
1163         "\t-L\tprint the length of the longest line\n" \
1164         "\t-w\tprint the word counts"
1165
1166 #define wget_trivial_usage \
1167         "[-c] [-O file] url"
1168 #define wget_full_usage \
1169         "wget retrieves files via HTTP\n\n" \
1170         "Options:\n" \
1171         "\t-c\tcontinue retrieval of aborted transfers\n" \
1172         "\t-O\tsave to filename ('-' for stdout)"
1173
1174 #define which_trivial_usage \
1175         "[COMMAND ...]"
1176 #define which_full_usage \
1177         "Locates a COMMAND."
1178
1179 #define whoami_trivial_usage \
1180         ""
1181 #define whoami_full_usage \
1182         "Prints the user name associated with the current effective user id."
1183
1184 #define xargs_trivial_usage \
1185         "[COMMAND] [ARGS...]"
1186 #define xargs_full_usage \
1187         "Executes COMMAND on every item given by standard input."
1188
1189 #define yes_trivial_usage \
1190         "[OPTION]... [STRING]..."
1191 #define yes_full_usage \
1192         "Repeatedly outputs a line with all specified STRING(s), or `y'."
1193
1194 #define zcat_trivial_usage \
1195         "FILE"
1196 #define zcat_full_usage \
1197         "Uncompress to stdout."