aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Whitley <markw@lineo.com>2001-03-13 00:40:19 +0000
committerMark Whitley <markw@lineo.com>2001-03-13 00:40:19 +0000
commite0bf91d7c612619526772605890538f0c3e44c05 (patch)
tree468e0e8126f57b7be69f471ed3ac046a9f8fedb4 /include
parent53737c5421b2356ead7659249000daac7c1aea21 (diff)
downloadbusybox-e0bf91d7c612619526772605890538f0c3e44c05.tar.gz
Applied patch from Christophe Boyanique to add -i support to rm.
Diffstat (limited to 'include')
-rw-r--r--include/busybox.h4
-rw-r--r--include/usage.h6
2 files changed, 10 insertions, 0 deletions
diff --git a/include/busybox.h b/include/busybox.h
index abf62410f..7ae648501 100644
--- a/include/busybox.h
+++ b/include/busybox.h
@@ -255,4 +255,8 @@ enum {
#define RESERVE_BB_UBUFFER(buffer,len) unsigned char *buffer=xmalloc(len)
#endif
+#if defined(BB_FEATURE_RM_INTERACTIVE) && defined(BB_RM)
+int ask_confirmation(void);
+#endif
+
#endif /* _BB_INTERNAL_H_ */
diff --git a/include/usage.h b/include/usage.h
index f241d3a04..f316018c8 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -821,12 +821,18 @@
#define reset_full_usage \
"Resets the screen."
+#ifdef BB_FEATURE_RM_INTERACTIVE
+ #define USAGE_RM_INTERACTIVE(a) a
+#else
+ #define USAGE_RM_INTERACTIVE(a)
+#endif
#define rm_trivial_usage \
"[OPTION]... FILE..."
#define rm_full_usage \
"Remove (unlink) the FILE(s). You may use '--' to\n" \
"indicate that all following arguments are non-options.\n\n" \
"Options:\n" \
+ USAGE_RM_INTERACTIVE("\t-i\t\talways prompt before removing each destinations\n") \
"\t-f\t\tremove existing destinations, never prompt\n" \
"\t-r or -R\tremove the contents of directories recursively"