Commit Graph

169 Commits

Author SHA1 Message Date
ejaaskel
73f28134fc start-stop-daemon: add -d DIR chdir option
Add option to change the running directory before starting the process.
This can be done using -d or --chdir options. Add also test cases to
start-stop-daemon to test out the directory change option.

function                                             old     new   delta
packed_usage                                       34602   34648     +46
start_stop_daemon_main                              1107    1130     +23
start_stop_daemon_longopts                           156     164      +8
.rodata                                           105382  105384      +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 79/0)               Total: 79 bytes

Signed-off-by: ejaaskel <esa.jaaskela@suomi24.fi>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2023-11-07 07:12:40 +01:00
Ron Yorston
008fc9499a libbb: remove vdprintf
Two reasons:

* it's only built for GNU C Library versions < 2 (released 1997)

* it isn't used anywhere in BusyBox

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2017-07-29 17:30:21 +02:00
Denys Vlasenko
34adecc2b0 TODO file: remove mpstat, iostat, powertop - we have them now
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2015-11-04 19:39:54 +01:00
Bartosz Golaszewski
64938011f3 tail compat: fix header printing for tail -f
Makes tail -f for multiple files display the header only if another (ie. not
currently displayed) file changed.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-10-16 15:02:50 +02:00
Bartosz Golaszewski
79c618c411 Refactor catv. Move visible() from stty to libbb.
Fixes the following TODO:

  stty's visible() function and catv's guts are identical. Merge them into
  an appropriate libbb function.

Also makes catv behave exactly like coreutils' cat -v e.g. it'll print 'M-^I'
instead of 'M-   '.

function                                             old     new   delta
visible                                                -      70     +70
do_display                                           431     379     -52
catv_main                                            306     250     -56
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 70/-108)           Total: -38 bytes

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-07-30 06:29:42 +02:00
Bartosz Golaszewski
c19be75d57 networking: code shrink
function                                             old     new   delta
in_ether                                               -     124    +124
hexchar2int                                           42       -     -42
ifconfig_main                                       1237    1106    -131
ether_input                                          141       -    -141
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 0/1 up/down: 124/-314)         Total: -190 bytes

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-07-25 04:39:04 +02:00
Denys Vlasenko
c72b43c2f0 Commonalize typical [b,]k,m suffix struct
function                                             old     new   delta
bkm_suffixes                                           -      32     +32
static.km_suffixes                                    24       -     -24
suffixes                                              32       -     -32
static.bkm                                            32       -     -32
head_tail_suffixes                                    32       -     -32
------------------------------------------------------------------------------
(add/remove: 2/6 grow/shrink: 0/0 up/down: 72/-160)           Total: -88 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-07-13 23:49:45 +02:00
Denys Vlasenko
ce8c4cf37f TODO: all another location with bbox patches (OpenWRT)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-10-19 01:55:08 +02:00
Denys Vlasenko
96f064d416 shell: remove lash and bbsh
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-09-06 10:18:21 +02:00
Denys Vlasenko
91d7ee31f7 tweak TODO file
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-06-19 22:15:20 +02:00
Denys Vlasenko
19158a837d unicode: s/FEATURE_ASSUME_UNICODE/UNICODE_SUPPORT, add UNICODE_USING_LOCALE
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-26 14:06:56 +01:00
Bernhard Reutner-Fischer
eb03d08f34 remove ar write support from TODO
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-03-25 14:19:24 +01:00
Dan Fandrich
fe4e23f9de Add more compat code for non GNU environments
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-11-01 04:01:30 +01:00
Bernhard Reutner-Fischer
ae0045e31a we could need ssd -d (fancy)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-09-17 18:57:59 +02:00
Denys Vlasenko
0052882200 top: add -m ("memory") option
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-09-11 23:26:42 +02:00
Denys Vlasenko
62298ab13d TODO: add unicode list
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-09-07 13:19:17 +02:00
Denys Vlasenko
1cc4b13917 msh: aliased to hush
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-08-21 00:05:51 +02:00
Bernhard Reutner-Fischer
86e992da84 test commit
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-07-03 01:19:49 +02:00
Bernhard Reutner-Fischer
ec97062b20 test commit
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-07-03 01:15:54 +02:00
Bernhard Reutner-Fischer
ca4f8d54e5 test commit
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-07-03 01:06:15 +02:00
Denys Vlasenko
318a8e5ed5 TODO: add some
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-05-13 02:18:43 +02:00
Bernhard Reutner-Fischer
8082ea1000 test commit
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-05-08 18:22:52 +02:00
Bernhard Reutner-Fischer
b5d5245f46 Revert "test commit"
This reverts commit 8606aba04b.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-05-08 18:19:58 +02:00
Bernhard Reutner-Fischer
8606aba04b test commit 2009-05-08 18:18:42 +02:00
Bernhard Reutner-Fischer
8517d6fc1f - test commit 2009-03-05 17:27:39 +00:00
Bernhard Reutner-Fischer
e455f6ec27 - update TODOs 2009-02-18 14:05:54 +00:00
Denis Vlasenko
4e12b1a2a9 libbb: introduce and use xmalloc_ttyname (-32 in bss).
ash: small code shrink

   text    data     bss     dec     hex filename
 793669     504    7524  801697   c3ba1 busybox_old
 793659     504    7492  801655   c3b77 busybox_unstripped
