aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-12-18 04:12:51 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-12-18 04:12:51 +0100
commita2f18d950a1a94e22fec78ee2d57f5cd3542551a (patch)
tree0e2540425675187e037e09cd0bf59c1740e91b49
parent15733cb48e570716cad6ece2d752507ecd767131 (diff)
downloadbusybox-w32-a2f18d950a1a94e22fec78ee2d57f5cd3542551a.tar.gz
busybox-w32-a2f18d950a1a94e22fec78ee2d57f5cd3542551a.tar.bz2
busybox-w32-a2f18d950a1a94e22fec78ee2d57f5cd3542551a.zip
help text tweaks
function old new delta packed_usage 33570 33502 -68 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--archival/ar.c59
-rw-r--r--archival/bbunzip.c10
-rw-r--r--archival/cpio.c2
-rw-r--r--archival/dpkg_deb.c2
-rw-r--r--coreutils/sort.c2
-rw-r--r--coreutils/timeout.c2
-rw-r--r--coreutils/uniq.c2
-rw-r--r--debianutils/which.c4
-rw-r--r--init/halt.c6
-rw-r--r--networking/ifupdown.c14
-rw-r--r--networking/ntpd.c2
-rw-r--r--networking/tunctl.c16
-rw-r--r--networking/wget.c13
-rw-r--r--util-linux/chrt.c2
-rw-r--r--util-linux/ionice.c8
-rw-r--r--util-linux/nsenter.c2
-rw-r--r--util-linux/setpriv.c2
-rw-r--r--util-linux/uevent.c2
-rw-r--r--util-linux/unshare.c6
19 files changed, 77 insertions, 79 deletions
diff --git a/archival/ar.c b/archival/ar.c
index af9793f23..71f949e79 100644
--- a/archival/ar.c
+++ b/archival/ar.c
@@ -48,16 +48,6 @@
48 48
49//kbuild:lib-$(CONFIG_AR) += ar.o 49//kbuild:lib-$(CONFIG_AR) += ar.o
50 50
51//usage:#define ar_trivial_usage
52//usage: "[-optxv] ARCHIVE FILES"
53//usage:#define ar_full_usage "\n\n"
54//usage: "Extract or list FILES from an ar archive\n"
55//usage: "\n -o Preserve original dates"
56//usage: "\n -p Extract to stdout"
57//usage: "\n -t List"
58//usage: "\n -x Extract"
59//usage: "\n -v Verbose"
60
61#include "libbb.h" 51#include "libbb.h"
62#include "bb_archive.h" 52#include "bb_archive.h"
63#include "ar_.h" 53#include "ar_.h"
@@ -220,23 +210,36 @@ static void FAST_FUNC header_verbose_list_ar(const file_header_t *file_header)
220 ); 210 );
221} 211}
222 212
223#define AR_OPT_VERBOSE (1 << 0) 213//usage:#define ar_trivial_usage
224#define AR_OPT_PRESERVE_DATE (1 << 1) 214//usage: "x|p|t"IF_FEATURE_AR_CREATE("|r")" [-ov] ARCHIVE [FILE]..."
225/* "ar r" implies create, but warns about it. c suppresses warning. 215//usage:#define ar_full_usage "\n\n"
226 * bbox accepts but ignores it: */ 216//usage: "Extract or list FILEs from an ar archive"IF_FEATURE_AR_CREATE(", or create it")"\n"
227#define AR_OPT_CREATE (1 << 2) 217//usage: "\n x Extract"
228 218//usage: "\n p Extract to stdout"
229#define AR_CMD_PRINT (1 << 3) 219//usage: "\n t List"
230#define FIRST_CMD AR_CMD_PRINT 220//usage: IF_FEATURE_AR_CREATE(
231#define AR_CMD_LIST (1 << 4) 221//usage: "\n r Create"
232#define AR_CMD_EXTRACT (1 << 5) 222//usage: )
233#define AR_CMD_INSERT (1 << 6) 223//usage: "\n -o Restore mtime"
224//usage: "\n -v Verbose"
234 225
235int ar_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 226int ar_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
236int ar_main(int argc UNUSED_PARAM, char **argv) 227int ar_main(int argc UNUSED_PARAM, char **argv)
237{ 228{
238 archive_handle_t *archive_handle; 229 archive_handle_t *archive_handle;
239 unsigned opt, t; 230 unsigned opt, t;
231 enum {
232 OPT_VERBOSE = (1 << 0),
233 OPT_PRESERVE_DATE = (1 << 1),
234 /* "ar r" implies create, but warns about it. c suppresses warning.
235 * bbox accepts but ignores it: */
236 OPT_CREATE = (1 << 2),
237 CMD_PRINT = (1 << 3),
238 FIRST_CMD = CMD_PRINT,
239 CMD_LIST = (1 << 4),
240 CMD_EXTRACT = (1 << 5),
241 CMD_INSERT = ((1 << 6) * ENABLE_FEATURE_AR_CREATE),
242 };
240 243
241 archive_handle = init_handle(); 244 archive_handle = init_handle();
242 245
@@ -256,26 +259,26 @@ int ar_main(int argc UNUSED_PARAM, char **argv)
256 if (t & (t-1)) /* more than one of p,t,x[,r] are specified */ 259 if (t & (t-1)) /* more than one of p,t,x[,r] are specified */
257 bb_show_usage(); 260 bb_show_usage();
258 261
259 if (opt & AR_CMD_PRINT) { 262 if (opt & CMD_PRINT) {
260 archive_handle->action_data = data_extract_to_stdout; 263 archive_handle->action_data = data_extract_to_stdout;
261 } 264 }
262 if (opt & AR_CMD_LIST) { 265 if (opt & CMD_LIST) {
263 archive_handle->action_header = header_list; 266 archive_handle->action_header = header_list;
264 } 267 }
265 if (opt & AR_CMD_EXTRACT) { 268 if (opt & CMD_EXTRACT) {
266 archive_handle->action_data = data_extract_all; 269 archive_handle->action_data = data_extract_all;
267 } 270 }
268 if (opt & AR_OPT_PRESERVE_DATE) { 271 if (opt & OPT_PRESERVE_DATE) {
269 archive_handle->ah_flags |= ARCHIVE_RESTORE_DATE; 272 archive_handle->ah_flags |= ARCHIVE_RESTORE_DATE;
270 } 273 }
271 if (opt & AR_OPT_VERBOSE) { 274 if (opt & OPT_VERBOSE) {
272 archive_handle->action_header = header_verbose_list_ar; 275 archive_handle->action_header = header_verbose_list_ar;
273 } 276 }
274#if ENABLE_FEATURE_AR_CREATE 277#if ENABLE_FEATURE_AR_CREATE
275 archive_handle->ar__name = *argv; 278 archive_handle->ar__name = *argv;
276#endif 279#endif
277 archive_handle->src_fd = xopen(*argv++, 280 archive_handle->src_fd = xopen(*argv++,
278 (opt & AR_CMD_INSERT) 281 (opt & CMD_INSERT)
279 ? O_RDWR | O_CREAT 282 ? O_RDWR | O_CREAT
280 : O_RDONLY 283 : O_RDONLY
281 ); 284 );
@@ -287,7 +290,7 @@ int ar_main(int argc UNUSED_PARAM, char **argv)
287 } 290 }
288 291
289#if ENABLE_FEATURE_AR_CREATE 292#if ENABLE_FEATURE_AR_CREATE
290 if (opt & AR_CMD_INSERT) 293 if (opt & CMD_INSERT)
291 return write_ar_archive(archive_handle); 294 return write_ar_archive(archive_handle);
292#endif 295#endif
293 296
diff --git a/archival/bbunzip.c b/archival/bbunzip.c
index 6244bce85..d639f307e 100644
--- a/archival/bbunzip.c
+++ b/archival/bbunzip.c
@@ -219,7 +219,7 @@ char* FAST_FUNC make_new_name_generic(char *filename, const char *expected_ext)
219//usage:#define uncompress_trivial_usage 219//usage:#define uncompress_trivial_usage
220//usage: "[-cf] [FILE]..." 220//usage: "[-cf] [FILE]..."
221//usage:#define uncompress_full_usage "\n\n" 221//usage:#define uncompress_full_usage "\n\n"
222//usage: "Decompress .Z file[s]\n" 222//usage: "Decompress FILEs (or stdin)\n"
223//usage: "\n -c Write to stdout" 223//usage: "\n -c Write to stdout"
224//usage: "\n -f Overwrite" 224//usage: "\n -f Overwrite"
225 225
@@ -461,7 +461,7 @@ int bunzip2_main(int argc UNUSED_PARAM, char **argv)
461//usage:#define unlzma_trivial_usage 461//usage:#define unlzma_trivial_usage
462//usage: "[-cfk] [FILE]..." 462//usage: "[-cfk] [FILE]..."
463//usage:#define unlzma_full_usage "\n\n" 463//usage:#define unlzma_full_usage "\n\n"
464//usage: "Decompress FILE (or stdin)\n" 464//usage: "Decompress FILEs (or stdin)\n"
465//usage: "\n -c Write to stdout" 465//usage: "\n -c Write to stdout"
466//usage: "\n -f Force" 466//usage: "\n -f Force"
467//usage: "\n -k Keep input files" 467//usage: "\n -k Keep input files"
@@ -469,7 +469,7 @@ int bunzip2_main(int argc UNUSED_PARAM, char **argv)
469//usage:#define lzma_trivial_usage 469//usage:#define lzma_trivial_usage
470//usage: "-d [-cfk] [FILE]..." 470//usage: "-d [-cfk] [FILE]..."
471//usage:#define lzma_full_usage "\n\n" 471//usage:#define lzma_full_usage "\n\n"
472//usage: "Decompress FILE (or stdin)\n" 472//usage: "Decompress FILEs (or stdin)\n"
473//usage: "\n -d Decompress" 473//usage: "\n -d Decompress"
474//usage: "\n -c Write to stdout" 474//usage: "\n -c Write to stdout"
475//usage: "\n -f Force" 475//usage: "\n -f Force"
@@ -532,7 +532,7 @@ int unlzma_main(int argc UNUSED_PARAM, char **argv)
532//usage:#define unxz_trivial_usage 532//usage:#define unxz_trivial_usage
533//usage: "[-cfk] [FILE]..." 533//usage: "[-cfk] [FILE]..."
534//usage:#define unxz_full_usage "\n\n" 534//usage:#define unxz_full_usage "\n\n"
535//usage: "Decompress FILE (or stdin)\n" 535//usage: "Decompress FILEs (or stdin)\n"
536//usage: "\n -c Write to stdout" 536//usage: "\n -c Write to stdout"
537//usage: "\n -f Force" 537//usage: "\n -f Force"
538//usage: "\n -k Keep input files" 538//usage: "\n -k Keep input files"
@@ -541,7 +541,7 @@ int unlzma_main(int argc UNUSED_PARAM, char **argv)
541//usage:#define xz_trivial_usage 541//usage:#define xz_trivial_usage
542//usage: "-d [-cfk] [FILE]..." 542//usage: "-d [-cfk] [FILE]..."
543//usage:#define xz_full_usage "\n\n" 543//usage:#define xz_full_usage "\n\n"
544//usage: "Decompress FILE (or stdin)\n" 544//usage: "Decompress FILEs (or stdin)\n"
545//usage: "\n -d Decompress" 545//usage: "\n -d Decompress"
546//usage: "\n -c Write to stdout" 546//usage: "\n -c Write to stdout"
547//usage: "\n -f Force" 547//usage: "\n -f Force"
diff --git a/archival/cpio.c b/archival/cpio.c
index 94b4b8174..94303389e 100644
--- a/archival/cpio.c
+++ b/archival/cpio.c
@@ -68,7 +68,7 @@
68//usage: "\n -H newc Archive format" 68//usage: "\n -H newc Archive format"
69//usage: ) 69//usage: )
70//usage: "\n -d Make leading directories" 70//usage: "\n -d Make leading directories"
71//usage: "\n -m Preserve mtime" 71//usage: "\n -m Restore mtime"
72//usage: "\n -v Verbose" 72//usage: "\n -v Verbose"
73//usage: "\n -u Overwrite" 73//usage: "\n -u Overwrite"
74//usage: "\n -F FILE Input (-t,-i,-p) or output (-o) file" 74//usage: "\n -F FILE Input (-t,-i,-p) or output (-o) file"
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c
index c2c4cbbcc..a5a80439d 100644
--- a/archival/dpkg_deb.c
+++ b/archival/dpkg_deb.c
@@ -28,7 +28,7 @@
28//usage: "\n -f Print control fields" 28//usage: "\n -f Print control fields"
29//usage: "\n -e Extract control files to DIR (default: ./DEBIAN)" 29//usage: "\n -e Extract control files to DIR (default: ./DEBIAN)"
30//usage: "\n -x Extract files to DIR (no default)" 30//usage: "\n -x Extract files to DIR (no default)"
31//usage: "\n -X Verbose -x" 31//usage: "\n -X Verbose extract"
32//usage: 32//usage:
33//usage:#define dpkg_deb_example_usage 33//usage:#define dpkg_deb_example_usage
34//usage: "$ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp\n" 34//usage: "$ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp\n"
diff --git a/coreutils/sort.c b/coreutils/sort.c
index 07c327645..b194847d1 100644
--- a/coreutils/sort.c
+++ b/coreutils/sort.c
@@ -43,7 +43,7 @@
43 43
44//usage:#define sort_trivial_usage 44//usage:#define sort_trivial_usage
45//usage: "[-nru" 45//usage: "[-nru"
46//usage: IF_FEATURE_SORT_BIG("gMcszbdfiokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR") 46//usage: IF_FEATURE_SORT_BIG("gMcszbdfiokt] [-o FILE] [-k START[.OFS][OPTS][,END[.OFS][OPTS]] [-t CHAR")
47//usage: "] [FILE]..." 47//usage: "] [FILE]..."
48//usage:#define sort_full_usage "\n\n" 48//usage:#define sort_full_usage "\n\n"
49//usage: "Sort lines of text\n" 49//usage: "Sort lines of text\n"
diff --git a/coreutils/timeout.c b/coreutils/timeout.c
index 2a628b71d..8485e1e7d 100644
--- a/coreutils/timeout.c
+++ b/coreutils/timeout.c
@@ -41,7 +41,7 @@
41//usage:#define timeout_trivial_usage 41//usage:#define timeout_trivial_usage
42//usage: "[-s SIG] SECS PROG ARGS" 42//usage: "[-s SIG] SECS PROG ARGS"
43//usage:#define timeout_full_usage "\n\n" 43//usage:#define timeout_full_usage "\n\n"
44//usage: "Runs PROG. Sends SIG to it if it is not gone in SECS seconds.\n" 44//usage: "Run PROG. Send SIG to it if it is not gone in SECS seconds.\n"
45//usage: "Default SIG: TERM." 45//usage: "Default SIG: TERM."
46 46
47#include "libbb.h" 47#include "libbb.h"
diff --git a/coreutils/uniq.c b/coreutils/uniq.c
index 317f45531..e1594286f 100644
--- a/coreutils/uniq.c
+++ b/coreutils/uniq.c
@@ -20,7 +20,7 @@
20/* http://www.opengroup.org/onlinepubs/007904975/utilities/uniq.html */ 20/* http://www.opengroup.org/onlinepubs/007904975/utilities/uniq.html */
21 21
22//usage:#define uniq_trivial_usage 22//usage:#define uniq_trivial_usage
23//usage: "[-cdu][-f,s,w N] [INPUT [OUTPUT]]" 23//usage: "[-cdui] [-f,s,w N] [INPUT [OUTPUT]]"
24//usage:#define uniq_full_usage "\n\n" 24//usage:#define uniq_full_usage "\n\n"
25//usage: "Discard duplicate lines\n" 25//usage: "Discard duplicate lines\n"
26//usage: "\n -c Prefix lines by the number of occurrences" 26//usage: "\n -c Prefix lines by the number of occurrences"
diff --git a/debianutils/which.c b/debianutils/which.c
index 98876521f..b9f1b92fd 100644
--- a/debianutils/which.c
+++ b/debianutils/which.c
@@ -17,9 +17,9 @@
17//kbuild:lib-$(CONFIG_WHICH) += which.o 17//kbuild:lib-$(CONFIG_WHICH) += which.o
18 18
19//usage:#define which_trivial_usage 19//usage:#define which_trivial_usage
20//usage: "[COMMAND]..." 20//usage: "COMMAND..."
21//usage:#define which_full_usage "\n\n" 21//usage:#define which_full_usage "\n\n"
22//usage: "Locate a COMMAND" 22//usage: "Locate COMMAND"
23//usage: 23//usage:
24//usage:#define which_example_usage 24//usage:#define which_example_usage
25//usage: "$ which login\n" 25//usage: "$ which login\n"
diff --git a/init/halt.c b/init/halt.c
index 2070eaa4d..fe3cb9e75 100644
--- a/init/halt.c
+++ b/init/halt.c
@@ -65,7 +65,7 @@
65//kbuild:lib-$(CONFIG_REBOOT) += halt.o 65//kbuild:lib-$(CONFIG_REBOOT) += halt.o
66 66
67//usage:#define halt_trivial_usage 67//usage:#define halt_trivial_usage
68//usage: "[-d DELAY] [-n] [-f]" IF_FEATURE_WTMP(" [-w]") 68//usage: "[-d DELAY] [-nf"IF_FEATURE_WTMP("w")"]"
69//usage:#define halt_full_usage "\n\n" 69//usage:#define halt_full_usage "\n\n"
70//usage: "Halt the system\n" 70//usage: "Halt the system\n"
71//usage: "\n -d SEC Delay interval" 71//usage: "\n -d SEC Delay interval"
@@ -76,7 +76,7 @@
76//usage: ) 76//usage: )
77//usage: 77//usage:
78//usage:#define poweroff_trivial_usage 78//usage:#define poweroff_trivial_usage
79//usage: "[-d DELAY] [-n] [-f]" 79//usage: "[-d DELAY] [-nf]"
80//usage:#define poweroff_full_usage "\n\n" 80//usage:#define poweroff_full_usage "\n\n"
81//usage: "Halt and shut off power\n" 81//usage: "Halt and shut off power\n"
82//usage: "\n -d SEC Delay interval" 82//usage: "\n -d SEC Delay interval"
@@ -84,7 +84,7 @@
84//usage: "\n -f Force (don't go through init)" 84//usage: "\n -f Force (don't go through init)"
85//usage: 85//usage:
86//usage:#define reboot_trivial_usage 86//usage:#define reboot_trivial_usage
87//usage: "[-d DELAY] [-n] [-f]" 87//usage: "[-d DELAY] [-nf]"
88//usage:#define reboot_full_usage "\n\n" 88//usage:#define reboot_full_usage "\n\n"
89//usage: "Reboot the system\n" 89//usage: "Reboot the system\n"
90//usage: "\n -d SEC Delay interval" 90//usage: "\n -d SEC Delay interval"
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index fedf05aaf..737113dd4 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -113,30 +113,30 @@
113//kbuild:lib-$(CONFIG_IFDOWN) += ifupdown.o 113//kbuild:lib-$(CONFIG_IFDOWN) += ifupdown.o
114 114
115//usage:#define ifup_trivial_usage 115//usage:#define ifup_trivial_usage
116//usage: "[-an"IF_FEATURE_IFUPDOWN_MAPPING("m")"vf] [-i FILE] IFACE..." 116//usage: "[-n"IF_FEATURE_IFUPDOWN_MAPPING("m")"vf] [-i FILE] -a | IFACE..."
117//usage:#define ifup_full_usage "\n\n" 117//usage:#define ifup_full_usage "\n\n"
118//usage: " -a Configure all interfaces" 118//usage: " -a Configure all interfaces"
119//usage: "\n -i FILE Use FILE instead of /etc/network/interfaces" 119//usage: "\n -i FILE Use FILE instead of /etc/network/interfaces"
120//usage: "\n -n Print out what would happen, but don't do it" 120//usage: "\n -n Dry run"
121//usage: IF_FEATURE_IFUPDOWN_MAPPING( 121//usage: IF_FEATURE_IFUPDOWN_MAPPING(
122//usage: "\n (note: doesn't disable mappings)" 122//usage: "\n (note: doesn't disable mappings)"
123//usage: "\n -m Don't run any mappings" 123//usage: "\n -m Don't run any mappings"
124//usage: ) 124//usage: )
125//usage: "\n -v Print out what would happen before doing it" 125//usage: "\n -v Print out what would happen before doing it"
126//usage: "\n -f Force configuration" 126//usage: "\n -f Force"
127//usage: 127//usage:
128//usage:#define ifdown_trivial_usage 128//usage:#define ifdown_trivial_usage
129//usage: "[-an"IF_FEATURE_IFUPDOWN_MAPPING("m")"vf] [-i FILE] IFACE..." 129//usage: "[-n"IF_FEATURE_IFUPDOWN_MAPPING("m")"vf] [-i FILE] -a | IFACE..."
130//usage:#define ifdown_full_usage "\n\n" 130//usage:#define ifdown_full_usage "\n\n"
131//usage: " -a Deconfigure all interfaces" 131//usage: " -a Deconfigure all interfaces"
132//usage: "\n -i FILE Use FILE for interface definitions" 132//usage: "\n -i FILE Use FILE instead of /etc/network/interfaces"
133//usage: "\n -n Print out what would happen, but don't do it" 133//usage: "\n -n Dry run"
134//usage: IF_FEATURE_IFUPDOWN_MAPPING( 134//usage: IF_FEATURE_IFUPDOWN_MAPPING(
135//usage: "\n (note: doesn't disable mappings)" 135//usage: "\n (note: doesn't disable mappings)"
136//usage: "\n -m Don't run any mappings" 136//usage: "\n -m Don't run any mappings"
137//usage: ) 137//usage: )
138//usage: "\n -v Print out what would happen before doing it" 138//usage: "\n -v Print out what would happen before doing it"
139//usage: "\n -f Force deconfiguration" 139//usage: "\n -f Force"
140 140
141#include <net/if.h> 141#include <net/if.h>
142#include "libbb.h" 142#include "libbb.h"
diff --git a/networking/ntpd.c b/networking/ntpd.c
index 06f6017d0..5a540a391 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -77,7 +77,7 @@
77//usage: IF_FEATURE_NTP_AUTH(" [-k KEYFILE] [-p [keyno:N:]PEER]...") 77//usage: IF_FEATURE_NTP_AUTH(" [-k KEYFILE] [-p [keyno:N:]PEER]...")
78//usage:#define ntpd_full_usage "\n\n" 78//usage:#define ntpd_full_usage "\n\n"
79//usage: "NTP client/server\n" 79//usage: "NTP client/server\n"
80//usage: "\n -d Verbose (may be repeated)" 80//usage: "\n -d[d] Verbose"
81//usage: "\n -n Do not daemonize" 81//usage: "\n -n Do not daemonize"
82//usage: "\n -q Quit after clock is set" 82//usage: "\n -q Quit after clock is set"
83//usage: "\n -N Run at high priority" 83//usage: "\n -N Run at high priority"
diff --git a/networking/tunctl.c b/networking/tunctl.c
index 0f010e196..97e6917aa 100644
--- a/networking/tunctl.c
+++ b/networking/tunctl.c
@@ -28,16 +28,16 @@
28//kbuild:lib-$(CONFIG_TUNCTL) += tunctl.o 28//kbuild:lib-$(CONFIG_TUNCTL) += tunctl.o
29 29
30//usage:#define tunctl_trivial_usage 30//usage:#define tunctl_trivial_usage
31//usage: "[-f device] ([-t name] | -d name)" IF_FEATURE_TUNCTL_UG(" [-u owner] [-g group] [-b]") 31//usage: "[-f DEVICE] [-t NAME | -d NAME]" IF_FEATURE_TUNCTL_UG(" [-u USER] [-g GRP] [-b]")
32//usage:#define tunctl_full_usage "\n\n" 32//usage:#define tunctl_full_usage "\n\n"
33//usage: "Create or delete tun interfaces\n" 33//usage: "Create or delete TUN/TAP interfaces\n"
34//usage: "\n -f name tun device (/dev/net/tun)" 34//usage: "\n -f DEV TUN device (default /dev/net/tun)"
35//usage: "\n -t name Create iface 'name'" 35//usage: "\n -t NAME Create iface (default: tapN)"
36//usage: "\n -d name Delete iface 'name'" 36//usage: "\n -d NAME Delete iface"
37//usage: IF_FEATURE_TUNCTL_UG( 37//usage: IF_FEATURE_TUNCTL_UG(
38//usage: "\n -u owner Set iface owner" 38//usage: "\n -u USER Set iface owner"
39//usage: "\n -g group Set iface group" 39//usage: "\n -g GRP Set iface group"
40//usage: "\n -b Brief output" 40//usage: "\n -b Brief output"
41//usage: ) 41//usage: )
42//usage: 42//usage:
43//usage:#define tunctl_example_usage 43//usage:#define tunctl_example_usage
diff --git a/networking/wget.c b/networking/wget.c
index ff0df4ca0..e660c279c 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -128,19 +128,14 @@
128 128
129//usage:#define wget_trivial_usage 129//usage:#define wget_trivial_usage
130//usage: IF_FEATURE_WGET_LONG_OPTIONS( 130//usage: IF_FEATURE_WGET_LONG_OPTIONS(
131//usage: "[-c|--continue] [--spider] [-q|--quiet] [-O|--output-document FILE]\n" 131//usage: "[-cqS] [--spider] [-O FILE] [-o LOGFILE] [--header 'HEADER: VALUE'] [-Y on/off]\n"
132//usage: " [-o|--output-file FILE] [--header 'header: value'] [-Y|--proxy on/off]\n"
133//usage: IF_FEATURE_WGET_OPENSSL(
134//usage: " [--no-check-certificate]\n"
135//usage: )
136/* Since we ignore these opts, we don't show them in --help */ 132/* Since we ignore these opts, we don't show them in --help */
137/* //usage: " [--no-cache] [--passive-ftp] [-t TRIES]" */ 133/* //usage: " [--no-cache] [--passive-ftp] [-t TRIES]" */
138/* //usage: " [-nv] [-nc] [-nH] [-np]" */ 134/* //usage: " [-nv] [-nc] [-nH] [-np]" */
139//usage: " [-P DIR] [-S|--server-response] [-U|--user-agent AGENT]" IF_FEATURE_WGET_TIMEOUT(" [-T SEC]") " URL..." 135//usage: " "IF_FEATURE_WGET_OPENSSL("[--no-check-certificate] ")"[-P DIR] [-U AGENT]"IF_FEATURE_WGET_TIMEOUT(" [-T SEC]")" URL..."
140//usage: ) 136//usage: )
141//usage: IF_NOT_FEATURE_WGET_LONG_OPTIONS( 137//usage: IF_NOT_FEATURE_WGET_LONG_OPTIONS(
142//usage: "[-cq] [-O FILE] [-o FILE] [-Y on/off] [-P DIR] [-S] [-U AGENT]" 138//usage: "[-cqS] [-O FILE] [-o LOGFILE] [-Y on/off] [-P DIR] [-U AGENT]"IF_FEATURE_WGET_TIMEOUT(" [-T SEC]")" URL..."
143//usage: IF_FEATURE_WGET_TIMEOUT(" [-T SEC]") " URL..."
144//usage: ) 139//usage: )
145//usage:#define wget_full_usage "\n\n" 140//usage:#define wget_full_usage "\n\n"
146//usage: "Retrieve files via HTTP or FTP\n" 141//usage: "Retrieve files via HTTP or FTP\n"
@@ -158,7 +153,7 @@
158//usage: "\n -T SEC Network read timeout is SEC seconds" 153//usage: "\n -T SEC Network read timeout is SEC seconds"
159//usage: ) 154//usage: )
160//usage: "\n -O FILE Save to FILE ('-' for stdout)" 155//usage: "\n -O FILE Save to FILE ('-' for stdout)"
161//usage: "\n -o FILE Log messages to FILE" 156//usage: "\n -o LOGFILE Log messages to FILE"
162//usage: "\n -U STR Use STR for User-Agent header" 157//usage: "\n -U STR Use STR for User-Agent header"
163//usage: "\n -Y on/off Use proxy" 158//usage: "\n -Y on/off Use proxy"
164 159
diff --git a/util-linux/chrt.c b/util-linux/chrt.c
index 6e8f66741..a8701b55f 100644
--- a/util-linux/chrt.c
+++ b/util-linux/chrt.c
@@ -17,7 +17,7 @@
17//kbuild:lib-$(CONFIG_CHRT) += chrt.o 17//kbuild:lib-$(CONFIG_CHRT) += chrt.o
18 18
19//usage:#define chrt_trivial_usage 19//usage:#define chrt_trivial_usage
20//usage: "-m | -p [PRIO] PID | [-rfobi] PRIO PROG [ARGS]" 20//usage: "-m | -p [PRIO] PID | [-rfobi] PRIO PROG ARGS"
21//usage:#define chrt_full_usage "\n\n" 21//usage:#define chrt_full_usage "\n\n"
22//usage: "Change scheduling priority and class for a process\n" 22//usage: "Change scheduling priority and class for a process\n"
23//usage: "\n -m Show min/max priorities" 23//usage: "\n -m Show min/max priorities"
diff --git a/util-linux/ionice.c b/util-linux/ionice.c
index 40c04d5e0..c8fb1a777 100644
--- a/util-linux/ionice.c
+++ b/util-linux/ionice.c
@@ -18,11 +18,11 @@
18//kbuild:lib-$(CONFIG_IONICE) += ionice.o 18//kbuild:lib-$(CONFIG_IONICE) += ionice.o
19 19
20//usage:#define ionice_trivial_usage 20//usage:#define ionice_trivial_usage
21//usage: "[-c 1-3] [-n 0-7] [-p PID] [PROG]" 21//usage: "[-c 1-3] [-n 0-7] [-p PID] [PROG ARGS]"
22//usage:#define ionice_full_usage "\n\n" 22//usage:#define ionice_full_usage "\n\n"
23//usage: "Change I/O priority and class\n" 23//usage: "Change I/O priority and class\n"
24//usage: "\n -c Class. 1:realtime 2:best-effort 3:idle" 24//usage: "\n -c N Class. 1:realtime 2:best-effort 3:idle"
25//usage: "\n -n Priority" 25//usage: "\n -n N Priority"
26 26
27#include <sys/syscall.h> 27#include <sys/syscall.h>
28#include <asm/unistd.h> 28#include <asm/unistd.h>
@@ -61,7 +61,7 @@ int ionice_main(int argc UNUSED_PARAM, char **argv)
61 /* Defaults */ 61 /* Defaults */
62 int ioclass = 0; 62 int ioclass = 0;
63 int pri = 0; 63 int pri = 0;
64 int pid = 0; /* affect own porcess */ 64 int pid = 0; /* affect own process */
65 int opt; 65 int opt;
66 enum { 66 enum {
67 OPT_n = 1, 67 OPT_n = 1,
diff --git a/util-linux/nsenter.c b/util-linux/nsenter.c
index 9cfbf21e4..e6339da2f 100644
--- a/util-linux/nsenter.c
+++ b/util-linux/nsenter.c
@@ -17,7 +17,7 @@
17//kbuild:lib-$(CONFIG_NSENTER) += nsenter.o 17//kbuild:lib-$(CONFIG_NSENTER) += nsenter.o
18 18
19//usage:#define nsenter_trivial_usage 19//usage:#define nsenter_trivial_usage
20//usage: "[OPTIONS] [PROG [ARGS]]" 20//usage: "[OPTIONS] [PROG ARGS]"
21//usage:#define nsenter_full_usage "\n" 21//usage:#define nsenter_full_usage "\n"
22//usage: "\n -t PID Target process to get namespaces from" 22//usage: "\n -t PID Target process to get namespaces from"
23//usage: "\n -m[FILE] Enter mount namespace" 23//usage: "\n -m[FILE] Enter mount namespace"
diff --git a/util-linux/setpriv.c b/util-linux/setpriv.c
index 1e4b201ed..6904cf019 100644
--- a/util-linux/setpriv.c
+++ b/util-linux/setpriv.c
@@ -47,7 +47,7 @@
47//kbuild:lib-$(CONFIG_SETPRIV) += setpriv.o 47//kbuild:lib-$(CONFIG_SETPRIV) += setpriv.o
48 48
49//usage:#define setpriv_trivial_usage 49//usage:#define setpriv_trivial_usage
50//usage: "[OPTIONS] PROG [ARGS]" 50//usage: "[OPTIONS] PROG ARGS"
51//usage:#define setpriv_full_usage "\n\n" 51//usage:#define setpriv_full_usage "\n\n"
52//usage: "Run PROG with different privilege settings\n" 52//usage: "Run PROG with different privilege settings\n"
53//usage: IF_FEATURE_SETPRIV_DUMP( 53//usage: IF_FEATURE_SETPRIV_DUMP(
diff --git a/util-linux/uevent.c b/util-linux/uevent.c
index 015f1ee78..db11746d0 100644
--- a/util-linux/uevent.c
+++ b/util-linux/uevent.c
@@ -15,7 +15,7 @@
15//kbuild:lib-$(CONFIG_UEVENT) += uevent.o 15//kbuild:lib-$(CONFIG_UEVENT) += uevent.o
16 16
17//usage:#define uevent_trivial_usage 17//usage:#define uevent_trivial_usage
18//usage: "[PROG [ARGS]]" 18//usage: "[PROG ARGS]"
19//usage:#define uevent_full_usage "\n\n" 19//usage:#define uevent_full_usage "\n\n"
20//usage: "uevent runs PROG for every netlink notification." 20//usage: "uevent runs PROG for every netlink notification."
21//usage: "\n""PROG's environment contains data passed from the kernel." 21//usage: "\n""PROG's environment contains data passed from the kernel."
diff --git a/util-linux/unshare.c b/util-linux/unshare.c
index 2087413e8..68ccdd874 100644
--- a/util-linux/unshare.c
+++ b/util-linux/unshare.c
@@ -23,7 +23,7 @@
23//kbuild:lib-$(CONFIG_UNSHARE) += unshare.o 23//kbuild:lib-$(CONFIG_UNSHARE) += unshare.o
24 24
25//usage:#define unshare_trivial_usage 25//usage:#define unshare_trivial_usage
26//usage: "[OPTIONS] [PROG [ARGS]]" 26//usage: "[OPTIONS] [PROG ARGS]"
27//usage:#define unshare_full_usage "\n" 27//usage:#define unshare_full_usage "\n"
28//usage: "\n -m,--mount[=FILE] Unshare mount namespace" 28//usage: "\n -m,--mount[=FILE] Unshare mount namespace"
29//usage: "\n -u,--uts[=FILE] Unshare UTS namespace (hostname etc.)" 29//usage: "\n -u,--uts[=FILE] Unshare UTS namespace (hostname etc.)"
@@ -31,8 +31,8 @@
31//usage: "\n -n,--net[=FILE] Unshare network namespace" 31//usage: "\n -n,--net[=FILE] Unshare network namespace"
32//usage: "\n -p,--pid[=FILE] Unshare PID namespace" 32//usage: "\n -p,--pid[=FILE] Unshare PID namespace"
33//usage: "\n -U,--user[=FILE] Unshare user namespace" 33//usage: "\n -U,--user[=FILE] Unshare user namespace"
34//usage: "\n -f,--fork Fork before execing PROG" 34//usage: "\n -f Fork before execing PROG"
35//usage: "\n -r,--map-root-user Map current user to root (implies -U)" 35//usage: "\n -r Map current user to root (implies -U)"
36//usage: "\n --mount-proc[=DIR] Mount /proc filesystem first (implies -m)" 36//usage: "\n --mount-proc[=DIR] Mount /proc filesystem first (implies -m)"
37//usage: "\n --propagation slave|shared|private|unchanged" 37//usage: "\n --propagation slave|shared|private|unchanged"
38//usage: "\n Modify mount propagation in mount namespace" 38//usage: "\n Modify mount propagation in mount namespace"