diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-23 06:23:44 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-23 06:23:44 +0100 |
commit | f8f81ed7aaf90897fa9a4687dac75152740a71e2 (patch) | |
tree | a5c624d8187016e4369be0be2667a2f5de752d03 /procps/pgrep.c | |
parent | f88e3bfa8ded4f1c7e7d2143a1cfcbbdfe5e8541 (diff) | |
download | busybox-w32-f8f81ed7aaf90897fa9a4687dac75152740a71e2.tar.gz busybox-w32-f8f81ed7aaf90897fa9a4687dac75152740a71e2.tar.bz2 busybox-w32-f8f81ed7aaf90897fa9a4687dac75152740a71e2.zip |
Convert all procps/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'procps/pgrep.c')
-rw-r--r-- | procps/pgrep.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/procps/pgrep.c b/procps/pgrep.c index 1c594cf96..974d007f3 100644 --- a/procps/pgrep.c +++ b/procps/pgrep.c | |||
@@ -6,6 +6,23 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | //config:config PGREP | ||
10 | //config: bool "pgrep" | ||
11 | //config: default y | ||
12 | //config: help | ||
13 | //config: Look for processes by name. | ||
14 | //config: | ||
15 | //config:config PKILL | ||
16 | //config: bool "pkill" | ||
17 | //config: default y | ||
18 | //config: help | ||
19 | //config: Send signals to processes by name. | ||
20 | |||
21 | //applet:IF_PGREP(APPLET(pgrep, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
22 | //applet:IF_PKILL(APPLET_ODDNAME(pkill, pgrep, BB_DIR_USR_BIN, BB_SUID_DROP, pkill)) | ||
23 | |||
24 | //kbuild:lib-$(CONFIG_PGREP) += pgrep.o | ||
25 | //kbuild:lib-$(CONFIG_PKILL) += pgrep.o | ||
9 | 26 | ||
10 | //usage:#define pgrep_trivial_usage | 27 | //usage:#define pgrep_trivial_usage |
11 | //usage: "[-flnovx] [-s SID|-P PPID|PATTERN]" | 28 | //usage: "[-flnovx] [-s SID|-P PPID|PATTERN]" |