2008-12-23 23:36:47 +00:00
Bernhard Reutner-Fischer
b3523b9cd3 - we already have an impl for man 2008-12-22 17:09:12 +00:00
Bernhard Reutner-Fischer
6c4dadefb6 - update my name. No obj-code changes ;) 2008-09-25 12:13:34 +00:00
Bernhard Reutner-Fischer
b6926109b7 - remove depmod from TODO, it was recently added.
Small touch up while at it
2008-06-17 07:52:43 +00:00
Bernhard Reutner-Fischer
1b23773e26 - mention duplication of in_ether() 2008-05-16 14:35:34 +00:00
Denis Vlasenko
d02db89244 clean up TODO file. No real code changes. 2008-03-17 09:05:21 +00:00
Bernhard Reutner-Fischer
c2f0de5eef - mention strtod code-duplication as TODO for cleanup 2008-01-14 14:32:56 +00:00
Denis Vlasenko
96702ca945 kill lash. "lash" builtin still exists, but it runs hush. 2007-11-23 23:28:55 +00:00
Denis Vlasenko
088b959d00 "Unify base64 handling" is done, remove TODO 2007-04-18 21:14:46 +00:00
Bernhard Reutner-Fischer
10aed96f14 - remove debugging output. sorry.. 2007-04-04 17:58:39 +00:00
Bernhard Reutner-Fischer
24efe4f15f - note cosmetic glitch in tail 2007-04-04 17:57:55 +00:00
Bernhard Reutner-Fischer
f25d57e0b4 - update 2007-03-09 16:56:57 +00:00
Mike Frysinger
0aa6ba5d44 make sure ps/top output what they claim: vsz, not rss ... down the line we should make the output controllable either at runtime or buildtime as both statistics are quite useful 2007-02-08 08:21:58 +00:00
Bernhard Reutner-Fischer
7b1c5aacb0 - TODO: merge 'struct suffix_mult $several_suffixes[] into a struct suffix_mult
for several in head tail od_bloaty hexdump svlogd
2007-01-24 21:13:16 +00:00
Bernhard Reutner-Fischer
ae114c235e - stty's visible() function and catv's guts are identical. Merge them into
an appropriate libbb function.
2007-01-17 19:51:00 +00:00
Bernhard Reutner-Fischer
be2f9f7fe0 - update TODOs 2006-11-22 16:48:29 +00:00
Denis Vlasenko
1385899416 attempt to regularize atoi mess. 2006-10-08 12:49:22 +00:00
Denis Vlasenko
7e3eb5171b no-op (just for svn commit run. 2.6.18 oopses on that, need to reproduce) 2006-09-30 08:32:41 +00:00
Bernhard Reutner-Fischer
05592ac00c - update and expand TODO a little bit 2006-09-21 22:58:38 +00:00
Denis Vlasenko
9213a9e0f2 whitespace cleanup 2006-09-17 16:28:10 +00:00
Bernhard Reutner-Fischer
8c1eda528a - it's a mistake to remove lib-specific prefixes from libraries; still the removal should be complete. 2006-08-28 23:39:36 +00:00
Mike Frysinger
0b7dfb5ae7 eat gremlins 2006-07-27 03:42:30 +00:00
Bernhard Reutner-Fischer
e02706fe45 - note that get_hz potentially needs cleanup. 2006-07-02 10:33:10 +00:00
Ned Ludd
5df6d9f777 - Give Rob Landley things TODO like depmod 2006-06-30 21:48:38 +00:00