aboutsummaryrefslogtreecommitdiff
path: root/procps/pidof.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2016-11-29 11:26:45 +0000
committerRon Yorston <rmy@pobox.com>2016-11-29 11:26:45 +0000
commitbb8d79eadbba1942dbdb9f9cee5c47833afe269f (patch)
treeb8c517e9ca895d60d7227aef7177b6291df5e2cd /procps/pidof.c
parent9fa1e4990e655a85025c9d270a1606983e375e47 (diff)
parent7d877fc9312a742b06125927bb1d34bd35398c6c (diff)
downloadbusybox-w32-bb8d79eadbba1942dbdb9f9cee5c47833afe269f.tar.gz
busybox-w32-bb8d79eadbba1942dbdb9f9cee5c47833afe269f.tar.bz2
busybox-w32-bb8d79eadbba1942dbdb9f9cee5c47833afe269f.zip
Merge branch 'busybox' into merge
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 @@
6 * 6 *
7 * Licensed under GPLv2, see file LICENSE in this source tree. 7 * Licensed under GPLv2, see file LICENSE in this source tree.
8 */ 8 */
9//config:config PIDOF
10//config: bool "pidof"
11//config: default y
12//config: help
13//config: Pidof finds the process id's (pids) of the named programs. It prints
14//config: those id's on the standard output.
15//config:
16//config:config FEATURE_PIDOF_SINGLE
17//config: bool "Enable argument for single shot (-s)"
18//config: default y
19//config: depends on PIDOF
20//config: help
21//config: Support argument '-s' for returning only the first pid found.
22//config:
23//config:config FEATURE_PIDOF_OMIT
24//config: bool "Enable argument for omitting pids (-o)"
25//config: default y
26//config: depends on PIDOF
27//config: help
28//config: Support argument '-o' for omitting the given pids in output.
29//config: The special pid %PPID can be used to name the parent process
30//config: of the pidof, in other words the calling shell or shell script.
31
32//applet:IF_PIDOF(APPLET(pidof, BB_DIR_BIN, BB_SUID_DROP))
33
34//kbuild:lib-$(CONFIG_PIDOF) += pidof.o
9 35
10//usage:#if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT) 36//usage:#if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT)
11//usage:#define pidof_trivial_usage 37//usage:#define pidof_trivial_usage