aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/usage.h146
1 files changed, 77 insertions, 69 deletions
diff --git a/include/usage.h b/include/usage.h
index c5f978956..4b7032308 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -874,46 +874,46 @@
874 "[options] [device] .." 874 "[options] [device] .."
875#define hdparm_full_usage \ 875#define hdparm_full_usage \
876 "Options:" \ 876 "Options:" \
877 " -a get/set fs readahead\n" \ 877 "\t-a get/set fs readahead\n" \
878 " -A set drive read-lookahead flag (0/1)\n" \ 878 "\t-A set drive read-lookahead flag (0/1)\n" \
879 " -b get/set bus state (0 == off, 1 == on, 2 == tristate)\n" \ 879 "\t-b get/set bus state (0 == off, 1 == on, 2 == tristate)\n" \
880 " -B set Advanced Power Management setting (1-255)\n" \ 880 "\t-B set Advanced Power Management setting (1-255)\n" \
881 " -c get/set IDE 32-bit IO setting\n" \ 881 "\t-c get/set IDE 32-bit IO setting\n" \
882 " -C check IDE power mode status\n" \ 882 "\t-C check IDE power mode status\n" \
883 USAGE_GETSET_DMA(" -d get/set using_dma flag\n") \ 883 USAGE_GETSET_DMA("\t-d get/set using_dma flag\n") \
884 " -D enable/disable drive defect-mgmt\n" \ 884 "\t-D enable/disable drive defect-mgmt\n" \
885 " -f flush buffer cache for device on exit\n" \ 885 "\t-f flush buffer cache for device on exit\n" \
886 " -g display drive geometry\n" \ 886 "\t-g display drive geometry\n" \
887 " -h display terse usage information\n" \ 887 "\t-h display terse usage information\n" \
888 " -i display drive identification\n" \ 888 "\t-i display drive identification\n" \
889 USAGE_HDPARM_IDENT(" -I detailed/current information directly from drive\n") \ 889 USAGE_HDPARM_IDENT("\t-I detailed/current information directly from drive\n") \
890 USAGE_HDPARM_IDENT(" -Istdin similar to -I, but wants /proc/ide/" "*" "/hd?/identify as input\n") \ 890 USAGE_HDPARM_IDENT("\t-Istdin similar to -I, but wants /proc/ide/" "*" "/hd?/identify as input\n") \
891 " -k get/set keep_settings_over_reset flag (0/1)\n" \ 891 "\t-k get/set keep_settings_over_reset flag (0/1)\n" \
892 " -K set drive keep_features_over_reset flag (0/1)\n" \ 892 "\t-K set drive keep_features_over_reset flag (0/1)\n" \
893 " -L set drive doorlock (0/1) (removable harddisks only)\n" \ 893 "\t-L set drive doorlock (0/1) (removable harddisks only)\n" \
894 " -m get/set multiple sector count\n" \ 894 "\t-m get/set multiple sector count\n" \
895 " -n get/set ignore-write-errors flag (0/1)\n" \ 895 "\t-n get/set ignore-write-errors flag (0/1)\n" \
896 " -p set PIO mode on IDE interface chipset (0,1,2,3,4,...)\n" \ 896 "\t-p set PIO mode on IDE interface chipset (0,1,2,3,4,...)\n" \
897 " -P set drive prefetch count\n" \ 897 "\t-P set drive prefetch count\n" \
898 " -q change next setting quietly\n" \ 898 "\t-q change next setting quietly\n" \
899 " -Q get/set DMA tagged-queuing depth (if supported)\n" \ 899 "\t-Q get/set DMA tagged-queuing depth (if supported)\n" \
900 " -r get/set readonly flag (DANGEROUS to set)\n" \ 900 "\t-r get/set readonly flag (DANGEROUS to set)\n" \
901 USAGE_SCAN_HWIF(" -R register an IDE interface (DANGEROUS)\n") \ 901 USAGE_SCAN_HWIF("\t-R register an IDE interface (DANGEROUS)\n") \
902 " -S set standby (spindown) timeout\n" \ 902 "\t-S set standby (spindown) timeout\n" \
903 " -t perform device read timings\n" \ 903 "\t-t perform device read timings\n" \
904 " -T perform cache read timings\n" \ 904 "\t-T perform cache read timings\n" \
905 " -u get/set unmaskirq flag (0/1)\n" \ 905 "\t-u get/set unmaskirq flag (0/1)\n" \
906 USAGE_UNREGISTER_HWIF(" -U un-register an IDE interface (DANGEROUS)\n") \ 906 USAGE_UNREGISTER_HWIF("\t-U un-register an IDE interface (DANGEROUS)\n") \
907 " -v defaults; same as -mcudkrag for IDE drives\n" \ 907 "\t-v defaults; same as -mcudkrag for IDE drives\n" \
908 " -V display program version and exit immediately\n" \ 908 "\t-V display program version and exit immediately\n" \
909 USAGE_DRIVE_RESET(" -w perform device reset (DANGEROUS)\n") \ 909 USAGE_DRIVE_RESET("\t-w perform device reset (DANGEROUS)\n") \
910 " -W set drive write-caching flag (0/1) (DANGEROUS)\n" \ 910 "\t-W set drive write-caching flag (0/1) (DANGEROUS)\n" \
911 USAGE_TRISTATE_HWIF(" -x tristate device for hotswap (0/1) (DANGEROUS)\n") \ 911 USAGE_TRISTATE_HWIF("\t-x tristate device for hotswap (0/1) (DANGEROUS)\n") \
912 " -X set IDE xfer mode (DANGEROUS)\n" \ 912 "\t-X set IDE xfer mode (DANGEROUS)\n" \
913 " -y put IDE drive in standby mode\n" \ 913 "\t-y put IDE drive in standby mode\n" \
914 " -Y put IDE drive to sleep\n" \ 914 "\t-Y put IDE drive to sleep\n" \
915 " -Z disable Seagate auto-powersaving mode\n" \ 915 "\t-Z disable Seagate auto-powersaving mode\n" \
916 " -z re-read partition table" 916 "\t-z re-read partition table"
917 917
918#ifdef CONFIG_FEATURE_FANCY_HEAD 918#ifdef CONFIG_FEATURE_FANCY_HEAD
919#define USAGE_FANCY_HEAD(a) a 919#define USAGE_FANCY_HEAD(a) a
@@ -1027,9 +1027,9 @@
1027 "\t-l\tthe hardware clock is kept in local time" 1027 "\t-l\tthe hardware clock is kept in local time"
1028 1028
1029#ifdef CONFIG_SELINUX 1029#ifdef CONFIG_SELINUX
1030#define USAGE_SELINUX(a, b) a 1030 #define USAGE_SELINUX(a) a
1031#else 1031#else
1032#define USAGE_SELINUX(a, b) b 1032 #define USAGE_SELINUX(a)
1033#endif 1033#endif
1034 1034
1035#define id_trivial_usage \ 1035#define id_trivial_usage \
@@ -1037,11 +1037,11 @@
1037#define id_full_usage \ 1037#define id_full_usage \
1038 "Print information for USERNAME or the current user\n\n" \ 1038 "Print information for USERNAME or the current user\n\n" \
1039 "Options:\n" \ 1039 "Options:\n" \
1040 USAGE_SELINUX("\t-c\tprints only the security context\n") \
1040 "\t-g\tprints only the group ID\n" \ 1041 "\t-g\tprints only the group ID\n" \
1041 "\t-u\tprints only the user ID\n" \ 1042 "\t-u\tprints only the user ID\n" \
1042 USAGE_SELINUX("\t-c\tprints only the security context\n", "") \ 1043 "\t-n\tprint a name instead of a number\n" \
1043 "\t-n\tprint a name instead of a number (with for -ug)\n" \ 1044 "\t-r\tprints the real user ID instead of the effective ID"
1044 "\t-r\tprints the real user ID instead of the effective ID (with -ug)"
1045#define id_example_usage \ 1045#define id_example_usage \
1046 "$ id\n" \ 1046 "$ id\n" \
1047 "uid=1000(andersen) gid=1000(andersen)\n" 1047 "uid=1000(andersen) gid=1000(andersen)\n"
@@ -1298,11 +1298,11 @@
1298#define ipaddr_full_usage \ 1298#define ipaddr_full_usage \
1299 "ipaddr {add|del} IFADDR dev STRING\n" \ 1299 "ipaddr {add|del} IFADDR dev STRING\n" \
1300 "ipaddr {show|flush} [ dev STRING ] [ scope SCOPE-ID ]\n" \ 1300 "ipaddr {show|flush} [ dev STRING ] [ scope SCOPE-ID ]\n" \
1301 " [ to PREFIX ] [ label PATTERN ]\n" \ 1301 "\t\t\t[ to PREFIX ] [ label PATTERN ]\n" \
1302 "IFADDR := PREFIX | ADDR peer PREFIX\n" \ 1302 "\t\t\tIFADDR := PREFIX | ADDR peer PREFIX\n" \
1303 " [ broadcast ADDR ] [ anycast ADDR ]\n" \ 1303 "\t\t\t[ broadcast ADDR ] [ anycast ADDR ]\n" \
1304 " [ label STRING ] [ scope SCOPE-ID ]\n" \ 1304 "\t\t\t[ label STRING ] [ scope SCOPE-ID ]\n" \
1305 "SCOPE-ID := [ host | link | global | NUMBER ]" 1305 "\t\t\tSCOPE-ID := [ host | link | global | NUMBER ]"
1306 1306
1307#ifndef CONFIG_FEATURE_IPCALC_FANCY 1307#ifndef CONFIG_FEATURE_IPCALC_FANCY
1308#define ipcalc_trivial_usage \ 1308#define ipcalc_trivial_usage \
@@ -1332,9 +1332,9 @@
1332 "{ set DEVICE { up | down | arp { on | off } | show [ DEVICE ] }" 1332 "{ set DEVICE { up | down | arp { on | off } | show [ DEVICE ] }"
1333#define iplink_full_usage \ 1333#define iplink_full_usage \
1334 "iplink set DEVICE { up | down | arp { on | off } |\n" \ 1334 "iplink set DEVICE { up | down | arp { on | off } |\n" \
1335 " dynamic { on | off } |\n" \ 1335 "\t\t\tdynamic { on | off } |\n" \
1336 " mtu MTU }\n" \ 1336 "\t\t\tmtu MTU }\n" \
1337 "iplink show [ DEVICE ]" 1337 "\tiplink show [ DEVICE ]"
1338 1338
1339#define iproute_trivial_usage \ 1339#define iproute_trivial_usage \
1340 "{ list | flush | { add | del | change | append |\n" \ 1340 "{ list | flush | { add | del | change | append |\n" \
@@ -1342,10 +1342,10 @@
1342#define iproute_full_usage \ 1342#define iproute_full_usage \
1343 "iproute { list | flush } SELECTOR\n" \ 1343 "iproute { list | flush } SELECTOR\n" \
1344 "iproute get ADDRESS [ from ADDRESS iif STRING ]\n" \ 1344 "iproute get ADDRESS [ from ADDRESS iif STRING ]\n" \
1345 " [ oif STRING ] [ tos TOS ]\n" \ 1345 "\t\t\t[ oif STRING ] [ tos TOS ]\n" \
1346 "iproute { add | del | change | append | replace | monitor } ROUTE\n" \ 1346 "\tiproute { add | del | change | append | replace | monitor } ROUTE\n" \
1347 "SELECTOR := [ root PREFIX ] [ match PREFIX ] [ proto RTPROTO ]\n" \ 1347 "\t\t\tSELECTOR := [ root PREFIX ] [ match PREFIX ] [ proto RTPROTO ]\n" \
1348 "ROUTE := [ TYPE ] PREFIX [ tos TOS ] [ proto RTPROTO ]" 1348 "\t\t\tROUTE := [ TYPE ] PREFIX [ tos TOS ] [ proto RTPROTO ]"
1349 1349
1350#define iptunnel_trivial_usage \ 1350#define iptunnel_trivial_usage \
1351 "{ add | change | del | show } [ NAME ]\n" \ 1351 "{ add | change | del | show } [ NAME ]\n" \
@@ -1353,9 +1353,9 @@
1353 "\t\t[ remote ADDR ] [ local ADDR ] [ ttl TTL ]" 1353 "\t\t[ remote ADDR ] [ local ADDR ] [ ttl TTL ]"
1354#define iptunnel_full_usage \ 1354#define iptunnel_full_usage \
1355 "iptunnel { add | change | del | show } [ NAME ]\n" \ 1355 "iptunnel { add | change | del | show } [ NAME ]\n" \
1356 " [ mode { ipip | gre | sit } ] [ remote ADDR ] [ local ADDR ]\n" \ 1356 "\t\t\t[ mode { ipip | gre | sit } ] [ remote ADDR ] [ local ADDR ]\n" \
1357 " [ [i|o]seq ] [ [i|o]key KEY ] [ [i|o]csum ]\n" \ 1357 "\t\t\t[ [i|o]seq ] [ [i|o]key KEY ] [ [i|o]csum ]\n" \
1358 " [ ttl TTL ] [ tos TOS ] [ [no]pmtudisc ] [ dev PHYS_DEV ]" 1358 "\t\t\t[ ttl TTL ] [ tos TOS ] [ [no]pmtudisc ] [ dev PHYS_DEV ]"
1359 1359
1360#define kill_trivial_usage \ 1360#define kill_trivial_usage \
1361 "[-signal] process-id [process-id ...]" 1361 "[-signal] process-id [process-id ...]"
@@ -1501,8 +1501,9 @@
1501#else 1501#else
1502 #define USAGE_AUTOWIDTH(a) 1502 #define USAGE_AUTOWIDTH(a)
1503#endif 1503#endif
1504
1504#define ls_trivial_usage \ 1505#define ls_trivial_usage \
1505 "[-1Aa" USAGE_LS_TIMESTAMPS("c") "Cd" USAGE_LS_TIMESTAMPS("e") USAGE_LS_FILETYPES("F") "iln" USAGE_LS_FILETYPES("p") USAGE_LS_FOLLOWLINKS("L") USAGE_LS_RECURSIVE("R") USAGE_LS_SORTFILES("rS") "s" USAGE_AUTOWIDTH("T") USAGE_LS_TIMESTAMPS("tu") USAGE_LS_SORTFILES("v") USAGE_AUTOWIDTH("w") "x" USAGE_LS_SORTFILES("X") USAGE_HUMAN_READABLE("h") USAGE_NOT_HUMAN_READABLE("") "k" USAGE_SELINUX("K", "") "] [filenames...]" 1506 "[-1Aa" USAGE_LS_TIMESTAMPS("c") "Cd" USAGE_LS_TIMESTAMPS("e") USAGE_LS_FILETYPES("F") "iln" USAGE_LS_FILETYPES("p") USAGE_LS_FOLLOWLINKS("L") USAGE_LS_RECURSIVE("R") USAGE_LS_SORTFILES("rS") "s" USAGE_AUTOWIDTH("T") USAGE_LS_TIMESTAMPS("tu") USAGE_LS_SORTFILES("v") USAGE_AUTOWIDTH("w") "x" USAGE_LS_SORTFILES("X") USAGE_HUMAN_READABLE("h") USAGE_NOT_HUMAN_READABLE("") "k" USAGE_SELINUX("K") "] [filenames...]"
1506#define ls_full_usage \ 1507#define ls_full_usage \
1507 "List directory contents\n\n" \ 1508 "List directory contents\n\n" \
1508 "Options:\n" \ 1509 "Options:\n" \
@@ -1531,8 +1532,9 @@
1531 "\t-x\tlist entries by lines instead of by columns\n" \ 1532 "\t-x\tlist entries by lines instead of by columns\n" \
1532 USAGE_LS_SORTFILES("\t-X\tsort the listing by extension\n") \ 1533 USAGE_LS_SORTFILES("\t-X\tsort the listing by extension\n") \
1533 USAGE_HUMAN_READABLE( \ 1534 USAGE_HUMAN_READABLE( \
1534 "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" \ 1535 "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n") \
1535 USAGE_SELINUX("\t-k\tprint security context\n\t-K\tprint security context in long format\n", "")) 1536 USAGE_SELINUX("\t-k\tprint security context\n") \
1537 USAGE_SELINUX("\t-K\tprint security context in long format\n")
1536 1538
1537#define lsmod_trivial_usage \ 1539#define lsmod_trivial_usage \
1538 "" 1540 ""
@@ -1944,12 +1946,18 @@
1944 "$ printf "Val=%d\\n" 5\n" \ 1946 "$ printf "Val=%d\\n" 5\n" \
1945 "Val=5\n" 1947 "Val=5\n"
1946 1948
1949#ifdef CONFIG_SELINUX
1950#define USAGE_NONSELINUX(a)
1951#else
1952#define USAGE_NONSELINUX(a) a
1953#endif
1954
1947#define ps_trivial_usage \ 1955#define ps_trivial_usage \
1948 "" 1956 ""
1949#define ps_full_usage \ 1957#define ps_full_usage \
1950 "Report process status\n" \ 1958 "Report process status\n" \
1951 USAGE_SELINUX("\nOptions:\n\t-c\tshow SE Linux context", \ 1959 USAGE_NONSELINUX("\n\tThis version of ps accepts no options.") \
1952 "\nThis version of ps accepts no options.") 1960 USAGE_SELINUX("\nOptions:\n\t-c\tshow SE Linux context")
1953 1961
1954#define ps_example_usage \ 1962#define ps_example_usage \
1955 "$ ps\n" \ 1963 "$ ps\n" \
@@ -2172,7 +2180,7 @@
2172 USAGE_NOT_FANCY_SLEEP("Pause for N seconds.") \ 2180 USAGE_NOT_FANCY_SLEEP("Pause for N seconds.") \
2173 USAGE_FANCY_SLEEP( \ 2181 USAGE_FANCY_SLEEP( \
2174 "Pause for a time equal to the total of the args given, where each arg can\n" \ 2182 "Pause for a time equal to the total of the args given, where each arg can\n" \
2175 "have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays.") 2183 "\t\thave an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays.")
2176#define sleep_example_usage \ 2184#define sleep_example_usage \
2177 "$ sleep 2\n" \ 2185 "$ sleep 2\n" \
2178 "[2 second delay results]\n" \ 2186 "[2 second delay results]\n" \
@@ -2559,8 +2567,8 @@
2559 "hello world\n" 2567 "hello world\n"
2560 2568
2561#define traceroute_trivial_usage \ 2569#define traceroute_trivial_usage \
2562 "[-dnrv] [-m max_ttl] [-p port#] [-q nqueries]\n\ 2570 "[-dnrv] [-m max_ttl] [-p port#] [-q nqueries]\n"\
2563 [-s src_addr] [-t tos] [-w wait] host [data size]" 2571 "\t[-s src_addr] [-t tos] [-w wait] host [data size]"
2564#define traceroute_full_usage \ 2572#define traceroute_full_usage \
2565 "trace the route ip packets follow going to \"host\"\n" \ 2573 "trace the route ip packets follow going to \"host\"\n" \
2566 "Options:\n" \ 2574 "Options:\n" \
@@ -2803,7 +2811,7 @@
2803 2811
2804#define wget_trivial_usage \ 2812#define wget_trivial_usage \
2805 "[-c|--continue] [-q|--quiet] [-O|--output-document file]\n" \ 2813 "[-c|--continue] [-q|--quiet] [-O|--output-document file]\n" \
2806 "\t[--header 'header: value'] [-Y|--proxy on/off] [-P DIR] url" 2814 "\t\t[--header 'header: value'] [-Y|--proxy on/off] [-P DIR] url"
2807#define wget_full_usage \ 2815#define wget_full_usage \
2808 "wget retrieves files via HTTP or FTP\n\n" \ 2816 "wget retrieves files via HTTP or FTP\n\n" \
2809 "Options:\n" \ 2817 "Options:\n" \