Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (7 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/procps/pgrep.c

    r2725 r3232  
    77 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    88 */
     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
    936#include "libbb.h"
    1037#include "xregex.h"
     
    102129
    103130    if (argv[0])
    104         xregcomp(&re_buffer, argv[0], 0);
     131        xregcomp(&re_buffer, argv[0], REG_EXTENDED | REG_NOSUB);
    105132
    106133    matched_pid = 0;
Note: See TracChangeset for help on using the changeset viewer.