aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/applets.h2
-rw-r--r--include/libbb.h4
-rw-r--r--include/usage.h24
3 files changed, 29 insertions, 1 deletions
diff --git a/include/applets.h b/include/applets.h
index f162c5479..e88192d24 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -251,11 +251,13 @@ USE_OD(APPLET(od, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
251USE_OPENVT(APPLET(openvt, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 251USE_OPENVT(APPLET(openvt, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
252USE_PASSWD(APPLET(passwd, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)) 252USE_PASSWD(APPLET(passwd, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS))
253USE_PATCH(APPLET(patch, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 253USE_PATCH(APPLET(patch, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
254USE_PGREP(APPLET(pgrep, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
254USE_PIDOF(APPLET(pidof, _BB_DIR_BIN, _BB_SUID_NEVER)) 255USE_PIDOF(APPLET(pidof, _BB_DIR_BIN, _BB_SUID_NEVER))
255USE_PING(APPLET(ping, _BB_DIR_BIN, _BB_SUID_MAYBE)) 256USE_PING(APPLET(ping, _BB_DIR_BIN, _BB_SUID_MAYBE))
256USE_PING6(APPLET(ping6, _BB_DIR_BIN, _BB_SUID_NEVER)) 257USE_PING6(APPLET(ping6, _BB_DIR_BIN, _BB_SUID_NEVER))
257USE_PIPE_PROGRESS(APPLET_NOUSAGE(pipe_progress, pipe_progress, _BB_DIR_BIN, _BB_SUID_NEVER)) 258USE_PIPE_PROGRESS(APPLET_NOUSAGE(pipe_progress, pipe_progress, _BB_DIR_BIN, _BB_SUID_NEVER))
258USE_PIVOT_ROOT(APPLET(pivot_root, _BB_DIR_SBIN, _BB_SUID_NEVER)) 259USE_PIVOT_ROOT(APPLET(pivot_root, _BB_DIR_SBIN, _BB_SUID_NEVER))
260USE_PKILL(APPLET_ODDNAME(pkill, pgrep, _BB_DIR_USR_BIN, _BB_SUID_NEVER, pkill))
259USE_HALT(APPLET_ODDNAME(poweroff, halt, _BB_DIR_SBIN, _BB_SUID_NEVER, poweroff)) 261USE_HALT(APPLET_ODDNAME(poweroff, halt, _BB_DIR_SBIN, _BB_SUID_NEVER, poweroff))
260USE_PRINTENV(APPLET(printenv, _BB_DIR_BIN, _BB_SUID_NEVER)) 262USE_PRINTENV(APPLET(printenv, _BB_DIR_BIN, _BB_SUID_NEVER))
261USE_PRINTF(APPLET(printf, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 263USE_PRINTF(APPLET(printf, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
diff --git a/include/libbb.h b/include/libbb.h
index a6709c95d..34b978452 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -787,6 +787,7 @@ int bb_make_directory(char *path, long mode, int flags);
787 787
788int get_signum(const char *name); 788int get_signum(const char *name);
789const char *get_signame(int number); 789const char *get_signame(int number);
790void print_signames_and_exit(void) ATTRIBUTE_NORETURN;
790 791
791char *bb_simplify_path(const char *path); 792char *bb_simplify_path(const char *path);
792 793
@@ -973,7 +974,8 @@ enum {
973 PSSCAN_UTIME = 1 << 13, 974 PSSCAN_UTIME = 1 << 13,
974 PSSCAN_TTY = 1 << 14, 975 PSSCAN_TTY = 1 << 14,
975 PSSCAN_SMAPS = (1 << 15) * ENABLE_FEATURE_TOPMEM, 976 PSSCAN_SMAPS = (1 << 15) * ENABLE_FEATURE_TOPMEM,
976 USE_SELINUX(PSSCAN_CONTEXT = 1 << 16,) 977 PSSCAN_ARGVN = (1 << 16) * (ENABLE_PGREP | ENABLE_PKILL),
978 USE_SELINUX(PSSCAN_CONTEXT = 1 << 17,)
977 /* These are all retrieved from proc/NN/stat in one go: */ 979 /* These are all retrieved from proc/NN/stat in one go: */
978 PSSCAN_STAT = PSSCAN_PPID | PSSCAN_PGID | PSSCAN_SID 980 PSSCAN_STAT = PSSCAN_PPID | PSSCAN_PGID | PSSCAN_SID
979 | PSSCAN_COMM | PSSCAN_STATE 981 | PSSCAN_COMM | PSSCAN_STATE
diff --git a/include/usage.h b/include/usage.h
index 4152fecd3..d7e1dd9f1 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2558,6 +2558,18 @@
2558 "$ patch -p1 < example.diff\n" \ 2558 "$ patch -p1 < example.diff\n" \
2559 "$ patch -p0 -i example.diff" 2559 "$ patch -p0 -i example.diff"
2560 2560
2561#define pgrep_trivial_usage \
2562 "[-flnovx] pattern"
2563#define pgrep_full_usage \
2564 "Display process(es) selected by regex pattern" \
2565 "\n\nOptions:\n" \
2566 " -l Show command name too\n" \
2567 " -f Match against entire command line\n" \
2568 " -n Signal the newest process only\n" \
2569 " -o Signal the oldest process only\n" \
2570 " -v Negate the matching\n" \
2571 " -x Match whole name (not substring)"
2572
2561#if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT) 2573#if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT)
2562#define USAGE_PIDOF "Options:" 2574#define USAGE_PIDOF "Options:"
2563#else 2575#else
@@ -2640,6 +2652,18 @@
2640 "Move the current root file system to PUT_OLD and make NEW_ROOT\n" \ 2652 "Move the current root file system to PUT_OLD and make NEW_ROOT\n" \
2641 "the new root file system" 2653 "the new root file system"
2642 2654
2655#define pkill_trivial_usage \
2656 "[-l] | [-fnovx] [-signal] pattern"
2657#define pkill_full_usage \
2658 "Send a signal to process(es) selected by regex pattern" \
2659 "\n\nOptions:\n" \
2660 " -l List all signals\n" \
2661 " -f Match against entire command line\n" \
2662 " -n Signal the newest process only\n" \
2663 " -o Signal the oldest process only\n" \
2664 " -v Negate the matching\n" \
2665 " -x Match whole name (not substring)"
2666
2643#define poweroff_trivial_usage \ 2667#define poweroff_trivial_usage \
2644 "[-d delay] [-n] [-f]" 2668 "[-d delay] [-n] [-f]"
2645#define poweroff_full_usage \ 2669#define poweroff_full_usage \