aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/applets.h6
-rw-r--r--include/usage.h35
2 files changed, 41 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 462d91801..5ecdf7949 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -89,6 +89,9 @@
89#ifdef CONFIG_CAT 89#ifdef CONFIG_CAT
90 APPLET(cat, cat_main, _BB_DIR_BIN, _BB_SUID_NEVER) 90 APPLET(cat, cat_main, _BB_DIR_BIN, _BB_SUID_NEVER)
91#endif 91#endif
92#ifdef CONFIG_CHATTR
93 APPLET(chattr, chattr_main, _BB_DIR_BIN, _BB_SUID_NEVER)
94#endif
92#ifdef CONFIG_CHGRP 95#ifdef CONFIG_CHGRP
93 APPLET(chgrp, chgrp_main, _BB_DIR_BIN, _BB_SUID_NEVER) 96 APPLET(chgrp, chgrp_main, _BB_DIR_BIN, _BB_SUID_NEVER)
94#endif 97#endif
@@ -359,6 +362,9 @@
359#ifdef CONFIG_LS 362#ifdef CONFIG_LS
360 APPLET(ls, ls_main, _BB_DIR_BIN, _BB_SUID_NEVER) 363 APPLET(ls, ls_main, _BB_DIR_BIN, _BB_SUID_NEVER)
361#endif 364#endif
365#ifdef CONFIG_LSATTR
366 APPLET(lsattr, lsattr_main, _BB_DIR_BIN, _BB_SUID_NEVER)
367#endif
362#ifdef CONFIG_LSMOD 368#ifdef CONFIG_LSMOD
363 APPLET(lsmod, lsmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER) 369 APPLET(lsmod, lsmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
364#endif 370#endif
diff --git a/include/usage.h b/include/usage.h
index 33ead14f5..cc2aa3274 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -120,6 +120,30 @@
120 "$ cat /proc/uptime\n" \ 120 "$ cat /proc/uptime\n" \
121 "110716.72 17.67" 121 "110716.72 17.67"
122 122
123#define chattr_trivial_usage \
124 "[-R] [-+=AacDdijsStTu] [-v version] files..."
125#define chattr_full_usage \
126 "change file attributes on an ext2 fs\n\n" \
127 "Modifiers:\n" \
128 "\t-\tremove attributes\n" \
129 "\t+\tadd attributes\n" \
130 "\t=\tset attributes\n" \
131 "Attributes:\n" \
132 "\tA\tdon't track atime\n" \
133 "\ta\tappend mode only\n" \
134 "\tc\tenable compress\n" \
135 "\tD\twrite dir contents synchronously\n" \
136 "\td\tdo not backup with dump\n" \
137 "\ti\tcannot be modified (immutable)\n" \
138 "\tj\twrite all data to journal first\n" \
139 "\ts\tzero disk storage when deleted\n" \
140 "\tS\twrite file contents synchronously\n" \
141 "\tt\tdisable tail-merging of partial blocks with other files\n" \
142 "\tu\tallow file to be undeleted\n" \
143 "Options:\n" \
144 "\t-R\trecursively list subdirectories\n" \
145 "\t-v\tset the file's version/generation number\n"
146
123#define chgrp_trivial_usage \ 147#define chgrp_trivial_usage \
124 "[OPTION]... GROUP FILE..." 148 "[OPTION]... GROUP FILE..."
125#define chgrp_full_usage \ 149#define chgrp_full_usage \
@@ -1553,6 +1577,17 @@
1553 USAGE_SELINUX("\t-k\tprint security context\n") \ 1577 USAGE_SELINUX("\t-k\tprint security context\n") \
1554 USAGE_SELINUX("\t-K\tprint security context in long format\n") 1578 USAGE_SELINUX("\t-K\tprint security context in long format\n")
1555 1579
1580#define lsattr_trivial_usage \
1581 "[-Radlv] [files...]"
1582#define lsattr_full_usage \
1583 "list file attributes on an ext2 fs\n\n" \
1584 "Options:\n" \
1585 "\t-R\trecursively list subdirectories\n" \
1586 "\t-a\tdo not hide entries starting with .\n" \
1587 "\t-d\tlist directory entries instead of contents\n" \
1588 "\t-l\tprint long flag names\n" \
1589 "\t-v\tlist the file's version/generation number\n"
1590
1556#define lsmod_trivial_usage \ 1591#define lsmod_trivial_usage \
1557 "" 1592 ""
1558#define lsmod_full_usage \ 1593#define lsmod_full_usage \