move help text from include/usage.src.h to archival/*.c
[platform/upstream/busybox.git] / include / usage.src.h
1 /* vi: set sw=8 ts=8: */
2 /*
3  * This file suffers from chronically incorrect tabification
4  * of messages. Before editing this file:
5  * 1. Switch you editor to 8-space tab mode.
6  * 2. Do not use \t in messages, use real tab character.
7  * 3. Start each source line with message as follows:
8  *    |<7 spaces>"text with tabs"....
9  * or
10  *    |<5 spaces>"\ntext with tabs"....
11  */
12 #ifndef BB_USAGE_H
13 #define BB_USAGE_H 1
14
15
16 #define NOUSAGE_STR "\b"
17
18 INSERT
19
20 #define acpid_trivial_usage \
21        "[-d] [-c CONFDIR] [-l LOGFILE] [-a ACTIONFILE] [-M MAPFILE] [-e PROC_EVENT_FILE] [-p PIDFILE]"
22 #define acpid_full_usage "\n\n" \
23        "Listen to ACPI events and spawn specific helpers on event arrival\n" \
24      "\nOptions:" \
25      "\n        -c DIR  Config directory [/etc/acpi]" \
26      "\n        -d      Don't daemonize, (implies -f)" \
27      "\n        -e FILE /proc event file [/proc/acpi/event]" \
28      "\n        -f      Run in foreground" \
29      "\n        -l FILE Log file [/var/log/acpid.log]" \
30      "\n        -p FILE Pid file [/var/run/acpid.pid]" \
31      "\n        -a FILE Action file [/etc/acpid.conf]" \
32      "\n        -M FILE Map file [/etc/acpi.map]" \
33         IF_FEATURE_ACPID_COMPAT( \
34      "\n\nAccept and ignore compatibility options -g -m -s -S -v" \
35         )
36
37 #define acpid_example_usage \
38        "Without -e option, acpid uses all /dev/input/event* files\n" \
39        "# acpid\n" \
40        "# acpid -l /var/log/my-acpi-log\n" \
41        "# acpid -e /proc/acpi/event\n"
42
43 #define addgroup_trivial_usage \
44        "[-g GID] " IF_FEATURE_ADDUSER_TO_GROUP("[USER] ") "GROUP"
45 #define addgroup_full_usage "\n\n" \
46        "Add a group " IF_FEATURE_ADDUSER_TO_GROUP("or add a user to a group") "\n" \
47      "\nOptions:" \
48      "\n        -g GID  Group id" \
49      "\n        -S      Create a system group" \
50
51 #define adduser_trivial_usage \
52        "[OPTIONS] USER"
53 #define adduser_full_usage "\n\n" \
54        "Add a user\n" \
55      "\nOptions:" \
56      "\n        -h DIR          Home directory" \
57      "\n        -g GECOS        GECOS field" \
58      "\n        -s SHELL        Login shell" \
59      "\n        -G GRP          Add user to existing group" \
60      "\n        -S              Create a system user" \
61      "\n        -D              Don't assign a password" \
62      "\n        -H              Don't create home directory" \
63      "\n        -u UID          User id" \
64
65 #define adjtimex_trivial_usage \
66        "[-q] [-o OFF] [-f FREQ] [-p TCONST] [-t TICK]"
67 #define adjtimex_full_usage "\n\n" \
68        "Read and optionally set system timebase parameters. See adjtimex(2)\n" \
69      "\nOptions:" \
70      "\n        -q      Quiet" \
71      "\n        -o OFF  Time offset, microseconds" \
72      "\n        -f FREQ Frequency adjust, integer kernel units (65536 is 1ppm)" \
73      "\n                (positive values make clock run faster)" \
74      "\n        -t TICK Microseconds per tick, usually 10000" \
75      "\n        -p TCONST" \
76
77 #define arp_trivial_usage \
78      "\n[-vn]   [-H HWTYPE] [-i IF] -a [HOSTNAME]" \
79      "\n[-v]                [-i IF] -d HOSTNAME [pub]" \
80      "\n[-v]    [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [temp]" \
81      "\n[-v]    [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [netmask MASK] pub" \
82      "\n[-v]    [-H HWTYPE] [-i IF] -Ds HOSTNAME IFACE [netmask MASK] pub"
83 #define arp_full_usage "\n\n" \
84        "Manipulate ARP cache\n" \
85      "\nOptions:" \
86        "\n      -a              Display (all) hosts" \
87        "\n      -s              Set new ARP entry" \
88        "\n      -d              Delete a specified entry" \
89        "\n      -v              Verbose" \
90        "\n      -n              Don't resolve names" \
91        "\n      -i IF           Network interface" \
92        "\n      -D              Read <hwaddr> from given device" \
93        "\n      -A,-p AF        Protocol family" \
94        "\n      -H HWTYPE       Hardware address type" \
95
96 #define arping_trivial_usage \
97        "[-fqbDUA] [-c CNT] [-w TIMEOUT] [-I IFACE] [-s SRC_IP] DST_IP"
98 #define arping_full_usage "\n\n" \
99        "Send ARP requests/replies\n" \
100      "\nOptions:" \
101      "\n        -f              Quit on first ARP reply" \
102      "\n        -q              Quiet" \
103      "\n        -b              Keep broadcasting, don't go unicast" \
104      "\n        -D              Duplicated address detection mode" \
105      "\n        -U              Unsolicited ARP mode, update your neighbors" \
106      "\n        -A              ARP answer mode, update your neighbors" \
107      "\n        -c N            Stop after sending N ARP requests" \
108      "\n        -w TIMEOUT      Time to wait for ARP reply, seconds" \
109      "\n        -I IFACE        Interface to use (default eth0)" \
110      "\n        -s SRC_IP       Sender IP address" \
111      "\n        DST_IP          Target IP address" \
112
113 #define awk_trivial_usage \
114        "[OPTIONS] [AWK_PROGRAM] [FILE]..."
115 #define awk_full_usage "\n\n" \
116        "Options:" \
117      "\n        -v VAR=VAL      Set variable" \
118      "\n        -F SEP          Use SEP as field separator" \
119      "\n        -f FILE         Read program from FILE" \
120
121 #define basename_trivial_usage \
122        "FILE [SUFFIX]"
123 #define basename_full_usage "\n\n" \
124        "Strip directory path and .SUFFIX from FILE\n"
125 #define basename_example_usage \
126        "$ basename /usr/local/bin/foo\n" \
127        "foo\n" \
128        "$ basename /usr/local/bin/\n" \
129        "bin\n" \
130        "$ basename /foo/bar.txt .txt\n" \
131        "bar"
132
133 #define beep_trivial_usage \
134        "-f FREQ -l LEN -d DELAY -r COUNT -n"
135 #define beep_full_usage "\n\n" \
136        "Options:" \
137      "\n        -f      Frequency in Hz" \
138      "\n        -l      Length in ms" \
139      "\n        -d      Delay in ms" \
140      "\n        -r      Repetitions" \
141      "\n        -n      Start new tone" \
142
143 #define blkid_trivial_usage \
144        ""
145 #define blkid_full_usage "\n\n" \
146        "Print UUIDs of all filesystems"
147
148 #define brctl_trivial_usage \
149        "COMMAND [BRIDGE [INTERFACE]]"
150 #define brctl_full_usage "\n\n" \
151        "Manage ethernet bridges\n" \
152      "\nCommands:" \
153         IF_FEATURE_BRCTL_SHOW( \
154      "\n        show                    Show a list of bridges" \
155         ) \
156      "\n        addbr BRIDGE            Create BRIDGE" \
157      "\n        delbr BRIDGE            Delete BRIDGE" \
158      "\n        addif BRIDGE IFACE      Add IFACE to BRIDGE" \
159      "\n        delif BRIDGE IFACE      Delete IFACE from BRIDGE" \
160         IF_FEATURE_BRCTL_FANCY( \
161      "\n        setageing BRIDGE TIME           Set ageing time" \
162      "\n        setfd BRIDGE TIME               Set bridge forward delay" \
163      "\n        sethello BRIDGE TIME            Set hello time" \
164      "\n        setmaxage BRIDGE TIME           Set max message age" \
165      "\n        setpathcost BRIDGE COST         Set path cost" \
166      "\n        setportprio BRIDGE PRIO         Set port priority" \
167      "\n        setbridgeprio BRIDGE PRIO       Set bridge priority" \
168      "\n        stp BRIDGE [1/yes/on|0/no/off]  STP on/off" \
169         ) \
170
171 #define busybox_notes_usage \
172        "Hello world!\n"
173
174 #define cal_trivial_usage \
175        "[-jy] [[MONTH] YEAR]"
176 #define cal_full_usage "\n\n" \
177        "Display a calendar\n" \
178      "\nOptions:" \
179      "\n        -j      Use julian dates" \
180      "\n        -y      Display the entire year" \
181
182 #define cat_trivial_usage \
183        "[FILE]..."
184 #define cat_full_usage "\n\n" \
185        "Concatenate FILEs and print them to stdout" \
186
187 #define cat_example_usage \
188        "$ cat /proc/uptime\n" \
189        "110716.72 17.67"
190
191 #define catv_trivial_usage \
192        "[-etv] [FILE]..."
193 #define catv_full_usage "\n\n" \
194        "Display nonprinting characters as ^x or M-x\n" \
195      "\nOptions:" \
196      "\n        -e      End each line with $" \
197      "\n        -t      Show tabs as ^I" \
198      "\n        -v      Don't use ^x or M-x escapes" \
199
200 #define chat_trivial_usage \
201        "EXPECT [SEND [EXPECT [SEND...]]]"
202 #define chat_full_usage "\n\n" \
203        "Useful for interacting with a modem connected to stdin/stdout.\n" \
204        "A script consists of one or more \"expect-send\" pairs of strings,\n" \
205        "each pair is a pair of arguments. Example:\n" \
206        "chat '' ATZ OK ATD123456 CONNECT '' ogin: pppuser word: ppppass '~'" \
207
208 #define chattr_trivial_usage \
209        "[-R] [-+=AacDdijsStTu] [-v VERSION] [FILE]..."
210 #define chattr_full_usage "\n\n" \
211        "Change file attributes on an ext2 fs\n" \
212      "\nModifiers:" \
213      "\n        -       Remove attributes" \
214      "\n        +       Add attributes" \
215      "\n        =       Set attributes" \
216      "\nAttributes:" \
217      "\n        A       Don't track atime" \
218      "\n        a       Append mode only" \
219      "\n        c       Enable compress" \
220      "\n        D       Write dir contents synchronously" \
221      "\n        d       Don't backup with dump" \
222      "\n        i       Cannot be modified (immutable)" \
223      "\n        j       Write all data to journal first" \
224      "\n        s       Zero disk storage when deleted" \
225      "\n        S       Write file contents synchronously" \
226      "\n        t       Disable tail-merging of partial blocks with other files" \
227      "\n        u       Allow file to be undeleted" \
228      "\nOptions:" \
229      "\n        -R      Recurse" \
230      "\n        -v      Set the file's version/generation number" \
231
232 #define chcon_trivial_usage \
233        "[OPTIONS] CONTEXT FILE..." \
234        "\n      chcon [OPTIONS] [-u USER] [-r ROLE] [-l RANGE] [-t TYPE] FILE..." \
235         IF_FEATURE_CHCON_LONG_OPTIONS( \
236        "\n      chcon [OPTIONS] --reference=RFILE FILE..." \
237         )
238 #define chcon_full_usage "\n\n" \
239        "Change the security context of each FILE to CONTEXT\n" \
240         IF_FEATURE_CHCON_LONG_OPTIONS( \
241      "\n        -v,--verbose            Verbose" \
242      "\n        -c,--changes            Report changes made" \
243      "\n        -h,--no-dereference     Affect symlinks instead of their targets" \
244      "\n        -f,--silent,--quiet     Suppress most error messages" \
245      "\n        --reference=RFILE       Use RFILE's group instead of using a CONTEXT value" \
246      "\n        -u,--user=USER          Set user/role/type/range in the target" \
247      "\n        -r,--role=ROLE          security context" \
248      "\n        -t,--type=TYPE" \
249      "\n        -l,--range=RANGE" \
250      "\n        -R,--recursive          Recurse" \
251         ) \
252         IF_NOT_FEATURE_CHCON_LONG_OPTIONS( \
253      "\n        -v      Verbose" \
254      "\n        -c      Report changes made" \
255      "\n        -h      Affect symlinks instead of their targets" \
256      "\n        -f      Suppress most error messages" \
257      "\n        -u USER Set user/role/type/range in the target security context" \
258      "\n        -r ROLE" \
259      "\n        -t TYPE" \
260      "\n        -l RNG" \
261      "\n        -R      Recurse" \
262         )
263
264 #define chmod_trivial_usage \
265        "[-R"IF_DESKTOP("cvf")"] MODE[,MODE]... FILE..."
266 #define chmod_full_usage "\n\n" \
267        "Each MODE is one or more of the letters ugoa, one of the\n" \
268        "symbols +-= and one or more of the letters rwxst\n" \
269      "\nOptions:" \
270      "\n        -R      Recurse" \
271         IF_DESKTOP( \
272      "\n        -c      List changed files" \
273      "\n        -v      List all files" \
274      "\n        -f      Hide errors" \
275         )
276 #define chmod_example_usage \
277        "$ ls -l /tmp/foo\n" \
278        "-rw-rw-r--    1 root     root            0 Apr 12 18:25 /tmp/foo\n" \
279        "$ chmod u+x /tmp/foo\n" \
280        "$ ls -l /tmp/foo\n" \
281        "-rwxrw-r--    1 root     root            0 Apr 12 18:25 /tmp/foo*\n" \
282        "$ chmod 444 /tmp/foo\n" \
283        "$ ls -l /tmp/foo\n" \
284        "-r--r--r--    1 root     root            0 Apr 12 18:25 /tmp/foo\n"
285
286 #define chgrp_trivial_usage \
287        "[-RhLHP"IF_DESKTOP("cvf")"]... GROUP FILE..."
288 #define chgrp_full_usage "\n\n" \
289        "Change the group membership of each FILE to GROUP\n" \
290      "\nOptions:" \
291      "\n        -R      Recurse" \
292      "\n        -h      Affect symlinks instead of symlink targets" \
293      "\n        -L      Traverse all symlinks to directories" \
294      "\n        -H      Traverse symlinks on command line only" \
295      "\n        -P      Don't traverse symlinks (default)" \
296         IF_DESKTOP( \
297      "\n        -c      List changed files" \
298      "\n        -v      Verbose" \
299      "\n        -f      Hide errors" \
300         )
301 #define chgrp_example_usage \
302        "$ ls -l /tmp/foo\n" \
303        "-r--r--r--    1 andersen andersen        0 Apr 12 18:25 /tmp/foo\n" \
304        "$ chgrp root /tmp/foo\n" \
305        "$ ls -l /tmp/foo\n" \
306        "-r--r--r--    1 andersen root            0 Apr 12 18:25 /tmp/foo\n"
307
308 #define chown_trivial_usage \
309        "[-RhLHP"IF_DESKTOP("cvf")"]... OWNER[<.|:>[GROUP]] FILE..."
310 #define chown_full_usage "\n\n" \
311        "Change the owner and/or group of each FILE to OWNER and/or GROUP\n" \
312      "\nOptions:" \
313      "\n        -R      Recurse" \
314      "\n        -h      Affect symlinks instead of symlink targets" \
315      "\n        -L      Traverse all symlinks to directories" \
316      "\n        -H      Traverse symlinks on command line only" \
317      "\n        -P      Don't traverse symlinks (default)" \
318         IF_DESKTOP( \
319      "\n        -c      List changed files" \
320      "\n        -v      List all files" \
321      "\n        -f      Hide errors" \
322         )
323 #define chown_example_usage \
324        "$ ls -l /tmp/foo\n" \
325        "-r--r--r--    1 andersen andersen        0 Apr 12 18:25 /tmp/foo\n" \
326        "$ chown root /tmp/foo\n" \
327        "$ ls -l /tmp/foo\n" \
328        "-r--r--r--    1 root     andersen        0 Apr 12 18:25 /tmp/foo\n" \
329        "$ chown root.root /tmp/foo\n" \
330        "ls -l /tmp/foo\n" \
331        "-r--r--r--    1 root     root            0 Apr 12 18:25 /tmp/foo\n"
332
333 #define chpst_trivial_usage \
334        "[-vP012] [-u USER[:GRP]] [-U USER[:GRP]] [-e DIR]\n" \
335        "        [-/ DIR] [-n NICE] [-m BYTES] [-d BYTES] [-o N]\n" \
336        "        [-p N] [-f BYTES] [-c BYTES] PROG ARGS"
337 #define chpst_full_usage "\n\n" \
338        "Change the process state, run PROG\n" \
339      "\nOptions:" \
340      "\n        -u USER[:GRP]   Set uid and gid" \
341      "\n        -U USER[:GRP]   Set $UID and $GID in environment" \
342      "\n        -e DIR          Set environment variables as specified by files" \
343      "\n                        in DIR: file=1st_line_of_file" \
344      "\n        -/ DIR          Chroot to DIR" \
345      "\n        -n NICE         Add NICE to nice value" \
346      "\n        -m BYTES        Same as -d BYTES -s BYTES -l BYTES" \
347      "\n        -d BYTES        Limit data segment" \
348      "\n        -o N            Limit number of open files per process" \
349      "\n        -p N            Limit number of processes per uid" \
350      "\n        -f BYTES        Limit output file sizes" \
351      "\n        -c BYTES        Limit core file size" \
352      "\n        -v              Verbose" \
353      "\n        -P              Create new process group" \
354      "\n        -0              Close stdin" \
355      "\n        -1              Close stdout" \
356      "\n        -2              Close stderr" \
357
358 #define setuidgid_trivial_usage \
359        "USER PROG ARGS"
360 #define setuidgid_full_usage "\n\n" \
361        "Set uid and gid to USER's uid and gid, drop supplementary group ids,\n" \
362        "run PROG"
363 #define envuidgid_trivial_usage \
364        "USER PROG ARGS"
365 #define envuidgid_full_usage "\n\n" \
366        "Set $UID to USER's uid and $GID to USER's gid, run PROG"
367 #define envdir_trivial_usage \
368        "DIR PROG ARGS"
369 #define envdir_full_usage "\n\n" \
370        "Set various environment variables as specified by files\n" \
371        "in the directory DIR, run PROG"
372 #define softlimit_trivial_usage \
373        "[-a BYTES] [-m BYTES] [-d BYTES] [-s BYTES] [-l BYTES]\n" \
374        "        [-f BYTES] [-c BYTES] [-r BYTES] [-o N] [-p N] [-t N]\n" \
375        "        PROG ARGS"
376 #define softlimit_full_usage "\n\n" \
377        "Set soft resource limits, then run PROG\n" \
378      "\nOptions:" \
379      "\n        -a BYTES        Limit total size of all segments" \
380      "\n        -m BYTES        Same as -d BYTES -s BYTES -l BYTES -a BYTES" \
381      "\n        -d BYTES        Limit data segment" \
382      "\n        -s BYTES        Limit stack segment" \
383      "\n        -l BYTES        Limit locked memory size" \
384      "\n        -o N            Limit number of open files per process" \
385      "\n        -p N            Limit number of processes per uid" \
386      "\nOptions controlling file sizes:" \
387      "\n        -f BYTES        Limit output file sizes" \
388      "\n        -c BYTES        Limit core file size" \
389      "\nEfficiency opts:" \
390      "\n        -r BYTES        Limit resident set size" \
391      "\n        -t N            Limit CPU time, process receives" \
392      "\n                        a SIGXCPU after N seconds" \
393
394 #define chroot_trivial_usage \
395        "NEWROOT [PROG ARGS]"
396 #define chroot_full_usage "\n\n" \
397        "Run PROG with root directory set to NEWROOT"
398 #define chroot_example_usage \
399        "$ ls -l /bin/ls\n" \
400        "lrwxrwxrwx    1 root     root          12 Apr 13 00:46 /bin/ls -> /BusyBox\n" \
401        "# mount /dev/hdc1 /mnt -t minix\n" \
402        "# chroot /mnt\n" \
403        "# ls -l /bin/ls\n" \
404        "-rwxr-xr-x    1 root     root        40816 Feb  5 07:45 /bin/ls*\n"
405
406 #define chvt_trivial_usage \
407        "N"
408 #define chvt_full_usage "\n\n" \
409        "Change the foreground virtual terminal to /dev/ttyN"
410
411 #define cksum_trivial_usage \
412        "FILES..."
413 #define cksum_full_usage "\n\n" \
414        "Calculate the CRC32 checksums of FILES"
415
416 #define clear_trivial_usage \
417        ""
418 #define clear_full_usage "\n\n" \
419        "Clear screen"
420
421 #define cmp_trivial_usage \
422        "[-l] [-s] FILE1 [FILE2" IF_DESKTOP(" [SKIP1 [SKIP2]]") "]"
423 #define cmp_full_usage "\n\n" \
424        "Compare FILE1 with FILE2 (or stdin)\n" \
425      "\nOptions:" \
426      "\n        -l      Write the byte numbers (decimal) and values (octal)" \
427      "\n                for all differing bytes" \
428      "\n        -s      Quiet" \
429
430 #define comm_trivial_usage \
431        "[-123] FILE1 FILE2"
432 #define comm_full_usage "\n\n" \
433        "Compare FILE1 with FILE2\n" \
434      "\nOptions:" \
435      "\n        -1      Suppress lines unique to FILE1" \
436      "\n        -2      Suppress lines unique to FILE2" \
437      "\n        -3      Suppress lines common to both files" \
438
439 #define bbconfig_trivial_usage \
440        ""
441 #define bbconfig_full_usage "\n\n" \
442        "Print the config file used by busybox build"
443
444 #define chrt_trivial_usage \
445        "[-prfom] [PRIO] [PID | PROG ARGS]"
446 #define chrt_full_usage "\n\n" \
447        "Change scheduling priority and class for a process\n" \
448      "\nOptions:" \
449      "\n        -p      Operate on PID" \
450      "\n        -r      Set SCHED_RR class" \
451      "\n        -f      Set SCHED_FIFO class" \
452      "\n        -o      Set SCHED_OTHER class" \
453      "\n        -m      Show min/max priorities" \
454
455 #define chrt_example_usage \
456        "$ chrt -r 4 sleep 900; x=$!\n" \
457        "$ chrt -f -p 3 $x\n" \
458        "You need CAP_SYS_NICE privileges to set scheduling attributes of a process"
459
460 #define nice_trivial_usage \
461        "[-n ADJUST] [PROG ARGS]"
462 #define nice_full_usage "\n\n" \
463        "Change scheduling priority, run PROG\n" \
464      "\nOptions:" \
465      "\n        -n ADJUST       Adjust priority by ADJUST" \
466
467 #define renice_trivial_usage \
468        "{{-n INCREMENT} | PRIORITY} [[-p | -g | -u] ID...]"
469 #define renice_full_usage "\n\n" \
470        "Change scheduling priority for a running process\n" \
471      "\nOptions:" \
472      "\n        -n      Adjust current nice value (smaller is faster)" \
473      "\n        -p      Process id(s) (default)" \
474      "\n        -g      Process group id(s)" \
475      "\n        -u      Process user name(s) and/or id(s)" \
476
477 #define ionice_trivial_usage \
478         "[-c 1-3] [-n 0-7] [-p PID] [PROG]"
479 #define ionice_full_usage "\n\n" \
480        "Change I/O priority and class\n" \
481      "\nOptions:" \
482      "\n        -c      Class. 1:realtime 2:best-effort 3:idle" \
483      "\n        -n      Priority" \
484
485 #define cp_trivial_usage \
486        "[OPTIONS] SOURCE DEST"
487 #define cp_full_usage "\n\n" \
488        "Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY\n" \
489      "\nOptions:" \
490      "\n        -a      Same as -dpR" \
491         IF_SELINUX( \
492      "\n        -c      Preserve security context" \
493         ) \
494      "\n        -R,-r   Recurse" \
495      "\n        -d,-P   Preserve symlinks (default if -R)" \
496      "\n        -L      Follow all symlinks" \
497      "\n        -H      Follow symlinks on command line" \
498      "\n        -p      Preserve file attributes if possible" \
499      "\n        -f      Overwrite" \
500      "\n        -i      Prompt before overwrite" \
501      "\n        -l,-s   Create (sym)links" \
502
503 #define crond_trivial_usage \
504        "-fbS -l N " IF_FEATURE_CROND_D("-d N ") "-L LOGFILE -c DIR"
505 #define crond_full_usage "\n\n" \
506        "        -f      Foreground" \
507      "\n        -b      Background (default)" \
508      "\n        -S      Log to syslog (default)" \
509      "\n        -l      Set log level. 0 is the most verbose, default 8" \
510         IF_FEATURE_CROND_D( \
511      "\n        -d      Set log level, log to stderr" \
512         ) \
513      "\n        -L      Log to file" \
514      "\n        -c      Working dir" \
515
516 #define crontab_trivial_usage \
517        "[-c DIR] [-u USER] [-ler]|[FILE]"
518 #define crontab_full_usage "\n\n" \
519        "        -c      Crontab directory" \
520      "\n        -u      User" \
521      "\n        -l      List crontab" \
522      "\n        -e      Edit crontab" \
523      "\n        -r      Delete crontab" \
524      "\n        FILE    Replace crontab by FILE ('-': stdin)" \
525
526 #define cryptpw_trivial_usage \
527        "[OPTIONS] [PASSWORD] [SALT]"
528 /* We do support -s, we just don't mention it */
529 #define cryptpw_full_usage "\n\n" \
530        "Crypt the PASSWORD using crypt(3)\n" \
531      "\nOptions:" \
532         IF_LONG_OPTS( \
533      "\n        -P,--password-fd=N      Read password from fd N" \
534 /*   "\n        -s,--stdin              Use stdin; like -P0" */ \
535      "\n        -m,--method=TYPE        Encryption method TYPE" \
536      "\n        -S,--salt=SALT" \
537         ) \
538         IF_NOT_LONG_OPTS( \
539      "\n        -P N    Read password from fd N" \
540 /*   "\n        -s      Use stdin; like -P0" */ \
541      "\n        -m TYPE Encryption method TYPE" \
542      "\n        -S SALT" \
543         ) \
544
545 /* mkpasswd is an alias to cryptpw */
546
547 #define mkpasswd_trivial_usage \
548        "[OPTIONS] [PASSWORD] [SALT]"
549 /* We do support -s, we just don't mention it */
550 #define mkpasswd_full_usage "\n\n" \
551        "Crypt the PASSWORD using crypt(3)\n" \
552      "\nOptions:" \
553         IF_LONG_OPTS( \
554      "\n        -P,--password-fd=N      Read password from fd N" \
555 /*   "\n        -s,--stdin              Use stdin; like -P0" */ \
556      "\n        -m,--method=TYPE        Encryption method TYPE" \
557      "\n        -S,--salt=SALT" \
558         ) \
559         IF_NOT_LONG_OPTS( \
560      "\n        -P N    Read password from fd N" \
561 /*   "\n        -s      Use stdin; like -P0" */ \
562      "\n        -m TYPE Encryption method TYPE" \
563      "\n        -S SALT" \
564         ) \
565
566 #define cut_trivial_usage \
567        "[OPTIONS] [FILE]..."
568 #define cut_full_usage "\n\n" \
569        "Print selected fields from each input FILE to stdout\n" \
570      "\nOptions:" \
571      "\n        -b LIST Output only bytes from LIST" \
572      "\n        -c LIST Output only characters from LIST" \
573      "\n        -d CHAR Use CHAR instead of tab as the field delimiter" \
574      "\n        -s      Output only the lines containing delimiter" \
575      "\n        -f N    Print only these fields" \
576      "\n        -n      Ignored" \
577
578 #define cut_example_usage \
579        "$ echo \"Hello world\" | cut -f 1 -d ' '\n" \
580        "Hello\n" \
581        "$ echo \"Hello world\" | cut -f 2 -d ' '\n" \
582        "world\n"
583
584 #define dd_trivial_usage \
585        "[if=FILE] [of=FILE] " IF_FEATURE_DD_IBS_OBS("[ibs=N] [obs=N] ") "[bs=N] [count=N] [skip=N]\n" \
586        "        [seek=N]" IF_FEATURE_DD_IBS_OBS(" [conv=notrunc|noerror|sync|fsync]")
587 #define dd_full_usage "\n\n" \
588        "Copy a file with converting and formatting\n" \
589      "\nOptions:" \
590      "\n        if=FILE         Read from FILE instead of stdin" \
591      "\n        of=FILE         Write to FILE instead of stdout" \
592      "\n        bs=N            Read and write N bytes at a time" \
593         IF_FEATURE_DD_IBS_OBS( \
594      "\n        ibs=N           Read N bytes at a time" \
595         ) \
596         IF_FEATURE_DD_IBS_OBS( \
597      "\n        obs=N           Write N bytes at a time" \
598         ) \
599      "\n        count=N         Copy only N input blocks" \
600      "\n        skip=N          Skip N input blocks" \
601      "\n        seek=N          Skip N output blocks" \
602         IF_FEATURE_DD_IBS_OBS( \
603      "\n        conv=notrunc    Don't truncate output file" \
604      "\n        conv=noerror    Continue after read errors" \
605      "\n        conv=sync       Pad blocks with zeros" \
606      "\n        conv=fsync      Physically write data out before finishing" \
607         ) \
608      "\n" \
609      "\nNumbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024)," \
610      "\nMD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)" \
611
612 #define dd_example_usage \
613        "$ dd if=/dev/zero of=/dev/ram1 bs=1M count=4\n" \
614        "4+0 records in\n" \
615        "4+0 records out\n"
616
617 #define deallocvt_trivial_usage \
618        "[N]"
619 #define deallocvt_full_usage "\n\n" \
620        "Deallocate unused virtual terminal /dev/ttyN"
621
622 #define delgroup_trivial_usage \
623         IF_FEATURE_DEL_USER_FROM_GROUP("[USER] ")"GROUP"
624 #define delgroup_full_usage "\n\n" \
625        "Delete group GROUP from the system" \
626         IF_FEATURE_DEL_USER_FROM_GROUP(" or user USER from group GROUP")
627
628 #define deluser_trivial_usage \
629        "USER"
630 #define deluser_full_usage "\n\n" \
631        "Delete USER from the system"
632
633 #define devmem_trivial_usage \
634         "ADDRESS [WIDTH [VALUE]]"
635
636 #define devmem_full_usage "\n\n" \
637        "Read/write from physical address\n" \
638      "\n        ADDRESS Address to act upon" \
639      "\n        WIDTH   Width (8/16/...)" \
640      "\n        VALUE   Data to be written" \
641
642 #define devfsd_trivial_usage \
643        "mntpnt [-v]" IF_DEVFSD_FG_NP("[-fg][-np]")
644 #define devfsd_full_usage "\n\n" \
645        "Manage devfs permissions and old device name symlinks\n" \
646      "\nOptions:" \
647      "\n        mntpnt  The mount point where devfs is mounted" \
648      "\n        -v      Print the protocol version numbers for devfsd" \
649      "\n                and the kernel-side protocol version and exit" \
650         IF_DEVFSD_FG_NP( \
651      "\n        -fg     Run in foreground" \
652      "\n        -np     Exit after parsing the configuration file" \
653      "\n                and processing synthetic REGISTER events," \
654      "\n                don't poll for events" \
655         )
656
657 #define df_trivial_usage \
658         "[-Pk" \
659         IF_FEATURE_HUMAN_READABLE("mh") \
660         IF_FEATURE_DF_FANCY("ai] [-B SIZE") \
661         "] [FILESYSTEM]..."
662 #define df_full_usage "\n\n" \
663        "Print filesystem usage statistics\n" \
664      "\nOptions:" \
665      "\n        -P      POSIX output format" \
666      "\n        -k      1024-byte blocks (default)" \
667         IF_FEATURE_HUMAN_READABLE( \
668      "\n        -m      1M-byte blocks" \
669      "\n        -h      Human readable (e.g. 1K 243M 2G)" \
670         ) \
671         IF_FEATURE_DF_FANCY( \
672      "\n        -a      Show all filesystems" \
673      "\n        -i      Inodes" \
674      "\n        -B SIZE Blocksize" \
675         ) \
676
677 #define df_example_usage \
678        "$ df\n" \
679        "Filesystem           1K-blocks      Used Available Use% Mounted on\n" \
680        "/dev/sda3              8690864   8553540    137324  98% /\n" \
681        "/dev/sda1                64216     36364     27852  57% /boot\n" \
682        "$ df /dev/sda3\n" \
683        "Filesystem           1K-blocks      Used Available Use% Mounted on\n" \
684        "/dev/sda3              8690864   8553540    137324  98% /\n" \
685        "$ POSIXLY_CORRECT=sure df /dev/sda3\n" \
686        "Filesystem         512B-blocks      Used Available Use% Mounted on\n" \
687        "/dev/sda3             17381728  17107080    274648  98% /\n" \
688        "$ POSIXLY_CORRECT=yep df -P /dev/sda3\n" \
689        "Filesystem          512-blocks      Used Available Capacity Mounted on\n" \
690        "/dev/sda3             17381728  17107080    274648      98% /\n"
691
692 #define dhcprelay_trivial_usage \
693        "CLIENT_IFACE[,CLIENT_IFACE2]... SERVER_IFACE [SERVER_IP]"
694 #define dhcprelay_full_usage "\n\n" \
695        "Relay DHCP requests between clients and server" \
696
697 #define diff_trivial_usage \
698        "[-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2"
699 #define diff_full_usage "\n\n" \
700        "Compare files line by line and output the differences between them.\n" \
701        "This implementation supports unified diffs only.\n" \
702      "\nOptions:" \
703      "\n        -a      Treat all files as text" \
704      "\n        -b      Ignore changes in the amount of whitespace" \
705      "\n        -B      Ignore changes whose lines are all blank" \
706      "\n        -d      Try hard to find a smaller set of changes" \
707      "\n        -i      Ignore case differences" \
708      "\n        -L      Use LABEL instead of the filename in the unified header" \
709      "\n        -N      Treat absent files as empty" \
710      "\n        -q      Output only whether files differ" \
711      "\n        -r      Recurse" \
712      "\n        -S      Start with FILE when comparing directories" \
713      "\n        -T      Make tabs line up by prefixing a tab when necessary" \
714      "\n        -s      Report when two files are the same" \
715      "\n        -t      Expand tabs to spaces in output" \
716      "\n        -U      Output LINES lines of context" \
717      "\n        -w      Ignore all whitespace" \
718
719 #define dirname_trivial_usage \
720        "FILENAME"
721 #define dirname_full_usage "\n\n" \
722        "Strip non-directory suffix from FILENAME"
723 #define dirname_example_usage \
724        "$ dirname /tmp/foo\n" \
725        "/tmp\n" \
726        "$ dirname /tmp/foo/\n" \
727        "/tmp\n"
728
729 #define dmesg_trivial_usage \
730        "[-c] [-n LEVEL] [-s SIZE]"
731 #define dmesg_full_usage "\n\n" \
732        "Print or control the kernel ring buffer\n" \
733      "\nOptions:" \
734      "\n        -c              Clear ring buffer after printing" \
735      "\n        -n LEVEL        Set console logging level" \
736      "\n        -s SIZE         Buffer size" \
737
738 #define dnsd_trivial_usage \
739        "[-dvs] [-c CONFFILE] [-t TTL_SEC] [-p PORT] [-i ADDR]"
740 #define dnsd_full_usage "\n\n" \
741        "Small static DNS server daemon\n" \
742      "\nOptions:" \
743      "\n        -c FILE Config file" \
744      "\n        -t SEC  TTL" \
745      "\n        -p PORT Listen on PORT" \
746      "\n        -i ADDR Listen on ADDR" \
747      "\n        -d      Daemonize" \
748      "\n        -v      Verbose" \
749      "\n        -s      Send successful replies only. Use this if you want" \
750      "\n                to use /etc/resolv.conf with two nameserver lines:" \
751      "\n                        nameserver DNSD_SERVER" \
752      "\n                        nameserver NORNAL_DNS_SERVER" \
753
754 #define dos2unix_trivial_usage \
755        "[-ud] [FILE]"
756 #define dos2unix_full_usage "\n\n" \
757        "Convert FILE in-place from DOS to Unix format.\n" \
758        "When no file is given, use stdin/stdout.\n" \
759      "\nOptions:" \
760      "\n        -u      dos2unix" \
761      "\n        -d      unix2dos" \
762
763 #define unix2dos_trivial_usage \
764        "[-ud] [FILE]"
765 #define unix2dos_full_usage "\n\n" \
766        "Convert FILE in-place from Unix to DOS format.\n" \
767        "When no file is given, use stdin/stdout.\n" \
768      "\nOptions:" \
769      "\n        -u      dos2unix" \
770      "\n        -d      unix2dos" \
771
772 #define du_trivial_usage \
773        "[-aHLdclsx" IF_FEATURE_HUMAN_READABLE("hm") "k] [FILE]..."
774 #define du_full_usage "\n\n" \
775        "Summarize disk space used for each FILE and/or directory.\n" \
776        "Disk space is printed in units of " \
777         IF_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("1024") \
778         IF_NOT_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("512") \
779        " bytes.\n" \
780      "\nOptions:" \
781      "\n        -a      Show file sizes too" \
782      "\n        -L      Follow all symlinks" \
783      "\n        -H      Follow symlinks on command line" \
784      "\n        -d N    Limit output to directories (and files with -a) of depth < N" \
785      "\n        -c      Show grand total" \
786      "\n        -l      Count sizes many times if hard linked" \
787      "\n        -s      Display only a total for each argument" \
788      "\n        -x      Skip directories on different filesystems" \
789         IF_FEATURE_HUMAN_READABLE( \
790      "\n        -h      Sizes in human readable format (e.g., 1K 243M 2G )" \
791      "\n        -m      Sizes in megabytes" \
792         ) \
793      "\n        -k      Sizes in kilobytes" \
794                         IF_FEATURE_DU_DEFAULT_BLOCKSIZE_1K(" (default)") \
795
796 #define du_example_usage \
797        "$ du\n" \
798        "16      ./CVS\n" \
799        "12      ./kernel-patches/CVS\n" \
800        "80      ./kernel-patches\n" \
801        "12      ./tests/CVS\n" \
802        "36      ./tests\n" \
803        "12      ./scripts/CVS\n" \
804        "16      ./scripts\n" \
805        "12      ./docs/CVS\n" \
806        "104     ./docs\n" \
807        "2417    .\n"
808
809 #define dumpkmap_trivial_usage \
810        "> keymap"
811 #define dumpkmap_full_usage "\n\n" \
812        "Print a binary keyboard translation table to stdout"
813 #define dumpkmap_example_usage \
814        "$ dumpkmap > keymap\n"
815
816 #define dumpleases_trivial_usage \
817        "[-r|-a] [-f LEASEFILE]"
818 #define dumpleases_full_usage "\n\n" \
819        "Display DHCP leases granted by udhcpd\n" \
820      "\nOptions:" \
821         IF_LONG_OPTS( \
822      "\n        -f,--file=FILE  Lease file" \
823      "\n        -r,--remaining  Show remaining time" \
824      "\n        -a,--absolute   Show expiration time" \
825         ) \
826         IF_NOT_LONG_OPTS( \
827      "\n        -f FILE Lease file" \
828      "\n        -r      Show remaining time" \
829      "\n        -a      Show expiration time" \
830         )
831
832 /*
833 #define e2fsck_trivial_usage \
834        "[-panyrcdfvstDFSV] [-b superblock] [-B blocksize] " \
835        "[-I inode_buffer_blocks] [-P process_inode_size] " \
836        "[-l|-L bad_blocks_file] [-C fd] [-j external_journal] " \
837        "[-E extended-options] device"
838 #define e2fsck_full_usage "\n\n" \
839        "Check ext2/ext3 file system\n" \
840      "\nOptions:" \
841      "\n        -p              Automatic repair (no questions)" \
842      "\n        -n              Make no changes to the filesystem" \
843      "\n        -y              Assume 'yes' to all questions" \
844      "\n        -c              Check for bad blocks and add them to the badblock list" \
845      "\n        -f              Force checking even if filesystem is marked clean" \
846      "\n        -v              Verbose" \
847      "\n        -b superblock   Use alternative superblock" \
848      "\n        -B blocksize    Force blocksize when looking for superblock" \
849      "\n        -j journal      Set location of the external journal" \
850      "\n        -l file         Add to badblocks list" \
851      "\n        -L file         Set badblocks list" \
852 */
853
854 #define echo_trivial_usage \
855         IF_FEATURE_FANCY_ECHO("[-neE] ") "[ARG]..."
856 #define echo_full_usage "\n\n" \
857        "Print the specified ARGs to stdout" \
858         IF_FEATURE_FANCY_ECHO( "\n" \
859      "\nOptions:" \
860      "\n        -n      Suppress trailing newline" \
861      "\n        -e      Interpret backslash escapes (i.e., \\t=tab)" \
862      "\n        -E      Don't interpret backslash escapes (default)" \
863         )
864 #define echo_example_usage \
865        "$ echo \"Erik is cool\"\n" \
866        "Erik is cool\n" \
867         IF_FEATURE_FANCY_ECHO("$ echo -e \"Erik\\nis\\ncool\"\n" \
868        "Erik\n" \
869        "is\n" \
870        "cool\n" \
871        "$ echo \"Erik\\nis\\ncool\"\n" \
872        "Erik\\nis\\ncool\n")
873
874 #define eject_trivial_usage \
875        "[-t] [-T] [DEVICE]"
876 #define eject_full_usage "\n\n" \
877        "Eject DEVICE or default /dev/cdrom\n" \
878      "\nOptions:" \
879         IF_FEATURE_EJECT_SCSI( \
880      "\n        -s      SCSI device" \
881         ) \
882      "\n        -t      Close tray" \
883      "\n        -T      Open/close tray (toggle)" \
884
885 #define ed_trivial_usage ""
886 #define ed_full_usage ""
887
888 #define env_trivial_usage \
889        "[-iu] [-] [name=value]... [PROG ARGS]"
890 #define env_full_usage "\n\n" \
891        "Print the current environment or run PROG after setting up\n" \
892        "the specified environment\n" \
893      "\nOptions:" \
894      "\n        -, -i   Start with an empty environment" \
895      "\n        -u      Remove variable from the environment" \
896
897 #define ether_wake_trivial_usage \
898        "[-b] [-i iface] [-p aa:bb:cc:dd[:ee:ff]] MAC"
899 #define ether_wake_full_usage "\n\n" \
900        "Send a magic packet to wake up sleeping machines.\n" \
901        "MAC must be a station address (00:11:22:33:44:55) or\n" \
902        "a hostname with a known 'ethers' entry.\n" \
903      "\nOptions:" \
904      "\n        -b              Send wake-up packet to the broadcast address" \
905      "\n        -i iface        Interface to use (default eth0)" \
906      "\n        -p pass         Append four or six byte password PW to the packet" \
907
908 #define expand_trivial_usage \
909        "[-i] [-t N] [FILE]..."
910 #define expand_full_usage "\n\n" \
911        "Convert tabs to spaces, writing to stdout\n" \
912      "\nOptions:" \
913         IF_FEATURE_EXPAND_LONG_OPTIONS( \
914      "\n        -i,--initial    Don't convert tabs after non blanks" \
915      "\n        -t,--tabs=N     Tabstops every N chars" \
916         ) \
917         IF_NOT_FEATURE_EXPAND_LONG_OPTIONS( \
918      "\n        -i      Don't convert tabs after non blanks" \
919      "\n        -t      Tabstops every N chars" \
920         )
921
922 #define expr_trivial_usage \
923        "EXPRESSION"
924 #define expr_full_usage "\n\n" \
925        "Print the value of EXPRESSION to stdout\n" \
926     "\n" \
927        "EXPRESSION may be:\n" \
928        "        ARG1 | ARG2     ARG1 if it is neither null nor 0, otherwise ARG2\n" \
929        "        ARG1 & ARG2     ARG1 if neither argument is null or 0, otherwise 0\n" \
930        "        ARG1 < ARG2     1 if ARG1 is less than ARG2, else 0. Similarly:\n" \
931        "        ARG1 <= ARG2\n" \
932        "        ARG1 = ARG2\n" \
933        "        ARG1 != ARG2\n" \
934        "        ARG1 >= ARG2\n" \
935        "        ARG1 > ARG2\n" \
936        "        ARG1 + ARG2     Sum of ARG1 and ARG2. Similarly:\n" \
937        "        ARG1 - ARG2\n" \
938        "        ARG1 * ARG2\n" \
939        "        ARG1 / ARG2\n" \
940        "        ARG1 % ARG2\n" \
941        "        STRING : REGEXP         Anchored pattern match of REGEXP in STRING\n" \
942        "        match STRING REGEXP     Same as STRING : REGEXP\n" \
943        "        substr STRING POS LENGTH Substring of STRING, POS counted from 1\n" \
944        "        index STRING CHARS      Index in STRING where any CHARS is found, or 0\n" \
945        "        length STRING           Length of STRING\n" \
946        "        quote TOKEN             Interpret TOKEN as a string, even if\n" \
947        "                                it is a keyword like 'match' or an\n" \
948        "                                operator like '/'\n" \
949        "        (EXPRESSION)            Value of EXPRESSION\n" \
950        "\n" \
951        "Beware that many operators need to be escaped or quoted for shells.\n" \
952        "Comparisons are arithmetic if both ARGs are numbers, else\n" \
953        "lexicographical. Pattern matches return the string matched between\n" \
954        "\\( and \\) or null; if \\( and \\) are not used, they return the number\n" \
955        "of characters matched or 0."
956
957 #define fakeidentd_trivial_usage \
958        "[-fiw] [-b ADDR] [STRING]"
959 #define fakeidentd_full_usage "\n\n" \
960        "Provide fake ident (auth) service\n" \
961      "\nOptions:" \
962      "\n        -f      Run in foreground" \
963      "\n        -i      Inetd mode" \
964      "\n        -w      Inetd 'wait' mode" \
965      "\n        -b ADDR Bind to specified address" \
966      "\n        STRING  Ident answer string (default: nobody)" \
967
968 #define false_trivial_usage \
969        ""
970 #define false_full_usage "\n\n" \
971        "Return an exit code of FALSE (1)"
972
973 #define false_example_usage \
974        "$ false\n" \
975        "$ echo $?\n" \
976        "1\n"
977
978 #define fbsplash_trivial_usage \
979        "-s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]"
980 #define fbsplash_full_usage "\n\n" \
981        "Options:" \
982      "\n        -s      Image" \
983      "\n        -c      Hide cursor" \
984      "\n        -d      Framebuffer device (default /dev/fb0)" \
985      "\n        -i      Config file (var=value):" \
986      "\n                        BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT" \
987      "\n                        BAR_R,BAR_G,BAR_B" \
988      "\n        -f      Control pipe (else exit after drawing image)" \
989      "\n                        commands: 'NN' (% for progress bar) or 'exit'" \
990
991 #define fbset_trivial_usage \
992        "[OPTIONS] [MODE]"
993 #define fbset_full_usage "\n\n" \
994        "Show and modify frame buffer settings"
995
996 #define fbset_example_usage \
997        "$ fbset\n" \
998        "mode \"1024x768-76\"\n" \
999        "        # D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz\n" \
1000        "        geometry 1024 768 1024 768 16\n" \
1001        "        timings 12714 128 32 16 4 128 4\n" \
1002        "        accel false\n" \
1003        "        rgba 5/11,6/5,5/0,0/0\n" \
1004        "endmode\n"
1005
1006 #define fdflush_trivial_usage \
1007        "DEVICE"
1008 #define fdflush_full_usage "\n\n" \
1009        "Force floppy disk drive to detect disk change"
1010
1011 #define fdformat_trivial_usage \
1012        "[-n] DEVICE"
1013 #define fdformat_full_usage "\n\n" \
1014        "Format floppy disk\n" \
1015      "\nOptions:" \
1016      "\n        -n      Don't verify after format" \
1017
1018 /* Looks like someone forgot to add this to config system */
1019 #ifndef ENABLE_FEATURE_FDISK_BLKSIZE
1020 # define ENABLE_FEATURE_FDISK_BLKSIZE 0
1021 # define IF_FEATURE_FDISK_BLKSIZE(a)
1022 #endif
1023
1024 #define fdisk_trivial_usage \
1025        "[-ul" IF_FEATURE_FDISK_BLKSIZE("s") "] " \
1026        "[-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK"
1027 #define fdisk_full_usage "\n\n" \
1028        "Change partition table\n" \
1029      "\nOptions:" \
1030      "\n        -u              Start and End are in sectors (instead of cylinders)" \
1031      "\n        -l              Show partition table for each DISK, then exit" \
1032         IF_FEATURE_FDISK_BLKSIZE( \
1033      "\n        -s              Show partition sizes in kb for each DISK, then exit" \
1034         ) \
1035      "\n        -b 2048         (for certain MO disks) use 2048-byte sectors" \
1036      "\n        -C CYLINDERS    Set number of cylinders/heads/sectors" \
1037      "\n        -H HEADS" \
1038      "\n        -S SECTORS" \
1039
1040 #define fgconsole_trivial_usage \
1041         ""
1042 #define fgconsole_full_usage "\n\n" \
1043         "Get active console"
1044
1045 #define findfs_trivial_usage \
1046        "LABEL=label or UUID=uuid"
1047 #define findfs_full_usage "\n\n" \
1048        "Find a filesystem device based on a label or UUID"
1049 #define findfs_example_usage \
1050        "$ findfs LABEL=MyDevice"
1051
1052 #define flash_lock_trivial_usage \
1053        "MTD_DEVICE OFFSET SECTORS"
1054 #define flash_lock_full_usage "\n\n" \
1055        "Lock part or all of an MTD device. If SECTORS is -1, then all sectors\n" \
1056        "will be locked, regardless of the value of OFFSET"
1057
1058 #define flash_unlock_trivial_usage \
1059        "MTD_DEVICE"
1060 #define flash_unlock_full_usage "\n\n" \
1061        "Unlock an MTD device"
1062
1063 #define flash_eraseall_trivial_usage \
1064        "[-jq] MTD_DEVICE"
1065 #define flash_eraseall_full_usage "\n\n" \
1066        "Erase an MTD device\n" \
1067      "\nOptions:" \
1068      "\n        -j      Format the device for jffs2" \
1069      "\n        -q      Don't display progress messages" \
1070
1071 #define flashcp_trivial_usage \
1072        "-v FILE MTD_DEVICE"
1073 #define flashcp_full_usage "\n\n" \
1074        "Copy an image to MTD device\n" \
1075      "\nOptions:" \
1076      "\n        -v      Verbose" \
1077
1078 #define flock_trivial_usage \
1079        "[-sxun] FD|{FILE [-c] PROG ARGS}"
1080 #define flock_full_usage "\n\n" \
1081        "[Un]lock file descriptor, or lock FILE, run PROG\n" \
1082      "\nOptions:" \
1083      "\n        -s      Shared lock" \
1084      "\n        -x      Exclusive lock (default)" \
1085      "\n        -u      Unlock FD" \
1086      "\n        -n      Fail rather than wait" \
1087
1088 #define fold_trivial_usage \
1089        "[-bs] [-w WIDTH] [FILE]..."
1090 #define fold_full_usage "\n\n" \
1091        "Wrap input lines in each FILE (or stdin), writing to stdout\n" \
1092      "\nOptions:" \
1093      "\n        -b      Count bytes rather than columns" \
1094      "\n        -s      Break at spaces" \
1095      "\n        -w      Use WIDTH columns instead of 80" \
1096
1097 #define free_trivial_usage \
1098        "" IF_DESKTOP("[-b/k/m/g]")
1099 #define free_full_usage "\n\n" \
1100        "Display the amount of free and used system memory"
1101 #define free_example_usage \
1102        "$ free\n" \
1103        "              total         used         free       shared      buffers\n" \
1104        "  Mem:       257628       248724         8904        59644        93124\n" \
1105        " Swap:       128516         8404       120112\n" \
1106        "Total:       386144       257128       129016\n" \
1107
1108 #define freeramdisk_trivial_usage \
1109        "DEVICE"
1110 #define freeramdisk_full_usage "\n\n" \
1111        "Free all memory used by the specified ramdisk"
1112 #define freeramdisk_example_usage \
1113        "$ freeramdisk /dev/ram2\n"
1114
1115 #define fsck_trivial_usage \
1116        "[-ANPRTV] [-C FD] [-t FSTYPE] [FS_OPTS] [BLOCKDEV]..."
1117 #define fsck_full_usage "\n\n" \
1118        "Check and repair filesystems\n" \
1119      "\nOptions:" \
1120      "\n        -A      Walk /etc/fstab and check all filesystems" \
1121      "\n        -N      Don't execute, just show what would be done" \
1122      "\n        -P      With -A, check filesystems in parallel" \
1123      "\n        -R      With -A, skip the root filesystem" \
1124      "\n        -T      Don't show title on startup" \
1125      "\n        -V      Verbose" \
1126      "\n        -C n    Write status information to specified filedescriptor" \
1127      "\n        -t TYPE List of filesystem types to check" \
1128
1129 #define fsck_minix_trivial_usage \
1130        "[-larvsmf] BLOCKDEV"
1131 #define fsck_minix_full_usage "\n\n" \
1132        "Check MINIX filesystem\n" \
1133      "\nOptions:" \
1134      "\n        -l      List all filenames" \
1135      "\n        -r      Perform interactive repairs" \
1136      "\n        -a      Perform automatic repairs" \
1137      "\n        -v      Verbose" \
1138      "\n        -s      Output superblock information" \
1139      "\n        -m      Show \"mode not cleared\" warnings" \
1140      "\n        -f      Force file system check" \
1141
1142 #define ftpget_trivial_usage \
1143        "[OPTIONS] HOST [LOCAL_FILE] REMOTE_FILE"
1144 #define ftpget_full_usage "\n\n" \
1145        "Retrieve a remote file via FTP\n" \
1146      "\nOptions:" \
1147         IF_FEATURE_FTPGETPUT_LONG_OPTIONS( \
1148      "\n        -c,--continue   Continue previous transfer" \
1149      "\n        -v,--verbose    Verbose" \
1150      "\n        -u,--username   Username" \
1151      "\n        -p,--password   Password" \
1152      "\n        -P,--port       Port number" \
1153         ) \
1154         IF_NOT_FEATURE_FTPGETPUT_LONG_OPTIONS( \
1155      "\n        -c      Continue previous transfer" \
1156      "\n        -v      Verbose" \
1157      "\n        -u      Username" \
1158      "\n        -p      Password" \
1159      "\n        -P      Port number" \
1160         )
1161
1162 #define ftpput_trivial_usage \
1163        "[OPTIONS] HOST [REMOTE_FILE] LOCAL_FILE"
1164 #define ftpput_full_usage "\n\n" \
1165        "Store a local file on a remote machine via FTP\n" \
1166      "\nOptions:" \
1167         IF_FEATURE_FTPGETPUT_LONG_OPTIONS( \
1168      "\n        -v,--verbose    Verbose" \
1169      "\n        -u,--username   Username" \
1170      "\n        -p,--password   Password" \
1171      "\n        -P,--port       Port number" \
1172         ) \
1173         IF_NOT_FEATURE_FTPGETPUT_LONG_OPTIONS( \
1174      "\n        -v      Verbose" \
1175      "\n        -u      Username" \
1176      "\n        -p      Password" \
1177      "\n        -P      Port number" \
1178         )
1179
1180 #define fuser_trivial_usage \
1181        "[OPTIONS] FILE or PORT/PROTO"
1182 #define fuser_full_usage "\n\n" \
1183        "Find processes which use FILEs or PORTs\n" \
1184      "\nOptions:" \
1185      "\n        -m      Find processes which use same fs as FILEs" \
1186      "\n        -4,-6   Search only IPv4/IPv6 space" \
1187      "\n        -s      Don't display PIDs" \
1188      "\n        -k      Kill found processes" \
1189      "\n        -SIGNAL Signal to send (default: KILL)" \
1190
1191 #define getenforce_trivial_usage NOUSAGE_STR
1192 #define getenforce_full_usage ""
1193
1194 #define getopt_trivial_usage \
1195        "[OPTIONS]"
1196 #define getopt_full_usage "\n\n" \
1197        "Options:" \
1198         IF_LONG_OPTS( \
1199      "\n        -a,--alternative                Allow long options starting with single -" \
1200      "\n        -l,--longoptions=longopts       Long options to be recognized" \
1201      "\n        -n,--name=progname              The name under which errors are reported" \
1202      "\n        -o,--options=optstring          Short options to be recognized" \
1203      "\n        -q,--quiet                      Disable error reporting by getopt(3)" \
1204      "\n        -Q,--quiet-output               No normal output" \
1205      "\n        -s,--shell=shell                Set shell quoting conventions" \
1206      "\n        -T,--test                       Test for getopt(1) version" \
1207      "\n        -u,--unquoted                   Don't quote the output" \
1208         ) \
1209         IF_NOT_LONG_OPTS( \
1210      "\n        -a              Allow long options starting with single -" \
1211      "\n        -l longopts     Long options to be recognized" \
1212      "\n        -n progname     The name under which errors are reported" \
1213      "\n        -o optstring    Short options to be recognized" \
1214      "\n        -q              Disable error reporting by getopt(3)" \
1215      "\n        -Q              No normal output" \
1216      "\n        -s shell        Set shell quoting conventions" \
1217      "\n        -T              Test for getopt(1) version" \
1218      "\n        -u              Don't quote the output" \
1219         )
1220 #define getopt_example_usage \
1221        "$ cat getopt.test\n" \
1222        "#!/bin/sh\n" \
1223        "GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \\\n" \
1224        "       -n 'example.busybox' -- \"$@\"`\n" \
1225        "if [ $? != 0 ]; then exit 1; fi\n" \
1226        "eval set -- \"$GETOPT\"\n" \
1227        "while true; do\n" \
1228        " case $1 in\n" \
1229        "   -a|--a-long) echo \"Option a\"; shift;;\n" \
1230        "   -b|--b-long) echo \"Option b, argument '$2'\"; shift 2;;\n" \
1231        "   -c|--c-long)\n" \
1232        "     case \"$2\" in\n" \
1233        "       \"\") echo \"Option c, no argument\"; shift 2;;\n" \
1234        "       *)  echo \"Option c, argument '$2'\"; shift 2;;\n" \
1235        "     esac;;\n" \
1236        "   --) shift; break;;\n" \
1237        "   *) echo \"Internal error!\"; exit 1;;\n" \
1238        " esac\n" \
1239        "done\n"
1240
1241 #define getsebool_trivial_usage \
1242        "-a or getsebool boolean..."
1243 #define getsebool_full_usage "\n\n" \
1244        "        -a      Show all selinux booleans"
1245
1246 #define hdparm_trivial_usage \
1247        "[OPTIONS] [DEVICE]"
1248 #define hdparm_full_usage "\n\n" \
1249        "Options:" \
1250      "\n        -a      Get/set fs readahead" \
1251      "\n        -A      Set drive read-lookahead flag (0/1)" \
1252      "\n        -b      Get/set bus state (0 == off, 1 == on, 2 == tristate)" \
1253      "\n        -B      Set Advanced Power Management setting (1-255)" \
1254      "\n        -c      Get/set IDE 32-bit IO setting" \
1255      "\n        -C      Check IDE power mode status" \
1256         IF_FEATURE_HDPARM_HDIO_GETSET_DMA( \
1257      "\n        -d      Get/set using_dma flag") \
1258      "\n        -D      Enable/disable drive defect-mgmt" \
1259      "\n        -f      Flush buffer cache for device on exit" \
1260      "\n        -g      Display drive geometry" \
1261      "\n        -h      Display terse usage information" \
1262         IF_FEATURE_HDPARM_GET_IDENTITY( \
1263      "\n        -i      Display drive identification") \
1264         IF_FEATURE_HDPARM_GET_IDENTITY( \
1265      "\n        -I      Detailed/current information directly from drive") \
1266      "\n        -k      Get/set keep_settings_over_reset flag (0/1)" \
1267      "\n        -K      Set drive keep_features_over_reset flag (0/1)" \
1268      "\n        -L      Set drive doorlock (0/1) (removable harddisks only)" \
1269      "\n        -m      Get/set multiple sector count" \
1270      "\n        -n      Get/set ignore-write-errors flag (0/1)" \
1271      "\n        -p      Set PIO mode on IDE interface chipset (0,1,2,3,4,...)" \
1272      "\n        -P      Set drive prefetch count" \
1273 /*   "\n        -q      Change next setting quietly" - not supported ib bbox */ \
1274      "\n        -Q      Get/set DMA tagged-queuing depth (if supported)" \
1275      "\n        -r      Get/set readonly flag (DANGEROUS to set)" \
1276         IF_FEATURE_HDPARM_HDIO_SCAN_HWIF( \
1277      "\n        -R      Register an IDE interface (DANGEROUS)") \
1278      "\n        -S      Set standby (spindown) timeout" \
1279      "\n        -t      Perform device read timings" \
1280      "\n        -T      Perform cache read timings" \
1281      "\n        -u      Get/set unmaskirq flag (0/1)" \
1282         IF_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF( \
1283      "\n        -U      Unregister an IDE interface (DANGEROUS)") \
1284      "\n        -v      Defaults; same as -mcudkrag for IDE drives" \
1285      "\n        -V      Display program version and exit immediately" \
1286         IF_FEATURE_HDPARM_HDIO_DRIVE_RESET( \
1287      "\n        -w      Perform device reset (DANGEROUS)") \
1288      "\n        -W      Set drive write-caching flag (0/1) (DANGEROUS)" \
1289         IF_FEATURE_HDPARM_HDIO_TRISTATE_HWIF( \
1290      "\n        -x      Tristate device for hotswap (0/1) (DANGEROUS)") \
1291      "\n        -X      Set IDE xfer mode (DANGEROUS)" \
1292      "\n        -y      Put IDE drive in standby mode" \
1293      "\n        -Y      Put IDE drive to sleep" \
1294      "\n        -Z      Disable Seagate auto-powersaving mode" \
1295      "\n        -z      Reread partition table" \
1296
1297 #define head_trivial_usage \
1298        "[OPTIONS] [FILE]..."
1299 #define head_full_usage "\n\n" \
1300        "Print first 10 lines of each FILE (or stdin) to stdout.\n" \
1301        "With more than one FILE, precede each with a filename header.\n" \
1302      "\nOptions:" \
1303      "\n        -n N[kbm]       Print first N lines" \
1304         IF_FEATURE_FANCY_HEAD( \
1305      "\n        -c N[kbm]       Print first N bytes" \
1306      "\n        -q              Never print headers" \
1307      "\n        -v              Always print headers" \
1308         ) \
1309      "\n" \
1310      "\nN may be suffixed by k (x1024), b (x512), or m (x1024^2)." \
1311
1312 #define head_example_usage \
1313        "$ head -n 2 /etc/passwd\n" \
1314        "root:x:0:0:root:/root:/bin/bash\n" \
1315        "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n"
1316
1317 #define tail_trivial_usage \
1318        "[OPTIONS] [FILE]..."
1319 #define tail_full_usage "\n\n" \
1320        "Print last 10 lines of each FILE (or stdin) to stdout.\n" \
1321        "With more than one FILE, precede each with a filename header.\n" \
1322      "\nOptions:" \
1323      "\n        -f              Print data as file grows" \
1324         IF_FEATURE_FANCY_TAIL( \
1325      "\n        -s SECONDS      Wait SECONDS between reads with -f" \
1326         ) \
1327      "\n        -n N[kbm]       Print last N lines" \
1328         IF_FEATURE_FANCY_TAIL( \
1329      "\n        -c N[kbm]       Print last N bytes" \
1330      "\n        -q              Never print headers" \
1331      "\n        -v              Always print headers" \
1332      "\n" \
1333      "\nN may be suffixed by k (x1024), b (x512), or m (x1024^2)." \
1334      "\nIf N starts with a '+', output begins with the Nth item from the start" \
1335      "\nof each file, not from the end." \
1336         ) \
1337
1338 #define tail_example_usage \
1339        "$ tail -n 1 /etc/resolv.conf\n" \
1340        "nameserver 10.0.0.1\n"
1341
1342 #define hexdump_trivial_usage \
1343        "[-bcCdefnosvx" IF_FEATURE_HEXDUMP_REVERSE("R") "] [FILE]..."
1344 #define hexdump_full_usage "\n\n" \
1345        "Display FILEs (or stdin) in a user specified format\n" \
1346      "\nOptions:" \
1347      "\n        -b              One-byte octal display" \
1348      "\n        -c              One-byte character display" \
1349      "\n        -C              Canonical hex+ASCII, 16 bytes per line" \
1350      "\n        -d              Two-byte decimal display" \
1351      "\n        -e FORMAT_STRING" \
1352      "\n        -f FORMAT_FILE" \
1353      "\n        -n LENGTH       Interpret only LENGTH bytes of input" \
1354      "\n        -o              Two-byte octal display" \
1355      "\n        -s OFFSET       Skip OFFSET bytes" \
1356      "\n        -v              Display all input data" \
1357      "\n        -x              Two-byte hexadecimal display" \
1358         IF_FEATURE_HEXDUMP_REVERSE( \
1359      "\n        -R              Reverse of 'hexdump -Cv'") \
1360
1361 #define hd_trivial_usage \
1362        "FILE..."
1363 #define hd_full_usage "\n\n" \
1364        "hd is an alias for hexdump -C"
1365
1366 #define hostid_trivial_usage \
1367        ""
1368 #define hostid_full_usage "\n\n" \
1369        "Print out a unique 32-bit identifier for the machine"
1370
1371 #define hostname_trivial_usage \
1372        "[OPTIONS] [HOSTNAME | -F FILE]"
1373 #define hostname_full_usage "\n\n" \
1374        "Get or set hostname or DNS domain name\n" \
1375      "\nOptions:" \
1376      "\n        -s      Short" \
1377      "\n        -i      Addresses for the hostname" \
1378      "\n        -d      DNS domain name" \
1379      "\n        -f      Fully qualified domain name" \
1380      "\n        -F FILE Use FILE's content as hostname" \
1381
1382 #define hostname_example_usage \
1383        "$ hostname\n" \
1384        "sage\n"
1385
1386 #define dnsdomainname_trivial_usage NOUSAGE_STR
1387 #define dnsdomainname_full_usage ""
1388
1389 #define httpd_trivial_usage \
1390        "[-ifv[v]]" \
1391        " [-c CONFFILE]" \
1392        " [-p [IP:]PORT]" \
1393         IF_FEATURE_HTTPD_SETUID(" [-u USER[:GRP]]") \
1394         IF_FEATURE_HTTPD_BASIC_AUTH(" [-r REALM]") \
1395        " [-h HOME]\n" \
1396        "or httpd -d/-e" IF_FEATURE_HTTPD_AUTH_MD5("/-m") " STRING"
1397 #define httpd_full_usage "\n\n" \
1398        "Listen for incoming HTTP requests\n" \
1399      "\nOptions:" \
1400      "\n        -i              Inetd mode" \
1401      "\n        -f              Don't daemonize" \
1402      "\n        -v[v]           Verbose" \
1403      "\n        -p [IP:]PORT    Bind to IP:PORT (default *:80)" \
1404         IF_FEATURE_HTTPD_SETUID( \
1405      "\n        -u USER[:GRP]   Set uid/gid after binding to port") \
1406         IF_FEATURE_HTTPD_BASIC_AUTH( \
1407      "\n        -r REALM        Authentication Realm for Basic Authentication") \
1408      "\n        -h HOME         Home directory (default .)" \
1409      "\n        -c FILE         Configuration file (default {/etc,HOME}/httpd.conf)" \
1410         IF_FEATURE_HTTPD_AUTH_MD5( \
1411      "\n        -m STRING       MD5 crypt STRING") \
1412      "\n        -e STRING       HTML encode STRING" \
1413      "\n        -d STRING       URL decode STRING" \
1414
1415 #define id_trivial_usage \
1416        "[OPTIONS] [USER]"
1417 #define id_full_usage "\n\n" \
1418        "Print information about USER or the current user\n" \
1419      "\nOptions:" \
1420         IF_SELINUX( \
1421      "\n        -Z      Security context" \
1422         ) \
1423      "\n        -u      User ID" \
1424      "\n        -g      Group ID" \
1425      "\n        -G      Supplementary group IDs" \
1426      "\n        -n      Print names instead of numbers" \
1427      "\n        -r      Print real ID instead of effective ID" \
1428
1429 #define id_example_usage \
1430        "$ id\n" \
1431        "uid=1000(andersen) gid=1000(andersen)\n"
1432
1433 #define ifconfig_trivial_usage \
1434         IF_FEATURE_IFCONFIG_STATUS("[-a]") " interface [address]"
1435 #define ifconfig_full_usage "\n\n" \
1436        "Configure a network interface\n" \
1437      "\nOptions:" \
1438      "\n" \
1439         IF_FEATURE_IPV6( \
1440        "        [add ADDRESS[/PREFIXLEN]]\n") \
1441         IF_FEATURE_IPV6( \
1442        "        [del ADDRESS[/PREFIXLEN]]\n") \
1443        "        [[-]broadcast [ADDRESS]] [[-]pointopoint [ADDRESS]]\n" \
1444        "        [netmask ADDRESS] [dstaddr ADDRESS]\n" \
1445         IF_FEATURE_IFCONFIG_SLIP( \
1446        "        [outfill NN] [keepalive NN]\n") \
1447        "        " IF_FEATURE_IFCONFIG_HW("[hw ether" IF_FEATURE_HWIB("|infiniband")" ADDRESS] ") "[metric NN] [mtu NN]\n" \
1448        "        [[-]trailers] [[-]arp] [[-]allmulti]\n" \
1449        "        [multicast] [[-]promisc] [txqueuelen NN] [[-]dynamic]\n" \
1450         IF_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ( \
1451        "        [mem_start NN] [io_addr NN] [irq NN]\n") \
1452        "        [up|down] ..."
1453
1454 #define ifenslave_trivial_usage \
1455        "[-cdf] MASTER_IFACE SLAVE_IFACE..."
1456 #define ifenslave_full_usage "\n\n" \
1457        "Configure network interfaces for parallel routing\n" \
1458      "\nOptions:" \
1459      "\n        -c,--change-active      Change active slave" \
1460      "\n        -d,--detach             Remove slave interface from bonding device" \
1461      "\n        -f,--force              Force, even if interface is not Ethernet" \
1462 /*   "\n        -r,--receive-slave      Create a receive-only slave" */
1463
1464 #define ifenslave_example_usage \
1465        "To create a bond device, simply follow these three steps:\n" \
1466        "- ensure that the required drivers are properly loaded:\n" \
1467        "  # modprobe bonding ; modprobe <3c59x|eepro100|pcnet32|tulip|...>\n" \
1468        "- assign an IP address to the bond device:\n" \
1469        "  # ifconfig bond0 <addr> netmask <mask> broadcast <bcast>\n" \
1470        "- attach all the interfaces you need to the bond device:\n" \
1471        "  # ifenslave bond0 eth0 eth1 eth2\n" \
1472        "  If bond0 didn't have a MAC address, it will take eth0's. Then, all\n" \
1473        "  interfaces attached AFTER this assignment will get the same MAC addr.\n\n" \
1474        "  To detach a dead interface without setting the bond device down:\n" \
1475        "  # ifenslave -d bond0 eth1\n\n" \
1476        "  To set the bond device down and automatically release all the slaves:\n" \
1477        "  # ifconfig bond0 down\n\n" \
1478        "  To change active slave:\n" \
1479        "  # ifenslave -c bond0 eth0\n" \
1480
1481 #define ifplugd_trivial_usage \
1482        "[OPTIONS]"
1483 #define ifplugd_full_usage "\n\n" \
1484        "Network interface plug detection daemon\n" \
1485      "\nOptions:" \
1486      "\n        -n              Don't daemonize" \
1487      "\n        -s              Don't log to syslog" \
1488      "\n        -i IFACE        Interface" \
1489      "\n        -f/-F           Treat link detection error as link down/link up" \
1490      "\n                        (otherwise exit on error)" \
1491      "\n        -a              Don't up interface at each link probe" \
1492      "\n        -M              Monitor creation/destruction of interface" \
1493      "\n                        (otherwise it must exist)" \
1494      "\n        -r PROG         Script to run" \
1495      "\n        -x ARG          Extra argument for script" \
1496      "\n        -I              Don't exit on nonzero exit code from script" \
1497      "\n        -p              Don't run script on daemon startup" \
1498      "\n        -q              Don't run script on daemon quit" \
1499      "\n        -l              Run script on startup even if no cable is detected" \
1500      "\n        -t SECS         Poll time in seconds" \
1501      "\n        -u SECS         Delay before running script after link up" \
1502      "\n        -d SECS         Delay after link down" \
1503      "\n        -m MODE         API mode (mii, priv, ethtool, wlan, iff, auto)" \
1504      "\n        -k              Kill running daemon" \
1505
1506 #define ifup_trivial_usage \
1507        "[-an"IF_FEATURE_IFUPDOWN_MAPPING("m")"vf] [-i FILE] IFACE..."
1508 #define ifup_full_usage "\n\n" \
1509        "Options:" \
1510      "\n        -a      De/configure all interfaces automatically" \
1511      "\n        -i FILE Use FILE for interface definitions" \
1512      "\n        -n      Print out what would happen, but don't do it" \
1513         IF_FEATURE_IFUPDOWN_MAPPING( \
1514      "\n                (note: doesn't disable mappings)" \
1515      "\n        -m      Don't run any mappings" \
1516         ) \
1517      "\n        -v      Print out what would happen before doing it" \
1518      "\n        -f      Force de/configuration" \
1519
1520 #define ifdown_trivial_usage \
1521        "[-an"IF_FEATURE_IFUPDOWN_MAPPING("m")"vf] [-i FILE] IFACE..."
1522 #define ifdown_full_usage "\n\n" \
1523        "Options:" \
1524      "\n        -a      De/configure all interfaces automatically" \
1525      "\n        -i FILE Use FILE for interface definitions" \
1526      "\n        -n      Print out what would happen, but don't do it" \
1527         IF_FEATURE_IFUPDOWN_MAPPING( \
1528      "\n                (note: doesn't disable mappings)" \
1529      "\n        -m      Don't run any mappings" \
1530         ) \
1531      "\n        -v      Print out what would happen before doing it" \
1532      "\n        -f      Force de/configuration" \
1533
1534 #define inetd_trivial_usage \
1535        "[-fe] [-q N] [-R N] [CONFFILE]"
1536 #define inetd_full_usage "\n\n" \
1537        "Listen for network connections and launch programs\n" \
1538      "\nOptions:" \
1539      "\n        -f      Run in foreground" \
1540      "\n        -e      Log to stderr" \
1541      "\n        -q N    Socket listen queue (default: 128)" \
1542      "\n        -R N    Pause services after N connects/min" \
1543      "\n                (default: 0 - disabled)" \
1544
1545 #define inotifyd_trivial_usage \
1546         "PROG FILE1[:MASK]..."
1547 #define inotifyd_full_usage "\n\n" \
1548        "Run PROG on filesystem changes." \
1549      "\nWhen a filesystem event matching MASK occurs on FILEn," \
1550      "\nPROG ACTUAL_EVENTS FILEn [SUBFILE] is run." \
1551      "\nEvents:" \
1552      "\n        a       File is accessed" \
1553      "\n        c       File is modified" \
1554      "\n        e       Metadata changed" \
1555      "\n        w       Writable file is closed" \
1556      "\n        0       Unwritable file is closed" \
1557      "\n        r       File is opened" \
1558      "\n        D       File is deleted" \
1559      "\n        M       File is moved" \
1560      "\n        u       Backing fs is unmounted" \
1561      "\n        o       Event queue overflowed" \
1562      "\n        x       File can't be watched anymore" \
1563      "\nIf watching a directory:" \
1564      "\n        m       Subfile is moved into dir" \
1565      "\n        y       Subfile is moved out of dir" \
1566      "\n        n       Subfile is created" \
1567      "\n        d       Subfile is deleted" \
1568      "\n" \
1569      "\ninotifyd waits for PROG to exit." \
1570      "\nWhen x event happens for all FILEs, inotifyd exits." \
1571
1572 /* -v, -b, -c are ignored */
1573 #define install_trivial_usage \
1574         "[-cdDsp] [-o USER] [-g GRP] [-m MODE] [SOURCE]... DEST"
1575 #define install_full_usage "\n\n" \
1576        "Copy files and set attributes\n" \
1577      "\nOptions:" \
1578      "\n        -c      Just copy (default)" \
1579      "\n        -d      Create directories" \
1580      "\n        -D      Create leading target directories" \
1581      "\n        -s      Strip symbol table" \
1582      "\n        -p      Preserve date" \
1583      "\n        -o USER Set ownership" \
1584      "\n        -g GRP  Set group ownership" \
1585      "\n        -m MODE Set permissions" \
1586         IF_SELINUX( \
1587      "\n        -Z      Set security context" \
1588         )
1589
1590 /* would need to make the " | " optional depending on more than one selected: */
1591 #define ip_trivial_usage \
1592        "[OPTIONS] {" \
1593         IF_FEATURE_IP_ADDRESS("address | ") \
1594         IF_FEATURE_IP_ROUTE("route | ") \
1595         IF_FEATURE_IP_LINK("link | ") \
1596         IF_FEATURE_IP_TUNNEL("tunnel | ") \
1597         IF_FEATURE_IP_RULE("rule") \
1598        "} {COMMAND}"
1599 #define ip_full_usage "\n\n" \
1600        "ip [OPTIONS] OBJECT {COMMAND}\n" \
1601        "where OBJECT := {" \
1602         IF_FEATURE_IP_ADDRESS("address | ") \
1603         IF_FEATURE_IP_ROUTE("route | ") \
1604         IF_FEATURE_IP_LINK("link | ") \
1605         IF_FEATURE_IP_TUNNEL("tunnel | ") \
1606         IF_FEATURE_IP_RULE("rule") \
1607        "}\n" \
1608        "OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }" \
1609
1610 #define ipaddr_trivial_usage \
1611        "{ {add|del} IFADDR dev STRING | {show|flush}\n" \
1612        "                [dev STRING] [to PREFIX] }"
1613 #define ipaddr_full_usage "\n\n" \
1614        "ipaddr {add|delete} IFADDR dev STRING\n" \
1615        "ipaddr {show|flush} [dev STRING] [scope SCOPE-ID]\n" \
1616        "        [to PREFIX] [label PATTERN]\n" \
1617        "        IFADDR := PREFIX | ADDR peer PREFIX\n" \
1618        "        [broadcast ADDR] [anycast ADDR]\n" \
1619        "        [label STRING] [scope SCOPE-ID]\n" \
1620        "        SCOPE-ID := [host | link | global | NUMBER]" \
1621
1622 #define ipcalc_trivial_usage \
1623        "[OPTIONS] ADDRESS[[/]NETMASK] [NETMASK]"
1624 #define ipcalc_full_usage "\n\n" \
1625        "Calculate IP network settings from a IP address\n" \
1626      "\nOptions:" \
1627         IF_FEATURE_IPCALC_LONG_OPTIONS( \
1628      "\n        -b,--broadcast  Display calculated broadcast address" \
1629      "\n        -n,--network    Display calculated network address" \
1630      "\n        -m,--netmask    Display default netmask for IP" \
1631         IF_FEATURE_IPCALC_FANCY( \
1632      "\n        -p,--prefix     Display the prefix for IP/NETMASK" \
1633      "\n        -h,--hostname   Display first resolved host name" \
1634      "\n        -s,--silent     Don't ever display error messages" \
1635         ) \
1636         ) \
1637         IF_NOT_FEATURE_IPCALC_LONG_OPTIONS( \
1638      "\n        -b      Display calculated broadcast address" \
1639      "\n        -n      Display calculated network address" \
1640      "\n        -m      Display default netmask for IP" \
1641         IF_FEATURE_IPCALC_FANCY( \
1642      "\n        -p      Display the prefix for IP/NETMASK" \
1643      "\n        -h      Display first resolved host name" \
1644      "\n        -s      Don't ever display error messages" \
1645         ) \
1646         )
1647
1648 #define ipcrm_trivial_usage \
1649        "[-MQS key] [-mqs id]"
1650 #define ipcrm_full_usage "\n\n" \
1651        "Upper-case options MQS remove an object by shmkey value.\n" \
1652        "Lower-case options remove an object by shmid value.\n" \
1653      "\nOptions:" \
1654      "\n        -mM     Remove memory segment after last detach" \
1655      "\n        -qQ     Remove message queue" \
1656      "\n        -sS     Remove semaphore" \
1657
1658 #define ipcs_trivial_usage \
1659        "[[-smq] -i shmid] | [[-asmq] [-tcplu]]"
1660 #define ipcs_full_usage "\n\n" \
1661        "        -i      Show specific resource" \
1662      "\nResource specification:" \
1663      "\n        -m      Shared memory segments" \
1664      "\n        -q      Message queues" \
1665      "\n        -s      Semaphore arrays" \
1666      "\n        -a      All (default)" \
1667      "\nOutput format:" \
1668      "\n        -t      Time" \
1669      "\n        -c      Creator" \
1670      "\n        -p      Pid" \
1671      "\n        -l      Limits" \
1672      "\n        -u      Summary" \
1673
1674 #define iplink_trivial_usage \
1675        "{ set DEVICE { up | down | arp { on | off } | show [DEVICE] }"
1676 #define iplink_full_usage "\n\n" \
1677        "iplink set DEVICE { up | down | arp | multicast { on | off } |\n" \
1678        "                        dynamic { on | off } |\n" \
1679        "                        mtu MTU }\n" \
1680        "iplink show [DEVICE]" \
1681
1682 #define iproute_trivial_usage \
1683        "{ list | flush | { add | del | change | append |\n" \
1684        "                replace | monitor } ROUTE }"
1685 #define iproute_full_usage "\n\n" \
1686        "iproute { list | flush } SELECTOR\n" \
1687        "iproute get ADDRESS [from ADDRESS iif STRING]\n" \
1688        "                        [oif STRING]  [tos TOS]\n" \
1689        "iproute { add | del | change | append | replace | monitor } ROUTE\n" \
1690        "                        SELECTOR := [root PREFIX] [match PREFIX] [proto RTPROTO]\n" \
1691        "                        ROUTE := [TYPE] PREFIX [tos TOS] [proto RTPROTO]\n" \
1692        "                                [metric METRIC]" \
1693
1694 #define iprule_trivial_usage \
1695        "{[list | add | del] RULE}"
1696 #define iprule_full_usage "\n\n" \
1697        "iprule [list | add | del] SELECTOR ACTION\n" \
1698        "        SELECTOR := [from PREFIX] [to PREFIX] [tos TOS] [fwmark FWMARK]\n" \
1699        "                        [dev STRING] [pref NUMBER]\n" \
1700        "        ACTION := [table TABLE_ID] [nat ADDRESS]\n" \
1701        "                        [prohibit | reject | unreachable]\n" \
1702        "                        [realms [SRCREALM/]DSTREALM]\n" \
1703        "        TABLE_ID := [local | main | default | NUMBER]" \
1704
1705 #define iptunnel_trivial_usage \
1706        "{ add | change | del | show } [NAME]\n" \
1707        "        [mode { ipip | gre | sit }]\n" \
1708        "        [remote ADDR] [local ADDR] [ttl TTL]"
1709 #define iptunnel_full_usage "\n\n" \
1710        "iptunnel { add | change | del | show } [NAME]\n" \
1711        "        [mode { ipip | gre | sit }] [remote ADDR] [local ADDR]\n" \
1712        "        [[i|o]seq] [[i|o]key KEY] [[i|o]csum]\n" \
1713        "        [ttl TTL] [tos TOS] [[no]pmtudisc] [dev PHYS_DEV]" \
1714
1715 #define kbd_mode_trivial_usage \
1716        "[-a|k|s|u] [-C TTY]"
1717 #define kbd_mode_full_usage "\n\n" \
1718        "Report or set the keyboard mode\n" \
1719      "\nOptions:" \
1720      "\n        -a      Default (ASCII)" \
1721      "\n        -k      Medium-raw (keyboard)" \
1722      "\n        -s      Raw (scancode)" \
1723      "\n        -u      Unicode (utf-8)" \
1724      "\n        -C TTY  Affect TTY instead of /dev/tty" \
1725
1726 #define kill_trivial_usage \
1727        "[-l] [-SIG] PID..."
1728 #define kill_full_usage "\n\n" \
1729        "Send a signal (default: TERM) to given PIDs\n" \
1730      "\nOptions:" \
1731      "\n        -l      List all signal names and numbers" \
1732 /*   "\n        -s SIG  Yet another way of specifying SIG" */ \
1733
1734 #define kill_example_usage \
1735        "$ ps | grep apache\n" \
1736        "252 root     root     S [apache]\n" \
1737        "263 www-data www-data S [apache]\n" \
1738        "264 www-data www-data S [apache]\n" \
1739        "265 www-data www-data S [apache]\n" \
1740        "266 www-data www-data S [apache]\n" \
1741        "267 www-data www-data S [apache]\n" \
1742        "$ kill 252\n"
1743
1744 #define killall_trivial_usage \
1745        "[-l] [-q] [-SIG] PROCESS_NAME..."
1746 #define killall_full_usage "\n\n" \
1747        "Send a signal (default: TERM) to given processes\n" \
1748      "\nOptions:" \
1749      "\n        -l      List all signal names and numbers" \
1750 /*   "\n        -s SIG  Yet another way of specifying SIG" */ \
1751      "\n        -q      Don't complain if no processes were killed" \
1752
1753 #define killall_example_usage \
1754        "$ killall apache\n"
1755
1756 #define killall5_trivial_usage \
1757        "[-l] [-SIG] [-o PID]..."
1758 #define killall5_full_usage "\n\n" \
1759        "Send a signal (default: TERM) to all processes outside current session\n" \
1760      "\nOptions:" \
1761      "\n        -l      List all signal names and numbers" \
1762      "\n        -o PID  Don't signal this PID" \
1763 /*   "\n        -s SIG  Yet another way of specifying SIG" */ \
1764
1765 #define klogd_trivial_usage \
1766        "[-c N] [-n]"
1767 #define klogd_full_usage "\n\n" \
1768        "Kernel logger\n" \
1769      "\nOptions:" \
1770      "\n        -c N    Only messages with level < N are printed to console" \
1771      "\n        -n      Run in foreground" \
1772
1773 #define length_trivial_usage \
1774        "STRING"
1775 #define length_full_usage "\n\n" \
1776        "Print STRING's length"
1777
1778 #define length_example_usage \
1779        "$ length Hello\n" \
1780        "5\n"
1781
1782 #define less_trivial_usage \
1783        "[-EMNmh~I?] [FILE]..."
1784 #define less_full_usage "\n\n" \
1785        "View FILE (or stdin) one screenful at a time\n" \
1786      "\nOptions:" \
1787      "\n        -E      Quit once the end of a file is reached" \
1788      "\n        -M,-m   Display status line with line numbers" \
1789      "\n                and percentage through the file" \
1790      "\n        -N      Prefix line number to each line" \
1791      "\n        -I      Ignore case in all searches" \
1792      "\n        -~      Suppress ~s displayed past the end of the file" \
1793
1794 #define linux32_trivial_usage NOUSAGE_STR
1795 #define linux32_full_usage ""
1796 #define linux64_trivial_usage NOUSAGE_STR
1797 #define linux64_full_usage ""
1798
1799 #define setarch_trivial_usage \
1800        "personality PROG ARGS"
1801 #define setarch_full_usage "\n\n" \
1802        "Personality may be:\n" \
1803        "        linux32         Set 32bit uname emulation\n" \
1804        "        linux64         Set 64bit uname emulation" \
1805
1806 #define ln_trivial_usage \
1807        "[OPTIONS] TARGET... LINK|DIR"
1808 #define ln_full_usage "\n\n" \
1809        "Create a link LINK or DIR/TARGET to the specified TARGET(s)\n" \
1810      "\nOptions:" \
1811      "\n        -s      Make symlinks instead of hardlinks" \
1812      "\n        -f      Remove existing destinations" \
1813      "\n        -n      Don't dereference symlinks - treat like normal file" \
1814      "\n        -b      Make a backup of the target (if exists) before link operation" \
1815      "\n        -S suf  Use suffix instead of ~ when making backup files" \
1816
1817 #define ln_example_usage \
1818        "$ ln -s BusyBox /tmp/ls\n" \
1819        "$ ls -l /tmp/ls\n" \
1820        "lrwxrwxrwx    1 root     root            7 Apr 12 18:39 ls -> BusyBox*\n"
1821
1822 #define load_policy_trivial_usage NOUSAGE_STR
1823 #define load_policy_full_usage ""
1824
1825 #define loadfont_trivial_usage \
1826        "< font"
1827 #define loadfont_full_usage "\n\n" \
1828        "Load a console font from stdin" \
1829 /*   "\n        -C TTY  Affect TTY instead of /dev/tty" */ \
1830
1831 #define loadfont_example_usage \
1832        "$ loadfont < /etc/i18n/fontname\n"
1833
1834 #define loadkmap_trivial_usage \
1835        "< keymap"
1836 #define loadkmap_full_usage "\n\n" \
1837        "Load a binary keyboard translation table from stdin\n" \
1838 /*   "\n        -C TTY  Affect TTY instead of /dev/tty" */ \
1839
1840 #define loadkmap_example_usage \
1841        "$ loadkmap < /etc/i18n/lang-keymap\n"
1842
1843 #define logger_trivial_usage \
1844        "[OPTIONS] [MESSAGE]"
1845 #define logger_full_usage "\n\n" \
1846        "Write MESSAGE (or stdin) to syslog\n" \
1847      "\nOptions:" \
1848      "\n        -s      Log to stderr as well as the system log" \
1849      "\n        -t TAG  Log using the specified tag (defaults to user name)" \
1850      "\n        -p PRIO Priority (numeric or facility.level pair)" \
1851
1852 #define logger_example_usage \
1853        "$ logger \"hello\"\n"
1854
1855 #define login_trivial_usage \
1856        "[-p] [-h HOST] [[-f] USER]"
1857 #define login_full_usage "\n\n" \
1858        "Begin a new session on the system\n" \
1859      "\nOptions:" \
1860      "\n        -f      Don't authenticate (user already authenticated)" \
1861      "\n        -h      Name of the remote host" \
1862      "\n        -p      Preserve environment" \
1863
1864 #define logname_trivial_usage \
1865        ""
1866 #define logname_full_usage "\n\n" \
1867        "Print the name of the current user"
1868 #define logname_example_usage \
1869        "$ logname\n" \
1870        "root\n"
1871
1872 #define logread_trivial_usage \
1873        "[-f]"
1874 #define logread_full_usage "\n\n" \
1875        "Show messages in syslogd's circular buffer\n" \
1876      "\nOptions:" \
1877      "\n        -f      Output data as log grows" \
1878
1879 #define losetup_trivial_usage \
1880        "[-o OFS] LOOPDEV FILE - associate loop devices\n" \
1881        "        losetup -d LOOPDEV - disassociate\n" \
1882        "        losetup [-f] - show"
1883 #define losetup_full_usage "\n\n" \
1884        "Options:" \
1885      "\n        -o OFS  Start OFS bytes into FILE" \
1886      "\n        -f      Show first free loop device" \
1887
1888 #define losetup_notes_usage \
1889        "No arguments will display all current associations.\n" \
1890        "One argument (losetup /dev/loop1) will display the current association\n" \
1891        "(if any), or disassociate it (with -d). The display shows the offset\n" \
1892        "and filename of the file the loop device is currently bound to.\n\n" \
1893        "Two arguments (losetup /dev/loop1 file.img) create a new association,\n" \
1894        "with an optional offset (-o 12345). Encryption is not yet supported.\n" \
1895        "losetup -f will show the first loop free loop device\n\n"
1896
1897 #define lpd_trivial_usage \
1898        "SPOOLDIR [HELPER [ARGS]]"
1899 #define lpd_full_usage "\n\n" \
1900        "SPOOLDIR must contain (symlinks to) device nodes or directories" \
1901      "\nwith names matching print queue names. In the first case, jobs are" \
1902      "\nsent directly to the device. Otherwise each job is stored in queue" \
1903      "\ndirectory and HELPER program is called. Name of file to print" \
1904      "\nis passed in $DATAFILE variable." \
1905      "\nExample:" \
1906      "\n        tcpsvd -E 0 515 softlimit -m 999999 lpd /var/spool ./print" \
1907
1908 #define lpq_trivial_usage \
1909        "[-P queue[@host[:port]]] [-U USERNAME] [-d JOBID]... [-fs]"
1910 #define lpq_full_usage "\n\n" \
1911        "Options:" \
1912      "\n        -P      lp service to connect to (else uses $PRINTER)" \
1913      "\n        -d      Delete jobs" \
1914      "\n        -f      Force any waiting job to be printed" \
1915      "\n        -s      Short display" \
1916
1917 #define lpr_trivial_usage \
1918        "-P queue[@host[:port]] -U USERNAME -J TITLE -Vmh [FILE]..."
1919 /* -C CLASS exists too, not shown.
1920  * CLASS is supposed to be printed on banner page, if one is requested */
1921 #define lpr_full_usage "\n\n" \
1922        "Options:" \
1923      "\n        -P      lp service to connect to (else uses $PRINTER)"\
1924      "\n        -m      Send mail on completion" \
1925      "\n        -h      Print banner page too" \
1926      "\n        -V      Verbose" \
1927
1928 #define lsattr_trivial_usage \
1929        "[-Radlv] [FILE]..."
1930 #define lsattr_full_usage "\n\n" \
1931        "List file attributes on an ext2 fs\n" \
1932      "\nOptions:" \
1933      "\n        -R      Recurse" \
1934      "\n        -a      Don't hide entries starting with ." \
1935      "\n        -d      List directory entries instead of contents" \
1936      "\n        -l      List long flag names" \
1937      "\n        -v      List the file's version/generation number" \
1938
1939 #define lspci_trivial_usage \
1940        "[-mk]"
1941 #define lspci_full_usage "\n\n" \
1942        "List all PCI devices" \
1943      "\n" \
1944      "\n        -m      Parseable output" \
1945      "\n        -k      Show driver" \
1946
1947 #define lsusb_trivial_usage NOUSAGE_STR
1948 #define lsusb_full_usage ""
1949
1950 #if ENABLE_FEATURE_MAKEDEVS_LEAF
1951 #define makedevs_trivial_usage \
1952        "NAME TYPE MAJOR MINOR FIRST LAST [s]"
1953 #define makedevs_full_usage "\n\n" \
1954        "Create a range of block or character special files" \
1955      "\n" \
1956      "\nTYPE is:" \
1957      "\n        b       Block device" \
1958      "\n        c       Character device" \
1959      "\n        f       FIFO, MAJOR and MINOR are ignored" \
1960      "\n" \
1961      "\nFIRST..LAST specify numbers appended to NAME." \
1962      "\nIf 's' is the last argument, the base device is created as well." \
1963      "\n" \
1964      "\nExamples:" \
1965      "\n        makedevs /dev/ttyS c 4 66 2 63   ->  ttyS2-ttyS63" \
1966      "\n        makedevs /dev/hda b 3 0 0 8 s    ->  hda,hda1-hda8"
1967 #define makedevs_example_usage \
1968        "# makedevs /dev/ttyS c 4 66 2 63\n" \
1969        "[creates ttyS2-ttyS63]\n" \
1970        "# makedevs /dev/hda b 3 0 0 8 s\n" \
1971        "[creates hda,hda1-hda8]\n"
1972 #endif
1973
1974 #if ENABLE_FEATURE_MAKEDEVS_TABLE
1975 #define makedevs_trivial_usage \
1976        "[-d device_table] rootdir"
1977 #define makedevs_full_usage "\n\n" \
1978        "Create a range of special files as specified in a device table.\n" \
1979        "Device table entries take the form of:\n" \
1980        "<type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>\n" \
1981        "Where name is the file name, type can be one of:\n" \
1982        "        f       Regular file\n" \
1983        "        d       Directory\n" \
1984        "        c       Character device\n" \
1985        "        b       Block device\n" \
1986        "        p       Fifo (named pipe)\n" \
1987        "uid is the user id for the target file, gid is the group id for the\n" \
1988        "target file. The rest of the entries (major, minor, etc) apply to\n" \
1989        "to device special files. A '-' may be used for blank entries."
1990 #define makedevs_example_usage \
1991        "For example:\n" \
1992        "<name>    <type> <mode><uid><gid><major><minor><start><inc><count>\n" \
1993        "/dev         d   755    0    0    -      -      -      -    -\n" \
1994        "/dev/console c   666    0    0    5      1      -      -    -\n" \
1995        "/dev/null    c   666    0    0    1      3      0      0    -\n" \
1996        "/dev/zero    c   666    0    0    1      5      0      0    -\n" \
1997        "/dev/hda     b   640    0    0    3      0      0      0    -\n" \
1998        "/dev/hda     b   640    0    0    3      1      1      1    15\n\n" \
1999        "Will Produce:\n" \
2000        "/dev\n" \
2001        "/dev/console\n" \
2002        "/dev/null\n" \
2003        "/dev/zero\n" \
2004        "/dev/hda\n" \
2005        "/dev/hda[0-15]\n"
2006 #endif
2007
2008 #define makemime_trivial_usage \
2009        "[OPTIONS] [FILE]..."
2010 #define makemime_full_usage "\n\n" \
2011        "Create multipart MIME-encoded message from FILEs\n" \
2012 /*     "Transfer encoding is base64, disposition is inline (not attachment)\n" */ \
2013      "\nOptions:" \
2014      "\n        -o FILE Output. Default: stdout" \
2015      "\n        -a HDR  Add header. Examples:" \
2016      "\n                \"From: user@host.org\", \"Date: `date -R`\"" \
2017      "\n        -c CT   Content type. Default: text/plain" \
2018      "\n        -C CS   Charset. Default: " CONFIG_FEATURE_MIME_CHARSET \
2019 /*   "\n        -e ENC  Transfer encoding. Ignored. base64 is assumed" */ \
2020      "\n" \
2021      "\nOther options are silently ignored" \
2022
2023 #define man_trivial_usage \
2024        "[-aw] [MANPAGE]..."
2025 #define man_full_usage "\n\n" \
2026        "Format and display manual page\n" \
2027      "\nOptions:" \
2028      "\n        -a      Display all pages" \
2029      "\n        -w      Show page locations" \
2030
2031 #define matchpathcon_trivial_usage \
2032        "[-n] [-N] [-f file_contexts_file] [-p prefix] [-V]"
2033 #define matchpathcon_full_usage "\n\n" \
2034        "        -n      Don't display path" \
2035      "\n        -N      Don't use translations" \
2036      "\n        -f      Use alternate file_context file" \
2037      "\n        -p      Use prefix to speed translations" \
2038      "\n        -V      Verify file context on disk matches defaults" \
2039
2040 #define md5sum_trivial_usage \
2041        "[FILE]..." \
2042         IF_FEATURE_MD5_SHA1_SUM_CHECK("\n   or: md5sum -c [-sw] [FILE]")
2043 #define md5sum_full_usage "\n\n" \
2044        "Print" IF_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " MD5 checksums" \
2045         IF_FEATURE_MD5_SHA1_SUM_CHECK( "\n" \
2046      "\nOptions:" \
2047      "\n        -c      Check sums against given list" \
2048      "\n        -s      Don't output anything, status code shows success" \
2049      "\n        -w      Warn about improperly formatted checksum lines" \
2050         )
2051
2052 #define md5sum_example_usage \
2053        "$ md5sum < busybox\n" \
2054        "6fd11e98b98a58f64ff3398d7b324003\n" \
2055        "$ md5sum busybox\n" \
2056        "6fd11e98b98a58f64ff3398d7b324003  busybox\n" \
2057        "$ md5sum -c -\n" \
2058        "6fd11e98b98a58f64ff3398d7b324003  busybox\n" \
2059        "busybox: OK\n" \
2060        "^D\n"
2061
2062 #define sha1sum_trivial_usage \
2063        "[FILE]..." \
2064         IF_FEATURE_MD5_SHA1_SUM_CHECK("\n   or: sha1sum -c [-sw] [FILE]")
2065 #define sha1sum_full_usage "\n\n" \
2066        "Print" IF_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " SHA1 checksums" \
2067         IF_FEATURE_MD5_SHA1_SUM_CHECK( "\n" \
2068      "\nOptions:" \
2069      "\n        -c      Check sums against given list" \
2070      "\n        -s      Don't output anything, status code shows success" \
2071      "\n        -w      Warn about improperly formatted checksum lines" \
2072         )
2073
2074 #define sha256sum_trivial_usage \
2075        "[FILE]..." \
2076         IF_FEATURE_MD5_SHA1_SUM_CHECK("\n   or: sha256sum -c [-sw] [FILE]")
2077 #define sha256sum_full_usage "\n\n" \
2078        "Print" IF_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " SHA256 checksums" \
2079         IF_FEATURE_MD5_SHA1_SUM_CHECK( "\n" \
2080      "\nOptions:" \
2081      "\n        -c      Check sums against given list" \
2082      "\n        -s      Don't output anything, status code shows success" \
2083      "\n        -w      Warn about improperly formatted checksum lines" \
2084         )
2085
2086 #define sha512sum_trivial_usage \
2087        "[FILE]..." \
2088         IF_FEATURE_MD5_SHA1_SUM_CHECK("\n   or: sha512sum -c [-sw] [FILE]")
2089 #define sha512sum_full_usage "\n\n" \
2090        "Print" IF_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " SHA512 checksums" \
2091         IF_FEATURE_MD5_SHA1_SUM_CHECK( "\n" \
2092      "\nOptions:" \
2093      "\n        -c      Check sums against given list" \
2094      "\n        -s      Don't output anything, status code shows success" \
2095      "\n        -w      Warn about improperly formatted checksum lines" \
2096         )
2097
2098 #define mdev_trivial_usage \
2099        "[-s]"
2100 #define mdev_full_usage "\n\n" \
2101        "        -s      Scan /sys and populate /dev during system boot\n" \
2102        "\n" \
2103        "It can be run by kernel as a hotplug helper. To activate it:\n" \
2104        " echo /sbin/mdev > /proc/sys/kernel/hotplug\n" \
2105         IF_FEATURE_MDEV_CONF( \
2106        "It uses /etc/mdev.conf with lines\n" \
2107        "[-]DEVNAME UID:GID PERM" \
2108                         IF_FEATURE_MDEV_RENAME(" [>|=PATH]") \
2109                         IF_FEATURE_MDEV_EXEC(" [@|$|*PROG]") \
2110         ) \
2111
2112 #define mdev_notes_usage "" \
2113         IF_FEATURE_MDEV_CONFIG( \
2114        "The mdev config file contains lines that look like:\n" \
2115        "  hd[a-z][0-9]* 0:3 660\n\n" \
2116        "That's device name (with regex match), uid:gid, and permissions.\n\n" \
2117         IF_FEATURE_MDEV_EXEC( \
2118        "Optionally, that can be followed (on the same line) by a special character\n" \
2119        "and a command line to run after creating/before deleting the corresponding\n" \
2120        "device(s). The environment variable $MDEV indicates the active device node\n" \
2121        "(which is useful if it's a regex match). For example:\n\n" \
2122        "  hdc root:cdrom 660  *ln -s $MDEV cdrom\n\n" \
2123        "The special characters are @ (run after creating), $ (run before deleting),\n" \
2124        "and * (run both after creating and before deleting). The commands run in\n" \
2125        "the /dev directory, and use system() which calls /bin/sh.\n\n" \
2126         ) \
2127        "Config file parsing stops on the first matching line. If no config\n" \
2128        "entry is matched, devices are created with default 0:0 660. (Make\n" \
2129        "the last line match .* to override this.)\n\n" \
2130         )
2131
2132 #define microcom_trivial_usage \
2133        "[-d DELAY] [-t TIMEOUT] [-s SPEED] [-X] TTY"
2134 #define microcom_full_usage "\n\n" \
2135        "Copy bytes for stdin to TTY and from TTY to stdout\n" \
2136      "\nOptions:" \
2137      "\n        -d      Wait up to DELAY ms for TTY output before sending every" \
2138      "\n                next byte to it" \
2139      "\n        -t      Exit if both stdin and TTY are silent for TIMEOUT ms" \
2140      "\n        -s      Set serial line to SPEED" \
2141      "\n        -X      Disable special meaning of NUL and Ctrl-X from stdin" \
2142
2143 #define mkdir_trivial_usage \
2144        "[OPTIONS] DIRECTORY..."
2145 #define mkdir_full_usage "\n\n" \
2146        "Create DIRECTORY\n" \
2147      "\nOptions:" \
2148      "\n        -m MODE Mode" \
2149      "\n        -p      No error if exists; make parent directories as needed" \
2150         IF_SELINUX( \
2151      "\n        -Z      Set security context" \
2152         )
2153
2154 #define mkdir_example_usage \
2155        "$ mkdir /tmp/foo\n" \
2156        "$ mkdir /tmp/foo\n" \
2157        "/tmp/foo: File exists\n" \
2158        "$ mkdir /tmp/foo/bar/baz\n" \
2159        "/tmp/foo/bar/baz: No such file or directory\n" \
2160        "$ mkdir -p /tmp/foo/bar/baz\n"
2161
2162 #define mkfifo_trivial_usage \
2163        "[-m MODE] " IF_SELINUX("[-Z] ") "NAME"
2164 #define mkfifo_full_usage "\n\n" \
2165        "Create named pipe\n" \
2166      "\nOptions:" \
2167      "\n        -m MODE Mode (default a=rw)" \
2168         IF_SELINUX( \
2169      "\n        -Z      Set security context" \
2170         )
2171
2172 #define mkfs_ext2_trivial_usage \
2173        "[-Fn] " \
2174        /* "[-c|-l filename] " */ \
2175        "[-b BLK_SIZE] " \
2176        /* "[-f fragment-size] [-g blocks-per-group] " */ \
2177        "[-i INODE_RATIO] [-I INODE_SIZE] " \
2178        /* "[-j] [-J journal-options] [-N number-of-inodes] " */ \
2179        "[-m RESERVED_PERCENT] " \
2180        /* "[-o creator-os] [-O feature[,...]] [-q] " */ \
2181        /* "[r fs-revision-level] [-E extended-options] [-v] [-F] " */ \
2182        "[-L LABEL] " \
2183        /* "[-M last-mounted-directory] [-S] [-T filesystem-type] " */ \
2184        "BLOCKDEV [KBYTES]"
2185 #define mkfs_ext2_full_usage "\n\n" \
2186        "        -b BLK_SIZE     Block size, bytes" \
2187 /*   "\n        -c              Check device for bad blocks" */ \
2188 /*   "\n        -E opts         Set extended options" */ \
2189 /*   "\n        -f size         Fragment size in bytes" */ \
2190      "\n        -F              Force" \
2191 /*   "\n        -g N            Number of blocks in a block group" */ \
2192      "\n        -i RATIO        Max number of files is filesystem_size / RATIO" \
2193      "\n        -I BYTES        Inode size (min 128)" \
2194 /*   "\n        -j              Create a journal (ext3)" */ \
2195 /*   "\n        -J opts         Set journal options (size/device)" */ \
2196 /*   "\n        -l file         Read bad blocks list from file" */ \
2197      "\n        -L LBL          Volume label" \
2198      "\n        -m PERCENT      Percent of blocks to reserve for admin" \
2199 /*   "\n        -M dir          Set last mounted directory" */ \
2200      "\n        -n              Dry run" \
2201 /*   "\n        -N N            Number of inodes to create" */ \
2202 /*   "\n        -o os           Set the 'creator os' field" */ \
2203 /*   "\n        -O features     Dir_index/filetype/has_journal/journal_dev/sparse_super" */ \
2204 /*   "\n        -q              Quiet" */ \
2205 /*   "\n        -r rev          Set filesystem revision" */ \
2206 /*   "\n        -S              Write superblock and group descriptors only" */ \
2207 /*   "\n        -T fs-type      Set usage type (news/largefile/largefile4)" */ \
2208 /*   "\n        -v              Verbose" */ \
2209
2210 #define mkfs_minix_trivial_usage \
2211        "[-c | -l FILE] [-nXX] [-iXX] BLOCKDEV [KBYTES]"
2212 #define mkfs_minix_full_usage "\n\n" \
2213        "Make a MINIX filesystem\n" \
2214      "\nOptions:" \
2215      "\n        -c              Check device for bad blocks" \
2216      "\n        -n [14|30]      Maximum length of filenames" \
2217      "\n        -i INODES       Number of inodes for the filesystem" \
2218      "\n        -l FILE         Read bad blocks list from FILE" \
2219      "\n        -v              Make version 2 filesystem" \
2220
2221 #define mkfs_reiser_trivial_usage \
2222        "[-f] [-l LABEL] BLOCKDEV [4K-BLOCKS]"
2223
2224 #define mkfs_reiser_full_usage "\n\n" \
2225        "Make a ReiserFS V3 filesystem\n" \
2226      "\nOptions:" \
2227      "\n        -f      Force" \
2228      "\n        -l LBL  Volume label" \
2229
2230 #define mkfs_vfat_trivial_usage \
2231        "[-v] [-n LABEL] BLOCKDEV [KBYTES]"
2232 /* Accepted but ignored:
2233        "[-c] [-C] [-I] [-l bad-block-file] [-b backup-boot-sector] "
2234        "[-m boot-msg-file] [-i volume-id] "
2235        "[-s sectors-per-cluster] [-S logical-sector-size] [-f number-of-FATs] "
2236        "[-h hidden-sectors] [-F fat-size] [-r root-dir-entries] [-R reserved-sectors] "
2237 */
2238 #define mkfs_vfat_full_usage "\n\n" \
2239        "Make a FAT32 filesystem\n" \
2240      "\nOptions:" \
2241 /*   "\n        -c      Check device for bad blocks" */ \
2242      "\n        -v      Verbose" \
2243 /*   "\n        -I      Allow to use entire disk device (e.g. /dev/hda)" */ \
2244      "\n        -n LBL  Volume label" \
2245
2246 #define mknod_trivial_usage \
2247        "[-m MODE] " IF_SELINUX("[-Z] ") "NAME TYPE MAJOR MINOR"
2248 #define mknod_full_usage "\n\n" \
2249        "Create a special file (block, character, or pipe)\n" \
2250      "\nOptions:" \
2251      "\n        -m MODE Creation mode (default a=rw)" \
2252         IF_SELINUX( \
2253      "\n        -Z      Set security context" \
2254         ) \
2255      "\nTYPE:" \
2256      "\n        b       Block device" \
2257      "\n        c or u  Character device" \
2258      "\n        p       Named pipe (MAJOR and MINOR are ignored)" \
2259
2260 #define mknod_example_usage \
2261        "$ mknod /dev/fd0 b 2 0\n" \
2262        "$ mknod -m 644 /tmp/pipe p\n"
2263
2264 #define mkswap_trivial_usage \
2265        "[-L LBL] BLOCKDEV [KBYTES]"
2266 #define mkswap_full_usage "\n\n" \
2267        "Prepare BLOCKDEV to be used as swap partition\n" \
2268      "\nOptions:" \
2269      "\n        -L LBL  Label" \
2270
2271 #define more_trivial_usage \
2272        "[FILE]..."
2273 #define more_full_usage "\n\n" \
2274        "View FILE (or stdin) one screenful at a time"
2275
2276 #define more_example_usage \
2277        "$ dmesg | more\n"
2278
2279 #define mount_trivial_usage \
2280        "[OPTIONS] [-o OPTS] DEVICE NODE"
2281 #define mount_full_usage "\n\n" \
2282        "Mount a filesystem. Filesystem autodetection requires /proc.\n" \
2283      "\nOptions:" \
2284      "\n        -a              Mount all filesystems in fstab" \
2285         IF_FEATURE_MOUNT_FAKE( \
2286         IF_FEATURE_MTAB_SUPPORT( \
2287      "\n        -f              Update /etc/mtab, but don't mount" \
2288         ) \
2289         IF_NOT_FEATURE_MTAB_SUPPORT( \
2290      "\n        -f              Dry run" \
2291         ) \
2292         ) \
2293         IF_FEATURE_MOUNT_HELPERS( \
2294      "\n        -i              Don't run mount helper" \
2295         ) \
2296         IF_FEATURE_MTAB_SUPPORT( \
2297      "\n        -n              Don't update /etc/mtab" \
2298         ) \
2299      "\n        -r              Read-only mount" \
2300      "\n        -w              Read-write mount (default)" \
2301      "\n        -t FSTYPE       Filesystem type" \
2302      "\n        -O OPT          Mount only filesystems with option OPT (-a only)" \
2303      "\n-o OPT:" \
2304         IF_FEATURE_MOUNT_LOOP( \
2305      "\n        loop            Ignored (loop devices are autodetected)" \
2306         ) \
2307         IF_FEATURE_MOUNT_FLAGS( \
2308      "\n        [a]sync         Writes are [a]synchronous" \
2309      "\n        [no]atime       Disable/enable updates to inode access times" \
2310      "\n        [no]diratime    Disable/enable atime updates to directories" \
2311      "\n        [no]relatime    Disable/enable atime updates relative to modification time" \
2312      "\n        [no]dev         (Dis)allow use of special device files" \
2313      "\n        [no]exec        (Dis)allow use of executable files" \
2314      "\n        [no]suid        (Dis)allow set-user-id-root programs" \
2315      "\n        [r]shared       Convert [recursively] to a shared subtree" \
2316      "\n        [r]slave        Convert [recursively] to a slave subtree" \
2317      "\n        [r]private      Convert [recursively] to a private subtree" \
2318      "\n        [un]bindable    Make mount point [un]able to be bind mounted" \
2319      "\n        [r]bind         Bind a file or directory [recursively] to another location" \
2320      "\n        move            Relocate an existing mount point" \
2321         ) \
2322      "\n        remount         Remount a mounted filesystem, changing flags" \
2323      "\n        ro/rw           Same as -r/-w" \
2324      "\n" \
2325      "\nThere are filesystem-specific -o flags." \
2326
2327 #define mount_example_usage \
2328        "$ mount\n" \
2329        "/dev/hda3 on / type minix (rw)\n" \
2330        "proc on /proc type proc (rw)\n" \
2331        "devpts on /dev/pts type devpts (rw)\n" \
2332        "$ mount /dev/fd0 /mnt -t msdos -o ro\n" \
2333        "$ mount /tmp/diskimage /opt -t ext2 -o loop\n" \
2334        "$ mount cd_image.iso mydir\n"
2335 #define mount_notes_usage \
2336        "Returns 0 for success, number of failed mounts for -a, or errno for one mount."
2337
2338 #define mountpoint_trivial_usage \
2339        "[-q] <[-dn] DIR | -x DEVICE>"
2340 #define mountpoint_full_usage "\n\n" \
2341        "Check if the directory is a mountpoint\n" \
2342      "\nOptions:" \
2343      "\n        -q      Quiet" \
2344      "\n        -d      Print major/minor device number of the filesystem" \
2345      "\n        -n      Print device name of the filesystem" \
2346      "\n        -x      Print major/minor device number of the blockdevice" \
2347
2348 #define mountpoint_example_usage \
2349        "$ mountpoint /proc\n" \
2350        "/proc is not a mountpoint\n" \
2351        "$ mountpoint /sys\n" \
2352        "/sys is a mountpoint\n"
2353
2354 #define mt_trivial_usage \
2355        "[-f device] opcode value"
2356 #define mt_full_usage "\n\n" \
2357        "Control magnetic tape drive operation\n" \
2358        "\n" \
2359        "Available Opcodes:\n" \
2360        "\n" \
2361        "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n" \
2362        "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n" \
2363        "ras3 reset retension rewind rewoffline seek setblk setdensity\n" \
2364        "setpart tell unload unlock weof wset" \
2365
2366 #define nohup_trivial_usage \
2367        "PROG ARGS"
2368 #define nohup_full_usage "\n\n" \
2369        "Run PROG immune to hangups, with output to a non-tty"
2370 #define nohup_example_usage \
2371        "$ nohup make &"
2372
2373 #define nslookup_trivial_usage \
2374        "[HOST] [SERVER]"
2375 #define nslookup_full_usage "\n\n" \
2376        "Query the nameserver for the IP address of the given HOST\n" \
2377        "optionally using a specified DNS server"
2378 #define nslookup_example_usage \
2379        "$ nslookup localhost\n" \
2380        "Server:     default\n" \
2381        "Address:    default\n" \
2382        "\n" \
2383        "Name:       debian\n" \
2384        "Address:    127.0.0.1\n"
2385
2386 #define ntpd_trivial_usage \
2387         "[-dnqNw"IF_FEATURE_NTPD_SERVER("l")"] [-S PROG] [-p PEER]..."
2388 #define ntpd_full_usage "\n\n" \
2389        "NTP client/server\n" \
2390      "\nOptions:" \
2391      "\n        -d      Verbose" \
2392      "\n        -n      Do not daemonize" \
2393      "\n        -q      Quit after clock is set" \
2394      "\n        -N      Run at high priority" \
2395      "\n        -w      Do not set time (only query peers), implies -n" \
2396         IF_FEATURE_NTPD_SERVER( \
2397      "\n        -l      Run as server on port 123" \
2398         ) \
2399      "\n        -S PROG Run PROG after stepping time, stratum change, and every 11 mins" \
2400      "\n        -p PEER Obtain time from PEER (may be repeated)" \
2401
2402 #define od_trivial_usage \
2403        "[-aBbcDdeFfHhIiLlOovXx] " IF_DESKTOP("[-t TYPE] ") "[FILE]"
2404 #define od_full_usage "\n\n" \
2405        "Write an unambiguous representation, octal bytes by default, of FILE\n" \
2406        "(or stdin) to stdout"
2407
2408 #define openvt_trivial_usage \
2409        "[-c N] [-sw] [PROG ARGS]"
2410 #define openvt_full_usage "\n\n" \
2411        "Start PROG on a new virtual terminal\n" \
2412      "\nOptions:" \
2413      "\n        -c N    Use specified VT" \
2414      "\n        -s      Switch to the VT" \
2415 /*   "\n        -l      Run PROG as login shell (by prepending '-')" */ \
2416      "\n        -w      Wait for PROG to exit" \
2417
2418 #define openvt_example_usage \
2419        "openvt 2 /bin/ash\n"
2420
2421 /*
2422 #define parse_trivial_usage \
2423        "[-n MAXTOKENS] [-m MINTOKENS] [-d DELIMS] [-f FLAGS] FILE..."
2424 #define parse_full_usage ""
2425 */
2426
2427 #define passwd_trivial_usage \
2428        "[OPTIONS] [USER]"
2429 #define passwd_full_usage "\n\n" \
2430        "Change USER's password. If no USER is specified,\n" \
2431        "changes the password for the current user.\n" \
2432      "\nOptions:" \
2433      "\n        -a ALG  Algorithm to use for password (des, md5)" /* ", sha1)" */ \
2434      "\n        -d      Delete password for the account" \
2435      "\n        -l      Lock (disable) account" \
2436      "\n        -u      Unlock (re-enable) account" \
2437
2438 #define chpasswd_trivial_usage \
2439         IF_LONG_OPTS("[--md5|--encrypted]") IF_NOT_LONG_OPTS("[-m|-e]")
2440 #define chpasswd_full_usage "\n\n" \
2441        "Read user:password from stdin and update /etc/passwd\n" \
2442      "\nOptions:" \
2443         IF_LONG_OPTS( \
2444      "\n        -e,--encrypted  Supplied passwords are in encrypted form" \
2445      "\n        -m,--md5        Use MD5 encryption instead of DES" \
2446         ) \
2447         IF_NOT_LONG_OPTS( \
2448      "\n        -e      Supplied passwords are in encrypted form" \
2449      "\n        -m      Use MD5 encryption instead of DES" \
2450         )
2451
2452 #define pgrep_trivial_usage \
2453        "[-flnovx] [-s SID|-P PPID|PATTERN]"
2454 #define pgrep_full_usage "\n\n" \
2455        "Display process(es) selected by regex PATTERN\n" \
2456      "\nOptions:" \
2457      "\n        -l      Show command name too" \
2458      "\n        -f      Match against entire command line" \
2459      "\n        -n      Show the newest process only" \
2460      "\n        -o      Show the oldest process only" \
2461      "\n        -v      Negate the match" \
2462      "\n        -x      Match whole name (not substring)" \
2463      "\n        -s      Match session ID (0 for current)" \
2464      "\n        -P      Match parent process ID" \
2465
2466 #if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT)
2467 #define pidof_trivial_usage \
2468        "[OPTIONS] [NAME]..."
2469 #define USAGE_PIDOF "\n\nOptions:"
2470 #else
2471 #define pidof_trivial_usage \
2472        "[NAME]..."
2473 #define USAGE_PIDOF /* none */
2474 #endif
2475 #define pidof_full_usage "\n\n" \
2476        "List PIDs of all processes with names that match NAMEs" \
2477         USAGE_PIDOF \
2478         IF_FEATURE_PIDOF_SINGLE( \
2479      "\n        -s      Show only one PID" \
2480         ) \
2481         IF_FEATURE_PIDOF_OMIT( \
2482      "\n        -o PID  Omit given pid" \
2483      "\n                Use %PPID to omit pid of pidof's parent" \
2484         ) \
2485
2486 #define pidof_example_usage \
2487        "$ pidof init\n" \
2488        "1\n" \
2489         IF_FEATURE_PIDOF_OMIT( \
2490        "$ pidof /bin/sh\n20351 5973 5950\n") \
2491         IF_FEATURE_PIDOF_OMIT( \
2492        "$ pidof /bin/sh -o %PPID\n20351 5950")
2493
2494 #define pipe_progress_trivial_usage NOUSAGE_STR
2495 #define pipe_progress_full_usage ""
2496
2497 #define pivot_root_trivial_usage \
2498        "NEW_ROOT PUT_OLD"
2499 #define pivot_root_full_usage "\n\n" \
2500        "Move the current root file system to PUT_OLD and make NEW_ROOT\n" \
2501        "the new root file system"
2502
2503 #define pkill_trivial_usage \
2504        "[-l|-SIGNAL] [-fnovx] [-s SID|-P PPID|PATTERN]"
2505 #define pkill_full_usage "\n\n" \
2506        "Send a signal to process(es) selected by regex PATTERN\n" \
2507      "\nOptions:" \
2508      "\n        -l      List all signals" \
2509      "\n        -f      Match against entire command line" \
2510      "\n        -n      Signal the newest process only" \
2511      "\n        -o      Signal the oldest process only" \
2512      "\n        -v      Negate the match" \
2513      "\n        -x      Match whole name (not substring)" \
2514      "\n        -s      Match session ID (0 for current)" \
2515      "\n        -P      Match parent process ID" \
2516
2517 #define popmaildir_trivial_usage \
2518        "[OPTIONS] MAILDIR [CONN_HELPER ARGS]"
2519 #define popmaildir_full_usage "\n\n" \
2520        "Fetch content of remote mailbox to local maildir\n" \
2521      "\nOptions:" \
2522 /*   "\n        -b              Binary mode. Ignored" */ \
2523 /*   "\n        -d              Debug. Ignored" */ \
2524 /*   "\n        -m              Show used memory. Ignored" */ \
2525 /*   "\n        -V              Show version. Ignored" */ \
2526 /*   "\n        -c              Use tcpclient. Ignored" */ \
2527 /*   "\n        -a              Use APOP protocol. Implied. If server supports APOP -> use it" */ \
2528      "\n        -s              Skip authorization" \
2529      "\n        -T              Get messages with TOP instead of RETR" \
2530      "\n        -k              Keep retrieved messages on the server" \
2531      "\n        -t SEC          Network timeout" \
2532         IF_FEATURE_POPMAILDIR_DELIVERY( \
2533      "\n        -F \"PROG ARGS\"        Filter program (may be repeated)" \
2534      "\n        -M \"PROG ARGS\"        Delivery program" \
2535         ) \
2536      "\n" \
2537      "\nFetch from plain POP3 server:" \
2538      "\npopmaildir -k DIR nc pop3.server.com 110 <user_and_pass.txt" \
2539      "\nFetch from SSLed POP3 server and delete fetched emails:" \
2540      "\npopmaildir DIR -- openssl s_client -quiet -connect pop3.server.com:995 <user_and_pass.txt"
2541 /*   "\n        -R BYTES        Remove old messages on the server >= BYTES. Ignored" */
2542 /*   "\n        -Z N1-N2        Remove messages from N1 to N2 (dangerous). Ignored" */
2543 /*   "\n        -L BYTES        Don't retrieve new messages >= BYTES. Ignored" */
2544 /*   "\n        -H LINES        Type first LINES of a message. Ignored" */
2545 #define popmaildir_example_usage \
2546        "$ popmaildir -k ~/Maildir -- nc pop.drvv.ru 110 [<password_file]\n" \
2547        "$ popmaildir ~/Maildir -- openssl s_client -quiet -connect pop.gmail.com:995 [<password_file]\n"
2548
2549 #define printenv_trivial_usage \
2550        "[VARIABLE]..."
2551 #define printenv_full_usage "\n\n" \
2552        "Print environment VARIABLEs.\n" \
2553        "If no VARIABLE specified, print all."
2554
2555 #define printf_trivial_usage \
2556        "FORMAT [ARGUMENT]..."
2557 #define printf_full_usage "\n\n" \
2558        "Format and print ARGUMENT(s) according to FORMAT,\n" \
2559        "where FORMAT controls the output exactly as in C printf"
2560 #define printf_example_usage \
2561        "$ printf \"Val=%d\\n\" 5\n" \
2562        "Val=5\n"
2563
2564
2565 #if ENABLE_DESKTOP
2566
2567 #define ps_trivial_usage \
2568        "[-o COL1,COL2=HEADER]" IF_FEATURE_SHOW_THREADS(" [-T]")
2569 #define ps_full_usage "\n\n" \
2570        "Show list of processes\n" \
2571      "\nOptions:" \
2572      "\n        -o COL1,COL2=HEADER     Select columns for display" \
2573         IF_FEATURE_SHOW_THREADS( \
2574      "\n        -T                      Show threads" \
2575         )
2576
2577 #else /* !ENABLE_DESKTOP */
2578
2579 #if !ENABLE_SELINUX && !ENABLE_FEATURE_PS_WIDE
2580 #define USAGE_PS "\nThis version of ps accepts no options"
2581 #else
2582 #define USAGE_PS "\nOptions:"
2583 #endif
2584
2585 #define ps_trivial_usage \
2586        ""
2587 #define ps_full_usage "\n\n" \
2588        "Show list of processes\n" \
2589         USAGE_PS \
2590         IF_SELINUX( \
2591      "\n        -Z      Show selinux context" \
2592         ) \
2593         IF_FEATURE_PS_WIDE( \
2594      "\n        w       Wide output" \
2595         )
2596
2597 #endif /* ENABLE_DESKTOP */
2598
2599 #define ps_example_usage \
2600        "$ ps\n" \
2601        "  PID  Uid      Gid State Command\n" \
2602        "    1 root     root     S init\n" \
2603        "    2 root     root     S [kflushd]\n" \
2604        "    3 root     root     S [kupdate]\n" \
2605        "    4 root     root     S [kpiod]\n" \
2606        "    5 root     root     S [kswapd]\n" \
2607        "  742 andersen andersen S [bash]\n" \
2608        "  743 andersen andersen S -bash\n" \
2609        "  745 root     root     S [getty]\n" \
2610        " 2990 andersen andersen R ps\n" \
2611
2612 #define pscan_trivial_usage \
2613        "[-cb] [-p MIN_PORT] [-P MAX_PORT] [-t TIMEOUT] [-T MIN_RTT] HOST"
2614 #define pscan_full_usage "\n\n" \
2615        "Scan a host, print all open ports\n" \
2616      "\nOptions:" \
2617      "\n        -c      Show closed ports too" \
2618      "\n        -b      Show blocked ports too" \
2619      "\n        -p      Scan from this port (default 1)" \
2620      "\n        -P      Scan up to this port (default 1024)" \
2621      "\n        -t      Timeout (default 5000 ms)" \
2622      "\n        -T      Minimum rtt (default 5 ms, increase for congested hosts)" \
2623
2624 #define pwd_trivial_usage \
2625        ""
2626 #define pwd_full_usage "\n\n" \
2627        "Print the full filename of the current working directory"
2628 #define pwd_example_usage \
2629        "$ pwd\n" \
2630        "/root\n"
2631
2632 #define raidautorun_trivial_usage \
2633        "DEVICE"
2634 #define raidautorun_full_usage "\n\n" \
2635        "Tell the kernel to automatically search and start RAID arrays"
2636 #define raidautorun_example_usage \
2637        "$ raidautorun /dev/md0"
2638
2639 #define rdate_trivial_usage \
2640        "[-sp] HOST"
2641 #define rdate_full_usage "\n\n" \
2642        "Get and possibly set the system date and time from a remote HOST\n" \
2643      "\nOptions:" \
2644      "\n        -s      Set the system date and time (default)" \
2645      "\n        -p      Print the date and time" \
2646
2647 #define rdev_trivial_usage \
2648        ""
2649 #define rdev_full_usage "\n\n" \
2650        "Print the device node associated with the filesystem mounted at '/'"
2651 #define rdev_example_usage \
2652        "$ rdev\n" \
2653        "/dev/mtdblock9 /\n"
2654
2655 #define readahead_trivial_usage \
2656        "[FILE]..."
2657 #define readahead_full_usage "\n\n" \
2658        "Preload FILEs to RAM"
2659
2660 #define readlink_trivial_usage \
2661         IF_FEATURE_READLINK_FOLLOW("[-fnv] ") "FILE"
2662 #define readlink_full_usage "\n\n" \
2663        "Display the value of a symlink" \
2664         IF_FEATURE_READLINK_FOLLOW( "\n" \
2665      "\nOptions:" \
2666      "\n        -f      Canonicalize by following all symlinks" \
2667      "\n        -n      Don't add newline" \
2668      "\n        -v      Verbose" \
2669         ) \
2670
2671 #define readprofile_trivial_usage \
2672        "[OPTIONS]"
2673 #define readprofile_full_usage "\n\n" \
2674        "Options:" \
2675      "\n        -m mapfile      (Default: /boot/System.map)" \
2676      "\n        -p profile      (Default: /proc/profile)" \
2677      "\n        -M NUM          Set the profiling multiplier to NUM" \
2678      "\n        -i              Print only info about the sampling step" \
2679      "\n        -v              Verbose" \
2680      "\n        -a              Print all symbols, even if count is 0" \
2681      "\n        -b              Print individual histogram-bin counts" \
2682      "\n        -s              Print individual counters within functions" \
2683      "\n        -r              Reset all the counters (root only)" \
2684      "\n        -n              Disable byte order auto-detection" \
2685
2686 #define realpath_trivial_usage \
2687        "FILE..."
2688 #define realpath_full_usage "\n\n" \
2689        "Return the absolute pathnames of given FILE"
2690
2691 #define reformime_trivial_usage \
2692        "[OPTIONS] [FILE]..."
2693 #define reformime_full_usage "\n\n" \
2694        "Parse MIME-encoded message\n" \
2695      "\nOptions:" \
2696      "\n        -x PREFIX       Extract content of MIME sections to files" \
2697      "\n        -X PROG ARGS    Filter content of MIME sections through PROG" \
2698      "\n                        Must be the last option" \
2699      "\n" \
2700      "\nOther options are silently ignored" \
2701
2702 #define scriptreplay_trivial_usage \
2703        "timingfile [typescript [divisor]]"
2704 #define scriptreplay_full_usage "\n\n" \
2705        "Play back typescripts, using timing information"
2706
2707 #define reset_trivial_usage \
2708        ""
2709 #define reset_full_usage "\n\n" \
2710        "Reset the screen"
2711
2712 #define resize_trivial_usage \
2713        ""
2714 #define resize_full_usage "\n\n" \
2715        "Resize the screen"
2716
2717 #define restorecon_trivial_usage \
2718        "[-iFnRv] [-e EXCLUDEDIR]... [-o FILE] [-f FILE]"
2719 #define restorecon_full_usage "\n\n" \
2720        "Reset security contexts of files in pathname\n" \
2721      "\n        -i      Ignore files that don't exist" \
2722      "\n        -f FILE File with list of files to process" \
2723      "\n        -e DIR  Directory to exclude" \
2724      "\n        -R,-r   Recurse" \
2725      "\n        -n      Don't change any file labels" \
2726      "\n        -o FILE Save list of files with incorrect context" \
2727      "\n        -v      Verbose" \
2728      "\n        -vv     Show changed labels" \
2729      "\n        -F      Force reset of context to match file_context" \
2730      "\n                for customizable files, or the user section," \
2731      "\n                if it has changed" \
2732
2733 #define rfkill_trivial_usage \
2734        "COMMAND [INDEX|TYPE]"
2735 #define rfkill_full_usage "\n\n" \
2736        "Enable/disable wireless devices\n" \
2737        "\nCommands:" \
2738      "\n        list [INDEX|TYPE]       List current state" \
2739      "\n        block INDEX|TYPE        Disable device" \
2740      "\n        unblock INDEX|TYPE      Enable device" \
2741      "\n" \
2742      "\n        TYPE: all, wlan(wifi), bluetooth, uwb(ultrawideband)," \
2743      "\n                wimax, wwan, gps, fm" \
2744
2745 #define rm_trivial_usage \
2746        "[-irf] FILE..."
2747 #define rm_full_usage "\n\n" \
2748        "Remove (unlink) FILEs\n" \
2749      "\nOptions:" \
2750      "\n        -i      Always prompt before removing" \
2751      "\n        -f      Never prompt" \
2752      "\n        -R,-r   Recurse" \
2753
2754 #define rm_example_usage \
2755        "$ rm -rf /tmp/foo\n"
2756
2757 #define rmdir_trivial_usage \
2758        "[OPTIONS] DIRECTORY..."
2759 #define rmdir_full_usage "\n\n" \
2760        "Remove DIRECTORY if it is empty\n" \
2761      "\nOptions:" \
2762         IF_FEATURE_RMDIR_LONG_OPTIONS( \
2763      "\n        -p|--parents    Include parents" \
2764      "\n        --ignore-fail-on-non-empty" \
2765         ) \
2766         IF_NOT_FEATURE_RMDIR_LONG_OPTIONS( \
2767      "\n        -p      Include parents" \
2768         )
2769
2770 #define rmdir_example_usage \
2771        "# rmdir /tmp/foo\n"
2772
2773 #define route_trivial_usage \
2774        "[{add|del|delete}]"
2775 #define route_full_usage "\n\n" \
2776        "Edit kernel routing tables\n" \
2777      "\nOptions:" \
2778      "\n        -n      Don't resolve names" \
2779      "\n        -e      Display other/more information" \
2780      "\n        -A inet" IF_FEATURE_IPV6("{6}") "       Select address family" \
2781
2782 #define rtcwake_trivial_usage \
2783        "[-a | -l | -u] [-d DEV] [-m MODE] [-s SEC | -t TIME]"
2784 #define rtcwake_full_usage "\n\n" \
2785        "Enter a system sleep state until specified wakeup time\n" \
2786         IF_LONG_OPTS( \
2787      "\n        -a,--auto       Read clock mode from adjtime" \
2788      "\n        -l,--local      Clock is set to local time" \
2789      "\n        -u,--utc        Clock is set to UTC time" \
2790      "\n        -d,--device=DEV Specify the RTC device" \
2791      "\n        -m,--mode=MODE  Set the sleep state (default: standby)" \
2792      "\n        -s,--seconds=SEC Set the timeout in SEC seconds from now" \
2793      "\n        -t,--time=TIME  Set the timeout to TIME seconds from epoch" \
2794         ) \
2795         IF_NOT_LONG_OPTS( \
2796      "\n        -a      Read clock mode from adjtime" \
2797      "\n        -l      Clock is set to local time" \
2798      "\n        -u      Clock is set to UTC time" \
2799      "\n        -d DEV  Specify the RTC device" \
2800      "\n        -m MODE Set the sleep state (default: standby)" \
2801      "\n        -s SEC  Set the timeout in SEC seconds from now" \
2802      "\n        -t TIME Set the timeout to TIME seconds from epoch" \
2803         )
2804
2805 #define runcon_trivial_usage \
2806        "[-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] PROG ARGS\n" \
2807        "runcon CONTEXT PROG ARGS"
2808 #define runcon_full_usage "\n\n" \
2809        "Run PROG in a different security context\n" \
2810      "\n        CONTEXT         Complete security context\n" \
2811         IF_FEATURE_RUNCON_LONG_OPTIONS( \
2812      "\n        -c,--compute    Compute process transition context before modifying" \
2813      "\n        -t,--type=TYPE  Type (for same role as parent)" \
2814      "\n        -u,--user=USER  User identity" \
2815      "\n        -r,--role=ROLE  Role" \
2816      "\n        -l,--range=RNG  Levelrange" \
2817         ) \
2818         IF_NOT_FEATURE_RUNCON_LONG_OPTIONS( \
2819      "\n        -c      Compute process transition context before modifying" \
2820      "\n        -t TYPE Type (for same role as parent)" \
2821      "\n        -u USER User identity" \
2822      "\n        -r ROLE Role" \
2823      "\n        -l RNG  Levelrange" \
2824         )
2825
2826 #define run_parts_trivial_usage \
2827        "[-t] "IF_FEATURE_RUN_PARTS_FANCY("[-l] ")"[-a ARG] [-u MASK] DIRECTORY"
2828 #define run_parts_full_usage "\n\n" \
2829        "Run a bunch of scripts in DIRECTORY\n" \
2830      "\nOptions:" \
2831      "\n        -t      Print what would be run, but don't actually run anything" \
2832      "\n        -a ARG  Pass ARG as argument for every program" \
2833      "\n        -u MASK Set the umask to MASK before running every program" \
2834         IF_FEATURE_RUN_PARTS_FANCY( \
2835      "\n        -l      Print names of all matching files even if they are not executable" \
2836         )
2837
2838 #define run_parts_example_usage \
2839        "$ run-parts -a start /etc/init.d\n" \
2840        "$ run-parts -a stop=now /etc/init.d\n\n" \
2841        "Let's assume you have a script foo/dosomething:\n" \
2842        "#!/bin/sh\n" \
2843        "for i in $*; do eval $i; done; unset i\n" \
2844        "case \"$1\" in\n" \
2845        "start*) echo starting something;;\n" \
2846        "stop*) set -x; shutdown -h $stop;;\n" \
2847        "esac\n\n" \
2848        "Running this yields:\n" \
2849        "$run-parts -a stop=+4m foo/\n" \
2850        "+ shutdown -h +4m"
2851
2852 #define runlevel_trivial_usage \
2853        "[FILE]"
2854 #define runlevel_full_usage "\n\n" \
2855        "Find the current and previous system runlevel\n" \
2856        "\n" \
2857        "If no utmp FILE exists or if no runlevel record can be found,\n" \
2858        "print \"unknown\""
2859 #define runlevel_example_usage \
2860        "$ runlevel /var/run/utmp\n" \
2861        "N 2"
2862
2863 #define runsv_trivial_usage \
2864        "DIR"
2865 #define runsv_full_usage "\n\n" \
2866        "Start and monitor a service and optionally an appendant log service"
2867
2868 #define runsvdir_trivial_usage \
2869        "[-P] [-s SCRIPT] DIR"
2870 #define runsvdir_full_usage "\n\n" \
2871        "Start a runsv process for each subdirectory. If it exits, restart it.\n" \
2872      "\n        -P              Put each runsv in a new session" \
2873      "\n        -s SCRIPT       Run SCRIPT <signo> after signal is processed" \
2874
2875 #define rx_trivial_usage \
2876        "FILE"
2877 #define rx_full_usage "\n\n" \
2878        "Receive a file using the xmodem protocol"
2879 #define rx_example_usage \
2880        "$ rx /tmp/foo\n"
2881
2882 #define script_trivial_usage \
2883        "[-afq" IF_SCRIPTREPLAY("t") "] [-c PROG] [OUTFILE]"
2884 #define script_full_usage "\n\n" \
2885        "Options:" \
2886      "\n        -a      Append output" \
2887      "\n        -c PROG Run PROG, not shell" \
2888      "\n        -f      Flush output after each write" \
2889      "\n        -q      Quiet" \
2890         IF_SCRIPTREPLAY( \
2891      "\n        -t      Send timing to stderr" \
2892         )
2893
2894 #define sed_trivial_usage \
2895        "[-efinr] SED_CMD [FILE]..."
2896 #define sed_full_usage "\n\n" \
2897        "Options:" \
2898      "\n        -e CMD  Add CMD to sed commands to be executed" \
2899      "\n        -f FILE Add FILE contents to sed commands to be executed" \
2900      "\n        -i      Edit files in-place (else sends result to stdout)" \
2901      "\n        -n      Suppress automatic printing of pattern space" \
2902      "\n        -r      Use extended regex syntax" \
2903      "\n" \
2904      "\nIf no -e or -f, the first non-option argument is the sed command string." \
2905      "\nRemaining arguments are input files (stdin if none)."
2906
2907 #define sed_example_usage \
2908        "$ echo \"foo\" | sed -e 's/f[a-zA-Z]o/bar/g'\n" \
2909        "bar\n"
2910
2911 #define selinuxenabled_trivial_usage NOUSAGE_STR
2912 #define selinuxenabled_full_usage ""
2913
2914 #define seq_trivial_usage \
2915        "[-w] [-s SEP] [FIRST [INC]] LAST"
2916 #define seq_full_usage "\n\n" \
2917        "Print numbers from FIRST to LAST, in steps of INC.\n" \
2918        "FIRST, INC default to 1.\n" \
2919      "\nOptions:" \
2920      "\n        -w      Pad to last with leading zeros" \
2921      "\n        -s SEP  String separator" \
2922
2923 #define sestatus_trivial_usage \
2924        "[-vb]"
2925 #define sestatus_full_usage "\n\n" \
2926        "        -v      Verbose" \
2927      "\n        -b      Display current state of booleans" \
2928
2929 #define setconsole_trivial_usage \
2930        "[-r" IF_FEATURE_SETCONSOLE_LONG_OPTIONS("|--reset") "] [DEVICE]"
2931 #define setconsole_full_usage "\n\n" \
2932        "Redirect system console output to DEVICE (default: /dev/tty)\n" \
2933      "\nOptions:" \
2934      "\n        -r      Reset output to /dev/console" \
2935
2936 #define setenforce_trivial_usage \
2937        "[Enforcing | Permissive | 1 | 0]"
2938 #define setenforce_full_usage ""
2939
2940 #define setfiles_trivial_usage \
2941        "[-dnpqsvW] [-e DIR]... [-o FILE] [-r alt_root_path]" \
2942         IF_FEATURE_SETFILES_CHECK_OPTION( \
2943        " [-c policyfile] spec_file" \
2944         ) \
2945        " pathname"
2946 #define setfiles_full_usage "\n\n" \
2947        "Reset file contexts under pathname according to spec_file\n" \
2948         IF_FEATURE_SETFILES_CHECK_OPTION( \
2949      "\n        -c FILE Check the validity of the contexts against the specified binary policy" \
2950         ) \
2951      "\n        -d      Show which specification matched each file" \
2952      "\n        -l      Log changes in file labels to syslog" \
2953      "\n        -n      Don't change any file labels" \
2954      "\n        -q      Suppress warnings" \
2955      "\n        -r DIR  Use an alternate root path" \
2956      "\n        -e DIR  Exclude DIR" \
2957      "\n        -F      Force reset of context to match file_context for customizable files" \
2958      "\n        -o FILE Save list of files with incorrect context" \
2959      "\n        -s      Take a list of files from stdin (instead of command line)" \
2960      "\n        -v      Show changes in file labels, if type or role are changing" \
2961      "\n        -vv     Show changes in file labels, if type, role, or user are changing" \
2962      "\n        -W      Display warnings about entries that had no matching files" \
2963
2964 #define setfont_trivial_usage \
2965        "FONT [-m MAPFILE] [-C TTY]"
2966 #define setfont_full_usage "\n\n" \
2967        "Load a console font\n" \
2968      "\nOptions:" \
2969      "\n        -m MAPFILE      Load console screen map" \
2970      "\n        -C TTY          Affect TTY instead of /dev/tty" \
2971
2972 #define setfont_example_usage \
2973        "$ setfont -m koi8-r /etc/i18n/fontname\n"
2974
2975 #define setkeycodes_trivial_usage \
2976        "SCANCODE KEYCODE..."
2977 #define setkeycodes_full_usage "\n\n" \
2978        "Set entries into the kernel's scancode-to-keycode map,\n" \
2979        "allowing unusual keyboards to generate usable keycodes.\n\n" \
2980        "SCANCODE may be either xx or e0xx (hexadecimal),\n" \
2981        "and KEYCODE is given in decimal." \
2982
2983 #define setkeycodes_example_usage \
2984        "$ setkeycodes e030 127\n"
2985
2986 #define setlogcons_trivial_usage \
2987        "N"
2988 #define setlogcons_full_usage "\n\n" \
2989        "Redirect the kernel output to console N (0 for current)"
2990
2991 #define setsebool_trivial_usage \
2992        "boolean value"
2993
2994 #define setsebool_full_usage "\n\n" \
2995        "Change boolean setting"
2996
2997 #define setsid_trivial_usage \
2998        "PROG ARGS"
2999 #define setsid_full_usage "\n\n" \
3000        "Run PROG in a new session. PROG will have no controlling terminal\n" \
3001        "and will not be affected by keyboard signals (Ctrl-C etc).\n" \
3002        "See setsid(2) for details." \
3003
3004 #define last_trivial_usage \
3005        ""IF_FEATURE_LAST_FANCY("[-HW] [-f FILE]")
3006 #define last_full_usage "\n\n" \
3007        "Show listing of the last users that logged into the system" \
3008         IF_FEATURE_LAST_FANCY( "\n" \
3009      "\nOptions:" \
3010 /*   "\n        -H      Show header line" */ \
3011      "\n        -W      Display with no host column truncation" \
3012      "\n        -f FILE Read from FILE instead of /var/log/wtmp" \
3013         )
3014
3015 #define showkey_trivial_usage \
3016        "[-a | -k | -s]"
3017 #define showkey_full_usage "\n\n" \
3018        "Show keys pressed\n" \
3019      "\nOptions:" \
3020      "\n        -a      Display decimal/octal/hex values of the keys" \
3021      "\n        -k      Display interpreted keycodes (default)" \
3022      "\n        -s      Display raw scan-codes" \
3023
3024 #define slattach_trivial_usage \
3025        "[-cehmLF] [-s SPEED] [-p PROTOCOL] DEVICE"
3026 #define slattach_full_usage "\n\n" \
3027        "Attach network interface(s) to serial line(s)\n" \
3028      "\nOptions:" \
3029      "\n        -p PROT Set protocol (slip, cslip, slip6, clisp6 or adaptive)" \
3030      "\n        -s SPD  Set line speed" \
3031      "\n        -e      Exit after initializing device" \
3032      "\n        -h      Exit when the carrier is lost" \
3033      "\n        -c PROG Run PROG when the line is hung up" \
3034      "\n        -m      Do NOT initialize the line in raw 8 bits mode" \
3035      "\n        -L      Enable 3-wire operation" \
3036      "\n        -F      Disable RTS/CTS flow control" \
3037
3038 #define sleep_trivial_usage \
3039         IF_FEATURE_FANCY_SLEEP("[") "N" IF_FEATURE_FANCY_SLEEP("]...")
3040 #define sleep_full_usage "\n\n" \
3041         IF_NOT_FEATURE_FANCY_SLEEP("Pause for N seconds") \
3042         IF_FEATURE_FANCY_SLEEP( \
3043        "Pause for a time equal to the total of the args given, where each arg can\n" \
3044        "have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays")
3045 #define sleep_example_usage \
3046        "$ sleep 2\n" \
3047        "[2 second delay results]\n" \
3048         IF_FEATURE_FANCY_SLEEP( \
3049        "$ sleep 1d 3h 22m 8s\n" \
3050        "[98528 second delay results]\n")
3051
3052 #define sort_trivial_usage \
3053        "[-nru" \
3054         IF_FEATURE_SORT_BIG("gMcszbdfimSTokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR") \
3055        "] [FILE]..."
3056 #define sort_full_usage "\n\n" \
3057        "Sort lines of text\n" \
3058      "\nOptions:" \
3059         IF_FEATURE_SORT_BIG( \
3060      "\n        -b      Ignore leading blanks" \
3061      "\n        -c      Check whether input is sorted" \
3062      "\n        -d      Dictionary order (blank or alphanumeric only)" \
3063      "\n        -f      Ignore case" \
3064      "\n        -g      General numerical sort" \
3065      "\n        -i      Ignore unprintable characters" \
3066      "\n        -k      Sort key" \
3067      "\n        -M      Sort month" \
3068         ) \
3069      "\n        -n      Sort numbers" \
3070         IF_FEATURE_SORT_BIG( \
3071      "\n        -o      Output to file" \
3072      "\n        -k      Sort by key" \
3073      "\n        -t CHAR Key separator" \
3074         ) \
3075      "\n        -r      Reverse sort order" \
3076         IF_FEATURE_SORT_BIG( \
3077      "\n        -s      Stable (don't sort ties alphabetically)" \
3078         ) \
3079      "\n        -u      Suppress duplicate lines" \
3080         IF_FEATURE_SORT_BIG( \
3081      "\n        -z      Lines are terminated by NUL, not newline" \
3082      "\n        -mST    Ignored for GNU compatibility") \
3083
3084 #define sort_example_usage \
3085        "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \
3086        "a\n" \
3087        "b\n" \
3088        "c\n" \
3089        "d\n" \
3090        "e\n" \
3091        "f\n" \
3092         IF_FEATURE_SORT_BIG( \
3093                 "$ echo -e \"c 3\\nb 2\\nd 2\" | $SORT -k 2,2n -k 1,1r\n" \
3094                 "d 2\n" \
3095                 "b 2\n" \
3096                 "c 3\n" \
3097         ) \
3098        ""
3099
3100 #define split_trivial_usage \
3101        "[OPTIONS] [INPUT [PREFIX]]"
3102 #define split_full_usage "\n\n" \
3103        "Options:" \
3104      "\n        -b N[k|m]       Split by N (kilo|mega)bytes" \
3105      "\n        -l N            Split by N lines" \
3106      "\n        -a N            Use N letters as suffix" \
3107
3108 #define split_example_usage \
3109        "$ split TODO foo\n" \
3110        "$ cat TODO | split -a 2 -l 2 TODO_\n"
3111
3112 #define start_stop_daemon_trivial_usage \
3113        "[OPTIONS] [-S|-K] ... [-- ARGS...]"
3114 #define start_stop_daemon_full_usage "\n\n" \
3115        "Search for matching processes, and then\n" \
3116        "-K: stop all matching processes.\n" \
3117        "-S: start a process unless a matching process is found.\n" \
3118         IF_FEATURE_START_STOP_DAEMON_LONG_OPTIONS( \
3119      "\nProcess matching:" \
3120      "\n        -u,--user USERNAME|UID  Match only this user's processes" \
3121      "\n        -n,--name NAME          Match processes with NAME" \
3122      "\n                                in comm field in /proc/PID/stat" \
3123      "\n        -x,--exec EXECUTABLE    Match processes with this command" \
3124      "\n                                in /proc/PID/cmdline" \
3125      "\n        -p,--pidfile FILE       Match a process with PID from the file" \
3126      "\n        All specified conditions must match" \
3127      "\n-S only:" \
3128      "\n        -x,--exec EXECUTABLE    Program to run" \
3129      "\n        -a,--startas NAME       Zeroth argument" \
3130      "\n        -b,--background         Background" \
3131         IF_FEATURE_START_STOP_DAEMON_FANCY( \
3132      "\n        -N,--nicelevel N        Change nice level" \
3133         ) \
3134      "\n        -c,--chuid USER[:[GRP]] Change to user/group" \
3135      "\n        -m,--make-pidfile       Write PID to the pidfile specified by -p" \
3136      "\n-K only:" \
3137      "\n        -s,--signal SIG         Signal to send" \
3138      "\n        -t,--test               Match only, exit with 0 if a process is found" \
3139      "\nOther:" \
3140         IF_FEATURE_START_STOP_DAEMON_FANCY( \
3141      "\n        -o,--oknodo             Exit with status 0 if nothing is done" \
3142      "\n        -v,--verbose            Verbose" \
3143         ) \
3144      "\n        -q,--quiet              Quiet" \
3145         ) \
3146         IF_NOT_FEATURE_START_STOP_DAEMON_LONG_OPTIONS( \
3147      "\nProcess matching:" \
3148      "\n        -u USERNAME|UID Match only this user's processes" \
3149      "\n        -n NAME         Match processes with NAME" \
3150      "\n                        in comm field in /proc/PID/stat" \
3151      "\n        -x EXECUTABLE   Match processes with this command" \
3152      "\n                        command in /proc/PID/cmdline" \
3153      "\n        -p FILE         Match a process with PID from the file" \
3154      "\n        All specified conditions must match" \
3155      "\n-S only:" \
3156      "\n        -x EXECUTABLE   Program to run" \
3157      "\n        -a NAME         Zeroth argument" \
3158      "\n        -b              Background" \
3159         IF_FEATURE_START_STOP_DAEMON_FANCY( \
3160      "\n        -N N            Change nice level" \
3161         ) \
3162      "\n        -c USER[:[GRP]] Change to user/group" \
3163      "\n        -m              Write PID to the pidfile specified by -p" \
3164      "\n-K only:" \
3165      "\n        -s SIG          Signal to send" \
3166      "\n        -t              Match only, exit with 0 if a process is found" \
3167      "\nOther:" \
3168         IF_FEATURE_START_STOP_DAEMON_FANCY( \
3169      "\n        -o              Exit with status 0 if nothing is done" \
3170      "\n        -v              Verbose" \
3171         ) \
3172      "\n        -q              Quiet" \
3173         ) \
3174
3175 #define stat_trivial_usage \
3176        "[OPTIONS] FILE..."
3177 #define stat_full_usage "\n\n" \
3178        "Display file (default) or filesystem status\n" \
3179      "\nOptions:" \
3180         IF_FEATURE_STAT_FORMAT( \
3181      "\n        -c fmt  Use the specified format" \
3182         ) \
3183      "\n        -f      Display filesystem status" \
3184      "\n        -L      Follow links" \
3185      "\n        -t      Display info in terse form" \
3186         IF_SELINUX( \
3187      "\n        -Z      Print security context" \
3188         ) \
3189         IF_FEATURE_STAT_FORMAT( \
3190        "\n\nValid format sequences for files:\n" \
3191        " %a     Access rights in octal\n" \
3192        " %A     Access rights in human readable form\n" \
3193        " %b     Number of blocks allocated (see %B)\n" \
3194        " %B     The size in bytes of each block reported by %b\n" \
3195        " %d     Device number in decimal\n" \
3196        " %D     Device number in hex\n" \
3197        " %f     Raw mode in hex\n" \
3198        " %F     File type\n" \
3199        " %g     Group ID of owner\n" \
3200        " %G     Group name of owner\n" \
3201        " %h     Number of hard links\n" \
3202        " %i     Inode number\n" \
3203        " %n     File name\n" \
3204        " %N     File name, with -> TARGET if symlink\n" \
3205        " %o     I/O block size\n" \
3206        " %s     Total size, in bytes\n" \
3207        " %t     Major device type in hex\n" \
3208        " %T     Minor device type in hex\n" \
3209        " %u     User ID of owner\n" \
3210        " %U     User name of owner\n" \
3211        " %x     Time of last access\n" \
3212        " %X     Time of last access as seconds since Epoch\n" \
3213        " %y     Time of last modification\n" \
3214        " %Y     Time of last modification as seconds since Epoch\n" \
3215        " %z     Time of last change\n" \
3216        " %Z     Time of last change as seconds since Epoch\n" \
3217        "\nValid format sequences for file systems:\n" \
3218        " %a     Free blocks available to non-superuser\n" \
3219        " %b     Total data blocks in file system\n" \
3220        " %c     Total file nodes in file system\n" \
3221        " %d     Free file nodes in file system\n" \
3222        " %f     Free blocks in file system\n" \
3223         IF_SELINUX( \
3224        " %C     Security context in selinux\n" \
3225         ) \
3226        " %i     File System ID in hex\n" \
3227        " %l     Maximum length of filenames\n" \
3228        " %n     File name\n" \
3229        " %s     Block size (for faster transfer)\n" \
3230        " %S     Fundamental block size (for block counts)\n" \
3231        " %t     Type in hex\n" \
3232        " %T     Type in human readable form" \
3233         ) \
3234
3235 #define strings_trivial_usage \
3236        "[-afo] [-n LEN] [FILE]..."
3237 #define strings_full_usage "\n\n" \
3238        "Display printable strings in a binary file\n" \
3239      "\nOptions:" \
3240      "\n        -a      Scan whole file (default)" \
3241      "\n        -f      Precede strings with filenames" \
3242      "\n        -n LEN  At least LEN characters form a string (default 4)" \
3243      "\n        -o      Precede strings with decimal offsets" \
3244
3245 #define stty_trivial_usage \
3246        "[-a|g] [-F DEVICE] [SETTING]..."
3247 #define stty_full_usage "\n\n" \
3248        "Without arguments, prints baud rate, line discipline,\n" \
3249        "and deviations from stty sane\n" \
3250      "\nOptions:" \
3251      "\n        -F DEVICE       Open device instead of stdin" \
3252      "\n        -a              Print all current settings in human-readable form" \
3253      "\n        -g              Print in stty-readable form" \
3254      "\n        [SETTING]       See manpage" \
3255
3256 #define sulogin_trivial_usage \
3257        "[-t N] [TTY]"
3258 #define sulogin_full_usage "\n\n" \
3259        "Single user login\n" \
3260      "\nOptions:" \
3261      "\n        -t N    Timeout" \
3262
3263 #define sum_trivial_usage \
3264        "[-rs] [FILE]..."
3265 #define sum_full_usage "\n\n" \
3266        "Checksum and count the blocks in a file\n" \
3267      "\nOptions:" \
3268      "\n        -r      Use BSD sum algorithm (1K blocks)" \
3269      "\n        -s      Use System V sum algorithm (512byte blocks)" \
3270
3271 #define sv_trivial_usage \
3272        "[-v] [-w SEC] CMD SERVICE_DIR..."
3273 #define sv_full_usage "\n\n" \
3274        "Control services monitored by runsv supervisor.\n" \
3275        "Commands (only first character is enough):\n" \
3276        "\n" \
3277        "status: query service status\n" \
3278        "up: if service isn't running, start it. If service stops, restart it\n" \
3279        "once: like 'up', but if service stops, don't restart it\n" \
3280        "down: send TERM and CONT signals. If ./run exits, start ./finish\n" \
3281        "        if it exists. After it stops, don't restart service\n" \
3282        "exit: send TERM and CONT signals to service and log service. If they exit,\n" \
3283        "        runsv exits too\n" \
3284        "pause, cont, hup, alarm, interrupt, quit, 1, 2, term, kill: send\n" \
3285        "STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL signal to service" \
3286
3287 #define swapoff_trivial_usage \
3288        "[-a] [DEVICE]"
3289 #define swapoff_full_usage "\n\n" \
3290        "Stop swapping on DEVICE\n" \
3291      "\nOptions:" \
3292      "\n        -a      Stop swapping on all swap devices" \
3293
3294 #define swapon_trivial_usage \
3295        "[-a]" IF_FEATURE_SWAPON_PRI(" [-p PRI]") " [DEVICE]"
3296 #define swapon_full_usage "\n\n" \
3297        "Start swapping on DEVICE\n" \
3298      "\nOptions:" \
3299      "\n        -a      Start swapping on all swap devices" \
3300         IF_FEATURE_SWAPON_PRI( \
3301      "\n        -p PRI  Set swap device priority" \
3302         ) \
3303
3304 #define switch_root_trivial_usage \
3305        "[-c /dev/console] NEW_ROOT NEW_INIT [ARGS]"
3306 #define switch_root_full_usage "\n\n" \
3307        "Free initramfs and switch to another root fs:\n" \
3308        "chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,\n" \
3309        "execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.\n" \
3310      "\nOptions:" \
3311      "\n        -c DEV  Reopen stdio to DEV after switch" \
3312
3313 #define sync_trivial_usage \
3314        ""
3315 #define sync_full_usage "\n\n" \
3316        "Write all buffered blocks to disk"
3317
3318 #define fsync_trivial_usage \
3319        "[-d] FILE..."
3320 #define fsync_full_usage "\n\n" \
3321        "Write files' buffered blocks to disk\n" \
3322      "\nOptions:" \
3323      "\n        -d      Avoid syncing metadata"
3324
3325 #define sysctl_trivial_usage \
3326        "[OPTIONS] [VALUE]..."
3327 #define sysctl_full_usage "\n\n" \
3328        "Configure kernel parameters at runtime\n" \
3329      "\nOptions:" \
3330      "\n        -n      Don't print key names" \
3331      "\n        -e      Don't warn about unknown keys" \
3332      "\n        -w      Change sysctl setting" \
3333      "\n        -p FILE Load sysctl settings from FILE (default /etc/sysctl.conf)" \
3334      "\n        -a      Display all values" \
3335      "\n        -A      Display all values in table form" \
3336
3337 #define sysctl_example_usage \
3338        "sysctl [-n] [-e] variable...\n" \
3339        "sysctl [-n] [-e] -w variable=value...\n" \
3340        "sysctl [-n] [-e] -a\n" \
3341        "sysctl [-n] [-e] -p file        (default /etc/sysctl.conf)\n" \
3342        "sysctl [-n] [-e] -A\n"
3343
3344 #define syslogd_trivial_usage \
3345        "[OPTIONS]"
3346 #define syslogd_full_usage "\n\n" \
3347        "System logging utility.\n" \
3348        "This version of syslogd ignores /etc/syslog.conf\n" \
3349      "\nOptions:" \
3350      "\n        -n              Run in foreground" \
3351      "\n        -O FILE         Log to given file (default:/var/log/messages)" \
3352      "\n        -l N            Set local log level" \
3353      "\n        -S              Smaller logging output" \
3354         IF_FEATURE_ROTATE_LOGFILE( \
3355      "\n        -s SIZE         Max size (KB) before rotate (default:200KB, 0=off)" \
3356      "\n        -b N            N rotated logs to keep (default:1, max=99, 0=purge)") \
3357         IF_FEATURE_REMOTE_LOG( \
3358      "\n        -R HOST[:PORT]  Log to IP or hostname on PORT (default PORT=514/UDP)" \
3359      "\n        -L              Log locally and via network (default is network only if -R)") \
3360         IF_FEATURE_SYSLOGD_DUP( \
3361      "\n        -D              Drop duplicates") \
3362         IF_FEATURE_IPC_SYSLOG( \
3363      "\n        -C[size(KiB)]   Log to shared mem buffer (read it using logread)") \
3364         /* NB: -Csize shouldn't have space (because size is optional) */
3365 /*   "\n        -m MIN          Minutes between MARK lines (default:20, 0=off)" */
3366
3367 #define syslogd_example_usage \
3368        "$ syslogd -R masterlog:514\n" \
3369        "$ syslogd -R 192.168.1.1:601\n"
3370
3371 #define tac_trivial_usage \
3372         "[FILE]..."
3373 #define tac_full_usage "\n\n" \
3374         "Concatenate FILEs and print them in reverse"
3375
3376 #define taskset_trivial_usage \
3377        "[-p] [MASK] [PID | PROG ARGS]"
3378 #define taskset_full_usage "\n\n" \
3379        "Set or get CPU affinity\n" \
3380      "\nOptions:" \
3381      "\n        -p      Operate on an existing PID" \
3382
3383 #define taskset_example_usage \
3384        "$ taskset 0x7 ./dgemm_test&\n" \
3385        "$ taskset -p 0x1 $!\n" \
3386        "pid 4790's current affinity mask: 7\n" \
3387        "pid 4790's new affinity mask: 1\n" \
3388        "$ taskset 0x7 /bin/sh -c './taskset -p 0x1 $$'\n" \
3389        "pid 6671's current affinity mask: 1\n" \
3390        "pid 6671's new affinity mask: 1\n" \
3391        "$ taskset -p 1\n" \
3392        "pid 1's current affinity mask: 3\n"
3393
3394 #define tee_trivial_usage \
3395        "[-ai] [FILE]..."
3396 #define tee_full_usage "\n\n" \
3397        "Copy stdin to each FILE, and also to stdout\n" \
3398      "\nOptions:" \
3399      "\n        -a      Append to the given FILEs, don't overwrite" \
3400      "\n        -i      Ignore interrupt signals (SIGINT)" \
3401
3402 #define tee_example_usage \
3403        "$ echo \"Hello\" | tee /tmp/foo\n" \
3404        "$ cat /tmp/foo\n" \
3405        "Hello\n"
3406
3407 #if ENABLE_FEATURE_TELNET_AUTOLOGIN
3408 #define telnet_trivial_usage \
3409        "[-a] [-l USER] HOST [PORT]"
3410 #define telnet_full_usage "\n\n" \
3411        "Connect to telnet server\n" \
3412      "\nOptions:" \
3413      "\n        -a      Automatic login with $USER variable" \
3414      "\n        -l USER Automatic login as USER" \
3415
3416 #else
3417 #define telnet_trivial_usage \
3418        "HOST [PORT]"
3419 #define telnet_full_usage "\n\n" \
3420        "Connect to telnet server"
3421 #endif
3422
3423 #define telnetd_trivial_usage \
3424        "[OPTIONS]"
3425 #define telnetd_full_usage "\n\n" \
3426        "Handle incoming telnet connections" \
3427         IF_NOT_FEATURE_TELNETD_STANDALONE(" via inetd") "\n" \
3428      "\nOptions:" \
3429      "\n        -l LOGIN        Exec LOGIN on connect" \
3430      "\n        -f ISSUE_FILE   Display ISSUE_FILE instead of /etc/issue" \
3431      "\n        -K              Close connection as soon as login exits" \
3432      "\n                        (normally wait until all programs close slave pty)" \
3433         IF_FEATURE_TELNETD_STANDALONE( \
3434      "\n        -p PORT         Port to listen on" \
3435      "\n        -b ADDR[:PORT]  Address to bind to" \
3436      "\n        -F              Run in foreground" \
3437      "\n        -i              Inetd mode" \
3438         IF_FEATURE_TELNETD_INETD_WAIT( \
3439      "\n        -w SEC          Inetd 'wait' mode, linger time SEC" \
3440      "\n        -S              Log to syslog (implied by -i or without -F and -w)" \
3441         ) \
3442         )
3443
3444 /* "test --help" does not print help (POSIX compat), only "[ --help" does.
3445  * We display "<applet> EXPRESSION ]" here (not "<applet> EXPRESSION")
3446  * Unfortunately, it screws up generated BusyBox.html. TODO. */
3447 #define test_trivial_usage \
3448        "EXPRESSION ]"
3449 #define test_full_usage "\n\n" \
3450        "Check file types, compare values etc. Return a 0/1 exit code\n" \
3451        "depending on logical value of EXPRESSION"
3452 #define test_example_usage \
3453        "$ test 1 -eq 2\n" \
3454        "$ echo $?\n" \
3455        "1\n" \
3456        "$ test 1 -eq 1\n" \
3457        "$ echo $?\n" \
3458        "0\n" \
3459        "$ [ -d /etc ]\n" \
3460        "$ echo $?\n" \
3461        "0\n" \
3462        "$ [ -d /junk ]\n" \
3463        "$ echo $?\n" \
3464        "1\n"
3465
3466 #define tc_trivial_usage \
3467         /*"[OPTIONS] "*/"OBJECT CMD [dev STRING]"
3468 #define tc_full_usage "\n\n" \
3469         "OBJECT: {qdisc|class|filter}\n" \
3470         "CMD: {add|del|change|replace|show}\n" \
3471         "\n" \
3472         "qdisc [ handle QHANDLE ] [ root |"IF_FEATURE_TC_INGRESS(" ingress |")" parent CLASSID ]\n" \
3473         /* "[ estimator INTERVAL TIME_CONSTANT ]\n" */ \
3474         "       [ [ QDISC_KIND ] [ help | OPTIONS ] ]\n" \
3475         "       QDISC_KIND := { [p|b]fifo | tbf | prio | cbq | red | etc. }\n" \
3476         "qdisc show [ dev STRING ]"IF_FEATURE_TC_INGRESS(" [ingress]")"\n" \
3477         "class [ classid CLASSID ] [ root | parent CLASSID ]\n" \
3478         "       [ [ QDISC_KIND ] [ help | OPTIONS ] ]\n" \
3479         "class show [ dev STRING ] [ root | parent CLASSID ]\n" \
3480         "filter [ pref PRIO ] [ protocol PROTO ]\n" \
3481         /* "\t[ estimator INTERVAL TIME_CONSTANT ]\n" */ \
3482         "       [ root | classid CLASSID ] [ handle FILTERID ]\n" \
3483         "       [ [ FILTER_TYPE ] [ help | OPTIONS ] ]\n" \
3484         "filter show [ dev STRING ] [ root | parent CLASSID ]"
3485
3486 #define tcpsvd_trivial_usage \
3487        "[-hEv] [-c N] [-C N[:MSG]] [-b N] [-u USER] [-l NAME] IP PORT PROG"
3488 /* with not-implemented options: */
3489 /*     "[-hpEvv] [-c N] [-C N[:MSG]] [-b N] [-u USER] [-l NAME] [-i DIR|-x CDB] [-t SEC] IP PORT PROG" */
3490 #define tcpsvd_full_usage "\n\n" \
3491        "Create TCP socket, bind to IP:PORT and listen\n" \
3492        "for incoming connection. Run PROG for each connection.\n" \
3493      "\n        IP              IP to listen on. '0' = all" \
3494      "\n        PORT            Port to listen on" \
3495      "\n        PROG ARGS       Program to run" \
3496      "\n        -l NAME         Local hostname (else looks up local hostname in DNS)" \
3497      "\n        -u USER[:GRP]   Change to user/group after bind" \
3498      "\n        -c N            Handle up to N connections simultaneously" \
3499      "\n        -b N            Allow a backlog of approximately N TCP SYNs" \
3500      "\n        -C N[:MSG]      Allow only up to N connections from the same IP." \
3501      "\n                        New connections from this IP address are closed" \
3502      "\n                        immediately. MSG is written to the peer before close" \
3503      "\n        -h              Look up peer's hostname" \
3504      "\n        -E              Don't set up environment variables" \
3505      "\n        -v              Verbose" \
3506
3507 #define udpsvd_trivial_usage \
3508        "[-hEv] [-c N] [-u USER] [-l NAME] IP PORT PROG"
3509 #define udpsvd_full_usage "\n\n" \
3510        "Create UDP socket, bind to IP:PORT and wait\n" \
3511        "for incoming packets. Run PROG for each packet,\n" \
3512        "redirecting all further packets with same peer ip:port to it.\n" \
3513      "\n        IP              IP to listen on. '0' = all" \
3514      "\n        PORT            Port to listen on" \
3515      "\n        PROG ARGS       Program to run" \
3516      "\n        -l NAME         Local hostname (else looks up local hostname in DNS)" \
3517      "\n        -u USER[:GRP]   Change to user/group after bind" \
3518      "\n        -c N            Handle up to N connections simultaneously" \
3519      "\n        -h              Look up peer's hostname" \
3520      "\n        -E              Don't set up environment variables" \
3521      "\n        -v              Verbose" \
3522
3523 #define tftp_trivial_usage \
3524        "[OPTIONS] HOST [PORT]"
3525 #define tftp_full_usage "\n\n" \
3526        "Transfer a file from/to tftp server\n" \
3527      "\nOptions:" \
3528      "\n        -l FILE Local FILE" \
3529      "\n        -r FILE Remote FILE" \
3530         IF_FEATURE_TFTP_GET( \
3531      "\n        -g      Get file" \
3532         ) \
3533         IF_FEATURE_TFTP_PUT( \
3534      "\n        -p      Put file" \
3535         ) \
3536         IF_FEATURE_TFTP_BLOCKSIZE( \
3537      "\n        -b SIZE Transfer blocks of SIZE octets" \
3538         )
3539
3540 #define tftpd_trivial_usage \
3541        "[-cr] [-u USER] [DIR]"
3542 #define tftpd_full_usage "\n\n" \
3543        "Transfer a file on tftp client's request\n" \
3544        "\n" \
3545        "tftpd should be used as an inetd service.\n" \
3546        "tftpd's line for inetd.conf:\n" \
3547        "        69 dgram udp nowait root tftpd tftpd /files/to/serve\n" \
3548        "It also can be ran from udpsvd:\n" \
3549        "        udpsvd -vE 0.0.0.0 69 tftpd /files/to/serve\n" \
3550      "\nOptions:" \
3551      "\n        -r      Prohibit upload" \
3552      "\n        -c      Allow file creation via upload" \
3553      "\n        -u      Access files as USER" \
3554
3555 #define time_trivial_usage \
3556        "[-v] PROG ARGS"
3557 #define time_full_usage "\n\n" \
3558        "Run PROG, display resource usage when it exits\n" \
3559      "\nOptions:" \
3560      "\n        -v      Verbose" \
3561
3562 #define timeout_trivial_usage \
3563        "[-t SECS] [-s SIG] PROG ARGS"
3564 #define timeout_full_usage "\n\n" \
3565        "Runs PROG. Sends SIG to it if it is not gone in SECS seconds.\n" \
3566        "Defaults: SECS: 10, SIG: TERM." \
3567
3568 #define tr_trivial_usage \
3569        "[-cds] STRING1 [STRING2]"
3570 #define tr_full_usage "\n\n" \
3571        "Translate, squeeze, or delete characters from stdin, writing to stdout\n" \
3572      "\nOptions:" \
3573      "\n        -c      Take complement of STRING1" \
3574      "\n        -d      Delete input characters coded STRING1" \
3575      "\n        -s      Squeeze multiple output characters of STRING2 into one character" \
3576
3577 #define tr_example_usage \
3578        "$ echo \"gdkkn vnqkc\" | tr [a-y] [b-z]\n" \
3579        "hello world\n"
3580
3581 #define traceroute_trivial_usage \
3582        "[-"IF_TRACEROUTE6("46")"FIldnrv] [-f 1ST_TTL] [-m MAXTTL] [-p PORT] [-q PROBES]\n" \
3583        "        [-s SRC_IP] [-t TOS] [-w WAIT_SEC] [-g GATEWAY] [-i IFACE]\n" \
3584        "        [-z PAUSE_MSEC] HOST [BYTES]"
3585 #define traceroute_full_usage "\n\n" \
3586        "Trace the route to HOST\n" \
3587      "\nOptions:" \
3588         IF_TRACEROUTE6( \
3589      "\n        -4,-6   Force IP or IPv6 name resolution" \
3590         ) \
3591      "\n        -F      Set the don't fragment bit" \
3592      "\n        -I      Use ICMP ECHO instead of UDP datagrams" \
3593      "\n        -l      Display the TTL value of the returned packet" \
3594      "\n        -d      Set SO_DEBUG options to socket" \
3595      "\n        -n      Print numeric addresses" \
3596      "\n        -r      Bypass routing tables, send directly to HOST" \
3597      "\n        -v      Verbose" \
3598      "\n        -m      Max time-to-live (max number of hops)" \
3599      "\n        -p      Base UDP port number used in probes" \
3600      "\n                (default 33434)" \
3601      "\n        -q      Number of probes per TTL (default 3)" \
3602      "\n        -s      IP address to use as the source address" \
3603      "\n        -t      Type-of-service in probe packets (default 0)" \
3604      "\n        -w      Time in seconds to wait for a response (default 3)" \
3605      "\n        -g      Loose source route gateway (8 max)" \
3606
3607 #define traceroute6_trivial_usage \
3608        "[-dnrv] [-m MAXTTL] [-p PORT] [-q PROBES]\n" \
3609        "        [-s SRC_IP] [-t TOS] [-w WAIT_SEC] [-i IFACE]\n" \
3610        "        HOST [BYTES]"
3611 #define traceroute6_full_usage "\n\n" \
3612        "Trace the route to HOST\n" \
3613      "\nOptions:" \
3614      "\n        -d      Set SO_DEBUG options to socket" \
3615      "\n        -n      Print numeric addresses" \
3616      "\n        -r      Bypass routing tables, send directly to HOST" \
3617      "\n        -v      Verbose" \
3618      "\n        -m      Max time-to-live (max number of hops)" \
3619      "\n        -p      Base UDP port number used in probes" \
3620      "\n                (default is 33434)" \
3621      "\n        -q      Number of probes per TTL (default 3)" \
3622      "\n        -s      IP address to use as the source address" \
3623      "\n        -t      Type-of-service in probe packets (default 0)" \
3624      "\n        -w      Time in seconds to wait for a response (default 3)" \
3625
3626 #define true_trivial_usage \
3627        ""
3628 #define true_full_usage "\n\n" \
3629        "Return an exit code of TRUE (0)"
3630 #define true_example_usage \
3631        "$ true\n" \
3632        "$ echo $?\n" \
3633        "0\n"
3634
3635 #define tty_trivial_usage \
3636        ""
3637 #define tty_full_usage "\n\n" \
3638        "Print file name of stdin's terminal" \
3639         IF_INCLUDE_SUSv2( "\n" \
3640      "\nOptions:" \
3641      "\n        -s      Print nothing, only return exit status" \
3642         )
3643 #define tty_example_usage \
3644        "$ tty\n" \
3645        "/dev/tty2\n"
3646
3647 #define ttysize_trivial_usage \
3648        "[w] [h]"
3649 #define ttysize_full_usage "\n\n" \
3650        "Print dimension(s) of stdin's terminal, on error return 80x25"
3651
3652 #define tunctl_trivial_usage \
3653        "[-f device] ([-t name] | -d name)" IF_FEATURE_TUNCTL_UG(" [-u owner] [-g group] [-b]")
3654 #define tunctl_full_usage "\n\n" \
3655        "Create or delete tun interfaces\n" \
3656      "\nOptions:" \
3657      "\n        -f name         tun device (/dev/net/tun)" \
3658      "\n        -t name         Create iface 'name'" \
3659      "\n        -d name         Delete iface 'name'" \
3660         IF_FEATURE_TUNCTL_UG( \
3661      "\n        -u owner        Set iface owner" \
3662      "\n        -g group        Set iface group" \
3663      "\n        -b              Brief output" \
3664         )
3665 #define tunctl_example_usage \
3666        "# tunctl\n" \
3667        "# tunctl -d tun0\n"
3668
3669 #define udhcpd_trivial_usage \
3670        "[-fS]" IF_FEATURE_UDHCP_PORT(" [-P N]") " [CONFFILE]" \
3671
3672 #define udhcpd_full_usage "\n\n" \
3673        "DHCP server\n" \
3674      "\n        -f      Run in foreground" \
3675      "\n        -S      Log to syslog too" \
3676         IF_FEATURE_UDHCP_PORT( \
3677      "\n        -P N    Use port N (default 67)" \
3678         )
3679
3680 #define umount_trivial_usage \
3681        "[OPTIONS] FILESYSTEM|DIRECTORY"
3682 #define umount_full_usage "\n\n" \
3683        "Unmount file systems\n" \
3684      "\nOptions:" \
3685         IF_FEATURE_UMOUNT_ALL( \
3686      "\n        -a      Unmount all file systems" IF_FEATURE_MTAB_SUPPORT(" in /etc/mtab") \
3687         ) \
3688         IF_FEATURE_MTAB_SUPPORT( \
3689      "\n        -n      Don't erase /etc/mtab entries" \
3690         ) \
3691      "\n        -r      Try to remount devices as read-only if mount is busy" \
3692      "\n        -l      Lazy umount (detach filesystem)" \
3693      "\n        -f      Force umount (i.e., unreachable NFS server)" \
3694         IF_FEATURE_MOUNT_LOOP( \
3695      "\n        -d      Free loop device if it has been used" \
3696         )
3697
3698 #define umount_example_usage \
3699        "$ umount /dev/hdc1\n"
3700
3701 #define uname_trivial_usage \
3702        "[-amnrspv]"
3703 #define uname_full_usage "\n\n" \
3704        "Print system information\n" \
3705      "\nOptions:" \
3706      "\n        -a      Print all" \
3707      "\n        -m      The machine (hardware) type" \
3708      "\n        -n      Hostname" \
3709      "\n        -r      OS release" \
3710      "\n        -s      OS name (default)" \
3711      "\n        -p      Processor type" \
3712      "\n        -v      OS version" \
3713
3714 #define uname_example_usage \
3715        "$ uname -a\n" \
3716        "Linux debian 2.4.23 #2 Tue Dec 23 17:09:10 MST 2003 i686 GNU/Linux\n"
3717
3718 #define unexpand_trivial_usage \
3719        "[-fa][-t N] [FILE]..."
3720 #define unexpand_full_usage "\n\n" \
3721        "Convert spaces to tabs, writing to stdout\n" \
3722      "\nOptions:" \
3723         IF_FEATURE_UNEXPAND_LONG_OPTIONS( \
3724      "\n        -a,--all        Convert all blanks" \
3725      "\n        -f,--first-only Convert only leading blanks" \
3726      "\n        -t,--tabs=N     Tabstops every N chars" \
3727         ) \
3728         IF_NOT_FEATURE_UNEXPAND_LONG_OPTIONS( \
3729      "\n        -a      Convert all blanks" \
3730      "\n        -f      Convert only leading blanks" \
3731      "\n        -t N    Tabstops every N chars" \
3732         )
3733
3734 #define uniq_trivial_usage \
3735        "[-cdu][-f,s,w N] [INPUT [OUTPUT]]"
3736 #define uniq_full_usage "\n\n" \
3737        "Discard duplicate lines\n" \
3738      "\nOptions:" \
3739      "\n        -c      Prefix lines by the number of occurrences" \
3740      "\n        -d      Only print duplicate lines" \
3741      "\n        -u      Only print unique lines" \
3742      "\n        -f N    Skip first N fields" \
3743      "\n        -s N    Skip first N chars (after any skipped fields)" \
3744      "\n        -w N    Compare N characters in line" \
3745
3746 #define uniq_example_usage \
3747        "$ echo -e \"a\\na\\nb\\nc\\nc\\na\" | sort | uniq\n" \
3748        "a\n" \
3749        "b\n" \
3750        "c\n"
3751
3752 #define uptime_trivial_usage \
3753        ""
3754 #define uptime_full_usage "\n\n" \
3755        "Display the time since the last boot"
3756
3757 #define uptime_example_usage \
3758        "$ uptime\n" \
3759        "  1:55pm  up  2:30, load average: 0.09, 0.04, 0.00\n"
3760
3761 #define usleep_trivial_usage \
3762        "N"
3763 #define usleep_full_usage "\n\n" \
3764        "Pause for N microseconds"
3765
3766 #define usleep_example_usage \
3767        "$ usleep 1000000\n" \
3768        "[pauses for 1 second]\n"
3769
3770 #define uudecode_trivial_usage \
3771        "[-o OUTFILE] [INFILE]"
3772 #define uudecode_full_usage "\n\n" \
3773        "Uudecode a file\n" \
3774        "Finds outfile name in uuencoded source unless -o is given"
3775
3776 #define uudecode_example_usage \
3777        "$ uudecode -o busybox busybox.uu\n" \
3778        "$ ls -l busybox\n" \
3779        "-rwxr-xr-x   1 ams      ams        245264 Jun  7 21:35 busybox\n"
3780
3781 #define uuencode_trivial_usage \
3782        "[-m] [INFILE] STORED_FILENAME"
3783 #define uuencode_full_usage "\n\n" \
3784        "Uuencode a file to stdout\n" \
3785      "\nOptions:" \
3786      "\n        -m      Use base64 encoding per RFC1521" \
3787
3788 #define uuencode_example_usage \
3789        "$ uuencode busybox busybox\n" \
3790        "begin 755 busybox\n" \
3791        "<encoded file snipped>\n" \
3792        "$ uudecode busybox busybox > busybox.uu\n" \
3793        "$\n"
3794
3795 #define vconfig_trivial_usage \
3796        "COMMAND [OPTIONS]"
3797 #define vconfig_full_usage "\n\n" \
3798        "Create and remove virtual ethernet devices\n" \
3799      "\nOptions:" \
3800      "\n        add             [interface-name] [vlan_id]" \
3801      "\n        rem             [vlan-name]" \
3802      "\n        set_flag        [interface-name] [flag-num] [0 | 1]" \
3803      "\n        set_egress_map  [vlan-name] [skb_priority] [vlan_qos]" \
3804      "\n        set_ingress_map [vlan-name] [skb_priority] [vlan_qos]" \
3805      "\n        set_name_type   [name-type]" \
3806
3807 #define vi_trivial_usage \
3808        "[OPTIONS] [FILE]..."
3809 #define vi_full_usage "\n\n" \
3810        "Edit FILE\n" \
3811      "\nOptions:" \
3812         IF_FEATURE_VI_COLON( \
3813      "\n        -c      Initial command to run ($EXINIT also available)" \
3814         ) \
3815         IF_FEATURE_VI_READONLY( \
3816      "\n        -R      Read-only" \
3817         ) \
3818      "\n        -H      Short help regarding available features" \
3819
3820 #define vlock_trivial_usage \
3821        "[-a]"
3822 #define vlock_full_usage "\n\n" \
3823        "Lock a virtual terminal. A password is required to unlock.\n" \
3824      "\nOptions:" \
3825      "\n        -a      Lock all VTs" \
3826
3827 #define volname_trivial_usage \
3828        "[DEVICE]"
3829 #define volname_full_usage "\n\n" \
3830        "Show CD volume name of the DEVICE (default /dev/cdrom)"
3831
3832 #define wall_trivial_usage \
3833         "[FILE]"
3834 #define wall_full_usage "\n\n" \
3835         "Write content of FILE or stdin to all logged-in users"
3836 #define wall_sample_usage \
3837         "echo foo | wall\n" \
3838         "wall ./mymessage"
3839
3840 #define watch_trivial_usage \
3841        "[-n SEC] [-t] PROG ARGS"
3842 #define watch_full_usage "\n\n" \
3843        "Run PROG periodically\n" \
3844      "\nOptions:" \
3845      "\n        -n      Loop period in seconds (default 2)" \
3846      "\n        -t      Don't print header" \
3847
3848 #define watch_example_usage \
3849        "$ watch date\n" \
3850        "Mon Dec 17 10:31:40 GMT 2000\n" \
3851        "Mon Dec 17 10:31:42 GMT 2000\n" \
3852        "Mon Dec 17 10:31:44 GMT 2000"
3853
3854 #define watchdog_trivial_usage \
3855        "[-t N[ms]] [-T N[ms]] [-F] DEV"
3856 #define watchdog_full_usage "\n\n" \
3857        "Periodically write to watchdog device DEV\n" \
3858      "\nOptions:" \
3859      "\n        -T N    Reboot after N seconds if not reset (default 60)" \
3860      "\n        -t N    Reset every N seconds (default 30)" \
3861      "\n        -F      Run in foreground" \
3862      "\n" \
3863      "\nUse 500ms to specify period in milliseconds" \
3864
3865 #define which_trivial_usage \
3866        "[COMMAND]..."
3867 #define which_full_usage "\n\n" \
3868        "Locate a COMMAND"
3869 #define which_example_usage \
3870        "$ which login\n" \
3871        "/bin/login\n"
3872
3873 #define who_trivial_usage \
3874        "[-a]"
3875 #define who_full_usage "\n\n" \
3876        "Show who is logged on\n" \
3877      "\nOptions:" \
3878      "\n        -a      Show all" \
3879
3880 #define whoami_trivial_usage \
3881        ""
3882 #define whoami_full_usage "\n\n" \
3883        "Print the user name associated with the current effective user id"
3884
3885 #define zcip_trivial_usage \
3886        "[OPTIONS] IFACE SCRIPT"
3887 #define zcip_full_usage "\n\n" \
3888        "Manage a ZeroConf IPv4 link-local address\n" \
3889      "\nOptions:" \
3890      "\n        -f              Run in foreground" \
3891      "\n        -q              Quit after obtaining address" \
3892      "\n        -r 169.254.x.x  Request this address first" \
3893      "\n        -v              Verbose" \
3894      "\n" \
3895      "\nWith no -q, runs continuously monitoring for ARP conflicts," \
3896      "\nexits only on I/O errors (link down etc)" \
3897
3898
3899 #endif