summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRob Landley2005-10-28 13:05:12 +0000
committerRob Landley2005-10-28 13:05:12 +0000
commitaa87276bed8df4cdcd443f102b58d95c26be9c6d (patch)
tree4592b8c6be22d6bac7182f8b3304b3df56ca85f0 /include
parent30c7de068b50de999b0b73a22e859dd2e9c23204 (diff)
downloadbusybox-aa87276bed8df4cdcd443f102b58d95c26be9c6d.zip
busybox-aa87276bed8df4cdcd443f102b58d95c26be9c6d.tar.gz
New applet, fuser, from Tony J. White. (Needs some cleanup.)
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h10
2 files changed, 13 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 883e559..2b2c45d 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -258,6 +258,9 @@
#ifdef CONFIG_FTPPUT
APPLET(ftpput, ftpgetput_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_FUSER
+ APPLET(fuser, fuser_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_GETOPT
APPLET(getopt, getopt_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
diff --git a/include/usage.h b/include/usage.h
index 69c50b9..79a61d2 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -841,6 +841,16 @@
"\t-p, --password Password to be used\n" \
"\t-P, --port Port number to be used"
+#define fuser_trivial_usage \
+ "[options] file OR port/proto"
+#define fuser_full_usage \
+ "Options:\n" \
+ "\t-m Show all processes on the same mounted fs\n" \
+ "\t-k Kill all processes that match.\n" \
+ "\t-s Don't print or kill anything.\n" \
+ "\t-4 When using port/proto only search IPv4 space\n" \
+ "\t-6 When using port/proto only search IPv6 space\n" \
+ "\t-SIGNAL When used with -k, this signal will be used to kill\n"
#define getopt_trivial_usage \
"[OPTIONS]..."
#define getopt_full_usage \