Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/procps/pgrep.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/procps/pgrep.c
r2725 r3232 7 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: "\n -l Show command name too" 15 //usage: "\n -f Match against entire command line" 16 //usage: "\n -n Show the newest process only" 17 //usage: "\n -o Show the oldest process only" 18 //usage: "\n -v Negate the match" 19 //usage: "\n -x Match whole name (not substring)" 20 //usage: "\n -s Match session ID (0 for current)" 21 //usage: "\n -P Match parent process ID" 22 //usage: 23 //usage:#define pkill_trivial_usage 24 //usage: "[-l|-SIGNAL] [-fnovx] [-s SID|-P PPID|PATTERN]" 25 //usage:#define pkill_full_usage "\n\n" 26 //usage: "Send a signal to process(es) selected by regex PATTERN\n" 27 //usage: "\n -l List all signals" 28 //usage: "\n -f Match against entire command line" 29 //usage: "\n -n Signal the newest process only" 30 //usage: "\n -o Signal the oldest process only" 31 //usage: "\n -v Negate the match" 32 //usage: "\n -x Match whole name (not substring)" 33 //usage: "\n -s Match session ID (0 for current)" 34 //usage: "\n -P Match parent process ID" 35 9 36 #include "libbb.h" 10 37 #include "xregex.h" … … 102 129 103 130 if (argv[0]) 104 xregcomp(&re_buffer, argv[0], 0);131 xregcomp(&re_buffer, argv[0], REG_EXTENDED | REG_NOSUB); 105 132 106 133 matched_pid = 0;
Note:
See TracChangeset
for help on using the changeset viewer.