summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Frysinger2005-04-22 02:33:37 +0000
committerMike Frysinger2005-04-22 02:33:37 +0000
commitde9f1f757af7e15881156b610431cd00c262f768 (patch)
treea7fd230099dc3388b179ca51e806495f052c01c5 /include
parent2c12d435e5ccd402f6210827df0b2038093fbcee (diff)
downloadbusybox-de9f1f757af7e15881156b610431cd00c262f768.zip
busybox-de9f1f757af7e15881156b610431cd00c262f768.tar.gz
import lsattr and chattr from e2fsprogs
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 462d918..5ecdf79 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 33ead14..cc2aa32 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 \