aboutsummaryrefslogtreecommitdiff
path: root/procps/pidof.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 06:23:44 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 06:23:44 +0100
commitf8f81ed7aaf90897fa9a4687dac75152740a71e2 (patch)
treea5c624d8187016e4369be0be2667a2f5de752d03 /procps/pidof.c
parentf88e3bfa8ded4f1c7e7d2143a1cfcbbdfe5e8541 (diff)
downloadbusybox-f8f81ed7aaf90897fa9a4687dac75152740a71e2.tar.gz
Convert all procps/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'procps/pidof.c')
-rw-r--r--procps/pidof.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/procps/pidof.c b/procps/pidof.c
index 6d265667f..069adb7a4 100644
--- a/procps/pidof.c
+++ b/procps/pidof.c
@@ -6,6 +6,32 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
+//config:config PIDOF
+//config: bool "pidof"
+//config: default y
+//config: help
+//config: Pidof finds the process id's (pids) of the named programs. It prints
+//config: those id's on the standard output.
+//config:
+//config:config FEATURE_PIDOF_SINGLE
+//config: bool "Enable argument for single shot (-s)"
+//config: default y
+//config: depends on PIDOF
+//config: help
+//config: Support argument '-s' for returning only the first pid found.
+//config:
+//config:config FEATURE_PIDOF_OMIT
+//config: bool "Enable argument for omitting pids (-o)"
+//config: default y
+//config: depends on PIDOF
+//config: help
+//config: Support argument '-o' for omitting the given pids in output.
+//config: The special pid %PPID can be used to name the parent process
+//config: of the pidof, in other words the calling shell or shell script.
+
+//applet:IF_PIDOF(APPLET(pidof, BB_DIR_BIN, BB_SUID_DROP))
+
+//kbuild:lib-$(CONFIG_PIDOF) += pidof.o
//usage:#if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT)
//usage:#define pidof_trivial_usage