summaryrefslogtreecommitdiff
path: root/coreutils/df.c
diff options
context:
space:
mode:
authorPere Orga2011-03-31 14:43:25 +0200
committerDenys Vlasenko2011-03-31 14:43:25 +0200
commit34425389e09353a8dacdd6b23a62553f699c544c (patch)
tree4eb2e19685536384748e75af827deca885c9cc0a /coreutils/df.c
parente3d8d077b7d2e51fed03dc20267eadbe38903b2a (diff)
downloadbusybox-34425389e09353a8dacdd6b23a62553f699c544c.zip
busybox-34425389e09353a8dacdd6b23a62553f699c544c.tar.gz
move help text from include/usage.src.h to coreutils/*.c
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/df.c')
-rw-r--r--coreutils/df.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/coreutils/df.c b/coreutils/df.c
index 70fd1f4..518e856 100644
--- a/coreutils/df.c
+++ b/coreutils/df.c
@@ -22,6 +22,41 @@
* Implement -P and -B; better coreutils compat; cleanup
*/
+//usage:#define df_trivial_usage
+//usage: "[-Pk"
+//usage: IF_FEATURE_HUMAN_READABLE("mh")
+//usage: IF_FEATURE_DF_FANCY("ai] [-B SIZE")
+//usage: "] [FILESYSTEM]..."
+//usage:#define df_full_usage "\n\n"
+//usage: "Print filesystem usage statistics\n"
+//usage: "\nOptions:"
+//usage: "\n -P POSIX output format"
+//usage: "\n -k 1024-byte blocks (default)"
+//usage: IF_FEATURE_HUMAN_READABLE(
+//usage: "\n -m 1M-byte blocks"
+//usage: "\n -h Human readable (e.g. 1K 243M 2G)"
+//usage: )
+//usage: IF_FEATURE_DF_FANCY(
+//usage: "\n -a Show all filesystems"
+//usage: "\n -i Inodes"
+//usage: "\n -B SIZE Blocksize"
+//usage: )
+//usage:
+//usage:#define df_example_usage
+//usage: "$ df\n"
+//usage: "Filesystem 1K-blocks Used Available Use% Mounted on\n"
+//usage: "/dev/sda3 8690864 8553540 137324 98% /\n"
+//usage: "/dev/sda1 64216 36364 27852 57% /boot\n"
+//usage: "$ df /dev/sda3\n"
+//usage: "Filesystem 1K-blocks Used Available Use% Mounted on\n"
+//usage: "/dev/sda3 8690864 8553540 137324 98% /\n"
+//usage: "$ POSIXLY_CORRECT=sure df /dev/sda3\n"
+//usage: "Filesystem 512B-blocks Used Available Use% Mounted on\n"
+//usage: "/dev/sda3 17381728 17107080 274648 98% /\n"
+//usage: "$ POSIXLY_CORRECT=yep df -P /dev/sda3\n"
+//usage: "Filesystem 512-blocks Used Available Capacity Mounted on\n"
+//usage: "/dev/sda3 17381728 17107080 274648 98% /\n"
+
#include <mntent.h>
#include <sys/vfs.h>
#include "libbb.h"