summaryrefslogtreecommitdiff
path: root/include/usage.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-04-22 02:33:37 +0000
committerMike Frysinger <vapier@gentoo.org>2005-04-22 02:33:37 +0000
commitde9f1f757af7e15881156b610431cd00c262f768 (patch)
treea7fd230099dc3388b179ca51e806495f052c01c5 /include/usage.h
parent2c12d435e5ccd402f6210827df0b2038093fbcee (diff)
downloadbusybox-w32-de9f1f757af7e15881156b610431cd00c262f768.tar.gz
busybox-w32-de9f1f757af7e15881156b610431cd00c262f768.tar.bz2
busybox-w32-de9f1f757af7e15881156b610431cd00c262f768.zip
import lsattr and chattr from e2fsprogs
Diffstat (limited to 'include/usage.h')
-rw-r--r--include/usage.h35
1 files changed, 35 insertions, 0 deletions
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 \