From aa87276bed8df4cdcd443f102b58d95c26be9c6d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 28 Oct 2005 13:05:12 +0000 Subject: New applet, fuser, from Tony J. White. (Needs some cleanup.) --- include/applets.h | 3 +++ include/usage.h | 10 ++++++++++ 2 files changed, 13 insertions(+) (limited to 'include') 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 \ -- cgit v1.1