aboutsummaryrefslogtreecommitdiff
path: root/procps/pgrep.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-03-22 14:11:12 +0000
committerRon Yorston <rmy@pobox.com>2012-03-22 14:11:12 +0000
commit67758035a4fe040c6ac69b39d61bcd6bddd7b827 (patch)
treea4a1db7f54c16d12fabe2626b8f1e235cd694e9e /procps/pgrep.c
parent811c449748d5bd0505f8510e5582892f94ac0cda (diff)
parentb83c9704128dd106071184e4b00335a3b8486857 (diff)
downloadbusybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.gz
busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.bz2
busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.zip
Merge commit 'b83c9704128dd106071184e4b00335a3b8486857' into merge
Diffstat (limited to 'procps/pgrep.c')
-rw-r--r--procps/pgrep.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/procps/pgrep.c b/procps/pgrep.c
index 5d388a87d..902a3a75e 100644
--- a/procps/pgrep.c
+++ b/procps/pgrep.c
@@ -6,6 +6,35 @@
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
10//usage:#define pgrep_trivial_usage
11//usage: "[-flnovx] [-s SID|-P PPID|PATTERN]"
12//usage:#define pgrep_full_usage "\n\n"
13//usage: "Display process(es) selected by regex PATTERN\n"
14//usage: "\nOptions:"
15//usage: "\n -l Show command name too"
16//usage: "\n -f Match against entire command line"
17//usage: "\n -n Show the newest process only"
18//usage: "\n -o Show the oldest process only"
19//usage: "\n -v Negate the match"
20//usage: "\n -x Match whole name (not substring)"
21//usage: "\n -s Match session ID (0 for current)"
22//usage: "\n -P Match parent process ID"
23//usage:
24//usage:#define pkill_trivial_usage
25//usage: "[-l|-SIGNAL] [-fnovx] [-s SID|-P PPID|PATTERN]"
26//usage:#define pkill_full_usage "\n\n"
27//usage: "Send a signal to process(es) selected by regex PATTERN\n"
28//usage: "\nOptions:"
29//usage: "\n -l List all signals"
30//usage: "\n -f Match against entire command line"
31//usage: "\n -n Signal the newest process only"
32//usage: "\n -o Signal the oldest process only"
33//usage: "\n -v Negate the match"
34//usage: "\n -x Match whole name (not substring)"
35//usage: "\n -s Match session ID (0 for current)"
36//usage: "\n -P Match parent process ID"
37
9#include "libbb.h" 38#include "libbb.h"
10#include "xregex.h" 39#include "xregex.h"
11 40