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 @@
#ifdef CONFIG_CAT
APPLET(cat, cat_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_CHATTR
+ APPLET(chattr, chattr_main, _BB_DIR_BIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_CHGRP
APPLET(chgrp, chgrp_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
@@ -359,6 +362,9 @@
#ifdef CONFIG_LS
APPLET(ls, ls_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_LSATTR
+ APPLET(lsattr, lsattr_main, _BB_DIR_BIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_LSMOD
APPLET(lsmod, lsmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
#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 @@
"$ cat /proc/uptime\n" \
"110716.72 17.67"
+#define chattr_trivial_usage \
+ "[-R] [-+=AacDdijsStTu] [-v version] files..."
+#define chattr_full_usage \
+ "change file attributes on an ext2 fs\n\n" \
+ "Modifiers:\n" \
+ "\t-\tremove attributes\n" \
+ "\t+\tadd attributes\n" \
+ "\t=\tset attributes\n" \
+ "Attributes:\n" \
+ "\tA\tdon't track atime\n" \
+ "\ta\tappend mode only\n" \
+ "\tc\tenable compress\n" \
+ "\tD\twrite dir contents synchronously\n" \
+ "\td\tdo not backup with dump\n" \
+ "\ti\tcannot be modified (immutable)\n" \
+ "\tj\twrite all data to journal first\n" \
+ "\ts\tzero disk storage when deleted\n" \
+ "\tS\twrite file contents synchronously\n" \
+ "\tt\tdisable tail-merging of partial blocks with other files\n" \
+ "\tu\tallow file to be undeleted\n" \
+ "Options:\n" \
+ "\t-R\trecursively list subdirectories\n" \
+ "\t-v\tset the file's version/generation number\n"
+
#define chgrp_trivial_usage \
"[OPTION]... GROUP FILE..."
#define chgrp_full_usage \
@@ -1553,6 +1577,17 @@
USAGE_SELINUX("\t-k\tprint security context\n") \
USAGE_SELINUX("\t-K\tprint security context in long format\n")
+#define lsattr_trivial_usage \
+ "[-Radlv] [files...]"
+#define lsattr_full_usage \
+ "list file attributes on an ext2 fs\n\n" \
+ "Options:\n" \
+ "\t-R\trecursively list subdirectories\n" \
+ "\t-a\tdo not hide entries starting with .\n" \
+ "\t-d\tlist directory entries instead of contents\n" \
+ "\t-l\tprint long flag names\n" \
+ "\t-v\tlist the file's version/generation number\n"
+
#define lsmod_trivial_usage \
""
#define lsmod_full_usage \