aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/applets.h6
-rw-r--r--include/usage.h42
2 files changed, 46 insertions, 2 deletions
diff --git a/include/applets.h b/include/applets.h
index e0b18085a..a7578ba1a 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -320,6 +320,12 @@
320#ifdef CONFIG_IPCALC 320#ifdef CONFIG_IPCALC
321 APPLET(ipcalc, ipcalc_main, _BB_DIR_BIN, _BB_SUID_NEVER) 321 APPLET(ipcalc, ipcalc_main, _BB_DIR_BIN, _BB_SUID_NEVER)
322#endif 322#endif
323#ifdef CONFIG_IPCRM
324 APPLET(ipcrm, ipcrm_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
325#endif
326#ifdef CONFIG_IPCS
327 APPLET(ipcs, ipcs_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
328#endif
323#ifdef CONFIG_IPLINK 329#ifdef CONFIG_IPLINK
324 APPLET(iplink, iplink_main, _BB_DIR_BIN, _BB_SUID_NEVER) 330 APPLET(iplink, iplink_main, _BB_DIR_BIN, _BB_SUID_NEVER)
325#endif 331#endif
diff --git a/include/usage.h b/include/usage.h
index 5fb9858bc..017cb9c3e 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1395,6 +1395,32 @@
1395 "\t-h\t--hostname\tDisplay first resolved host name\n" \ 1395 "\t-h\t--hostname\tDisplay first resolved host name\n" \
1396 "\t-s\t--silent\tDon't ever display error messages.") 1396 "\t-s\t--silent\tDon't ever display error messages.")
1397 1397
1398#define ipcrm_trivial_usage \
1399 "[-[MQS] key] [-[mqs] id]"
1400#define ipcrm_full_usage \
1401 "The upper-case options MQS are used to remove a shared memory\n" \
1402 "segment by an shmkey value. The lower-case options mqs are used\n" \
1403 "to remove a segment by shmid value.\n" \
1404 "\t-m | -M\tRemove the memory segment after the last detatch\n" \
1405 "\t-q | -Q\tRemove the message queue\n" \
1406 "\t-s | -S\tRemove the semaphore\n"
1407
1408#define ipcs_trivial_usage \
1409 "[[-smq] -i shmid] | [[-asmq] [-tclup]]"
1410#define ipcs_full_usage \
1411 "\t-i\tspecify a specific resource id\n" \
1412 "Resource specification:\n" \
1413 "\t-m\tshared memory segments\n" \
1414 "\t-q\tmessage queues\n" \
1415 "\t-s\tsempahore arrays\n" \
1416 "\t-a\tall (default)\n" \
1417 "Output format:\n" \
1418 "\t-t\ttime\n" \
1419 "\t-p\tpid\n" \
1420 "\t-s\tcreator\n" \
1421 "\t-a\tlimits\n" \
1422 "\t-i\tsummary\n"
1423
1398#define iplink_trivial_usage \ 1424#define iplink_trivial_usage \
1399 "{ set DEVICE { up | down | arp { on | off } | show [ DEVICE ] }" 1425 "{ set DEVICE { up | down | arp { on | off } | show [ DEVICE ] }"
1400#define iplink_full_usage \ 1426#define iplink_full_usage \
@@ -2080,18 +2106,30 @@
2080 "$ printf \"Val=%d\\n\" 5\n" \ 2106 "$ printf \"Val=%d\\n\" 5\n" \
2081 "Val=5\n" 2107 "Val=5\n"
2082 2108
2109#if !defined(CONFIG_SELINUX) && !defined(CONFIG_PS_FEATURE_WIDE)
2110#define USAGE_PS "\n\tThis version of ps accepts no options."
2111#else
2112#define USAGE_PS "\nOptions:"
2113#endif
2083#ifdef CONFIG_SELINUX 2114#ifdef CONFIG_SELINUX
2084#define USAGE_NONSELINUX(a) 2115#define USAGE_NONSELINUX(a)
2085#else 2116#else
2086#define USAGE_NONSELINUX(a) a 2117#define USAGE_NONSELINUX(a) a
2087#endif 2118#endif
2119#ifdef CONFIG_PS_FEATURE_WIDE
2120#define USAGE_PS_WIDE(a) a
2121#else
2122#define USAGE_PS_WIDE(a)
2123#endif
2088 2124
2089#define ps_trivial_usage \ 2125#define ps_trivial_usage \
2090 "" 2126 ""
2091#define ps_full_usage \ 2127#define ps_full_usage \
2092 "Report process status\n" \ 2128 "Report process status\n" \
2093 USAGE_NONSELINUX("\n\tThis version of ps accepts no options.") \ 2129 USAGE_PS \
2094 USAGE_SELINUX("\nOptions:\n\t-c\tshow SE Linux context") 2130 USAGE_SELINUX("\n\t-c\tshow SE Linux context") \
2131 USAGE_PS_WIDE("\n\tw\twide output")
2132
2095 2133
2096#define ps_example_usage \ 2134#define ps_example_usage \
2097 "$ ps\n" \ 2135 "$ ps\n" \