~vcs-imports/busybox/trunk

« back to all changes in this revision

Viewing changes to klibc-utils/minips.c

  • Committer: Denys Vlasenko
  • Date: 2017-08-18 17:15:29 UTC
  • Revision ID: git-v1:ab77e81a8527fa11a4f9392d97c2da037d6f4f98
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>

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2017 Denys Vlasenko <vda.linux@googlemail.com>
 
3
 *
 
4
 * Licensed under GPLv2, see file LICENSE in this source tree.
 
5
 */
 
6
//config:config MINIPS
 
7
//config:       bool "minips (11 kb)"
 
8
//config:       default n  # for god's sake, just use "ps" name in your scripts
 
9
//config:       help
 
10
//config:       Alias to "ps".
 
11
 
 
12
/* applet abd kbuild hooks are in ps.c */