diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-07-03 10:07:04 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-07-03 10:07:04 +0000 |
commit | 9e48045e45df7e3e205575a4eb3dc39d634b05aa (patch) | |
tree | e8f993dffc34380fbcc54cc858c81da594bdb95b /include/usage.h | |
parent | c48d49ad988a4163cff7f38ee4bd1f9886d0ed11 (diff) | |
download | busybox-w32-9e48045e45df7e3e205575a4eb3dc39d634b05aa.tar.gz busybox-w32-9e48045e45df7e3e205575a4eb3dc39d634b05aa.tar.bz2 busybox-w32-9e48045e45df7e3e205575a4eb3dc39d634b05aa.zip |
Patch from Russell Coker:
I've attached my latest SE Linux patch for busybox against the latest CVS
version of busybox.
Diffstat (limited to 'include/usage.h')
-rw-r--r-- | include/usage.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/include/usage.h b/include/usage.h index 701b40daa..e0cfa7d2f 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -882,6 +882,12 @@ | |||
882 | "\t-u\tthe hardware clock is kept in coordinated universal time\n" \ | 882 | "\t-u\tthe hardware clock is kept in coordinated universal time\n" \ |
883 | "\t-l\tthe hardware clock is kept in local time" | 883 | "\t-l\tthe hardware clock is kept in local time" |
884 | 884 | ||
885 | #ifdef CONFIG_SELINUX | ||
886 | #define USAGE_SELINUX(a, b) a | ||
887 | #else | ||
888 | #define USAGE_SELINUX(a, b) b | ||
889 | #endif | ||
890 | |||
885 | #define id_trivial_usage \ | 891 | #define id_trivial_usage \ |
886 | "[OPTIONS]... [USERNAME]" | 892 | "[OPTIONS]... [USERNAME]" |
887 | #define id_full_usage \ | 893 | #define id_full_usage \ |
@@ -889,6 +895,7 @@ | |||
889 | "Options:\n" \ | 895 | "Options:\n" \ |
890 | "\t-g\tprints only the group ID\n" \ | 896 | "\t-g\tprints only the group ID\n" \ |
891 | "\t-u\tprints only the user ID\n" \ | 897 | "\t-u\tprints only the user ID\n" \ |
898 | USAGE_SELINUX("\t-c\tprints only the security context\n", "") \ | ||
892 | "\t-n\tprint a name instead of a number (with for -ug)\n" \ | 899 | "\t-n\tprint a name instead of a number (with for -ug)\n" \ |
893 | "\t-r\tprints the real user ID instead of the effective ID (with -ug)" | 900 | "\t-r\tprints the real user ID instead of the effective ID (with -ug)" |
894 | #define id_example_usage \ | 901 | #define id_example_usage \ |
@@ -1347,7 +1354,7 @@ | |||
1347 | #define USAGE_AUTOWIDTH(a) | 1354 | #define USAGE_AUTOWIDTH(a) |
1348 | #endif | 1355 | #endif |
1349 | #define ls_trivial_usage \ | 1356 | #define ls_trivial_usage \ |
1350 | "[-1Aa" USAGE_LS_TIMESTAMPS("c") "Cd" USAGE_LS_TIMESTAMPS("e") USAGE_LS_FILETYPES("F") "iln" USAGE_LS_FILETYPES("p") USAGE_LS_FOLLOWLINKS("L") USAGE_LS_RECURSIVE("R") USAGE_LS_SORTFILES("rS") "s" USAGE_AUTOWIDTH("T") USAGE_LS_TIMESTAMPS("tu") USAGE_LS_SORTFILES("v") USAGE_AUTOWIDTH("w") "x" USAGE_LS_SORTFILES("X") USAGE_HUMAN_READABLE("h") USAGE_NOT_HUMAN_READABLE("") "k] [filenames...]" | 1357 | "[-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...]" |
1351 | #define ls_full_usage \ | 1358 | #define ls_full_usage \ |
1352 | "List directory contents\n\n" \ | 1359 | "List directory contents\n\n" \ |
1353 | "Options:\n" \ | 1360 | "Options:\n" \ |
@@ -1377,8 +1384,7 @@ | |||
1377 | USAGE_LS_SORTFILES("\t-X\tsort the listing by extension\n") \ | 1384 | USAGE_LS_SORTFILES("\t-X\tsort the listing by extension\n") \ |
1378 | USAGE_HUMAN_READABLE( \ | 1385 | USAGE_HUMAN_READABLE( \ |
1379 | "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" \ | 1386 | "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" \ |
1380 | "\t-k\tprint sizes in kilobytes(default)") USAGE_NOT_HUMAN_READABLE( \ | 1387 | USAGE_SELINUX("\t-k\tprint security context\n\t-K\tprint security context in long format\n", "") |
1381 | "\t-k\tprint sizes in kilobytes(compatibility)") | ||
1382 | 1388 | ||
1383 | #define lsmod_trivial_usage \ | 1389 | #define lsmod_trivial_usage \ |
1384 | "" | 1390 | "" |
@@ -1786,7 +1792,8 @@ | |||
1786 | "" | 1792 | "" |
1787 | #define ps_full_usage \ | 1793 | #define ps_full_usage \ |
1788 | "Report process status\n" \ | 1794 | "Report process status\n" \ |
1789 | "\nThis version of ps accepts no options." | 1795 | USAGE_SELINUX("\nOptions:\n\t-c\tshow SE Linux context", "\nThis version of ps accepts no options.") |
1796 | |||
1790 | #define ps_example_usage \ | 1797 | #define ps_example_usage \ |
1791 | "$ ps\n" \ | 1798 | "$ ps\n" \ |
1792 | " PID Uid Gid State Command\n" \ | 1799 | " PID Uid Gid State Command\n" \ |