aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-08-18 19:15:29 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-08-18 19:15:29 +0200
commitab77e81a8527fa11a4f9392d97c2da037d6f4f98 (patch)
treed11608662dd14b776a4c4d30a6039d476231ca58 /procps
parent79747415d6db1f85389247522304c941b4287f9b (diff)
downloadbusybox-w32-ab77e81a8527fa11a4f9392d97c2da037d6f4f98.tar.gz
busybox-w32-ab77e81a8527fa11a4f9392d97c2da037d6f4f98.tar.bz2
busybox-w32-ab77e81a8527fa11a4f9392d97c2da037d6f4f98.zip
klibc-utils: new applets: resume, nuke, minips
minips is a pure alias to ps, just in case someone needs 100% klibc-utils compat. nuke is a primitive version of "rm -rf" without options and error checks. ~30 bytes. resume is a tool for initramfs which resumes from a given block device. function old new delta resume_main - 582 +582 packed_usage 31640 31712 +72 nuke_main - 28 +28 xstrtoull - 24 +24 applet_names 2646 2665 +19 applet_main 1532 1544 +12 applet_suid 96 97 +1 applet_install_loc 192 193 +1 applet_flags 96 97 +1 ------------------------------------------------------------------------------ (add/remove: 5/0 grow/shrink: 6/0 up/down: 740/0) Total: 740 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'procps')
-rw-r--r--procps/ps.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/procps/ps.c b/procps/ps.c
index 646b1144e..7edf6dbd1 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -50,9 +50,12 @@
50//config: Include support for measuring HZ on old kernels and non-ELF systems 50//config: Include support for measuring HZ on old kernels and non-ELF systems
51//config: (if you are on Linux 2.4.0+ and use ELF, you don't need this) 51//config: (if you are on Linux 2.4.0+ and use ELF, you don't need this)
52 52
53//applet:IF_PS(APPLET_NOEXEC(ps, ps, BB_DIR_BIN, BB_SUID_DROP, ps)) 53// APPLET_NOEXEC:name main location suid_type help
54//applet:IF_PS( APPLET_NOEXEC(ps, ps, BB_DIR_BIN, BB_SUID_DROP, ps))
55//applet:IF_MINIPS(APPLET_NOEXEC(minips, ps, BB_DIR_BIN, BB_SUID_DROP, ps))
54 56
55//kbuild:lib-$(CONFIG_PS) += ps.o 57//kbuild:lib-$(CONFIG_PS) += ps.o
58//kbuild:lib-$(CONFIG_MINIPS) += ps.o
56 59
57//usage:#if ENABLE_DESKTOP 60//usage:#if ENABLE_DESKTOP
58//usage: 61//usage: