aboutsummaryrefslogtreecommitdiff
path: root/coreutils/df.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 14:46:56 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 14:46:56 +0100
commitaf3f42011628585cd5c8f5c1fd4b43f2e370a23d (patch)
tree125ee16d5080008fcf459ad55d91af1dcd488ef9 /coreutils/df.c
parent5b966c6180c139fba6846d632fd9bc0c34a8e1bc (diff)
downloadbusybox-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.tar.gz
Convert all coreutils/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/df.c')
-rw-r--r--coreutils/df.c28
1 files changed, 24 insertions, 4 deletions
diff --git a/coreutils/df.c b/coreutils/df.c
index 06b292018..fdcdae675 100644
--- a/coreutils/df.c
+++ b/coreutils/df.c
@@ -7,10 +7,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
-/* BB_AUDIT SUSv3 _NOT_ compliant -- option -t missing. */
-/* http://www.opengroup.org/onlinepubs/007904975/utilities/df.html */
-
/* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org)
*
* Size reduction. Removed floating point dependency. Added error checking
@@ -21,6 +17,30 @@
*
* Implement -P and -B; better coreutils compat; cleanup
*/
+//config:config DF
+//config: bool "df"
+//config: default y
+//config: help
+//config: df reports the amount of disk space used and available
+//config: on filesystems.
+//config:
+//config:config FEATURE_DF_FANCY
+//config: bool "Enable -a, -i, -B"
+//config: default y
+//config: depends on DF
+//config: help
+//config: This option enables -a, -i and -B.
+//config:
+//config: -a Show all filesystems
+//config: -i Inodes
+//config: -B <SIZE> Blocksize
+
+//applet:IF_DF(APPLET(df, BB_DIR_BIN, BB_SUID_DROP))
+
+//kbuild:lib-$(CONFIG_DF) += df.o
+
+/* BB_AUDIT SUSv3 _NOT_ compliant -- option -t missing. */
+/* http://www.opengroup.org/onlinepubs/007904975/utilities/df.html */
//usage:#define df_trivial_usage
//usage: "[-Pk"