<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/include, branch ansi</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=ansi</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=ansi'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2016-04-26T12:48:18+00:00</updated>
<entry>
<title>winansi: add a routine to clear the screen buffer</title>
<updated>2016-04-26T12:48:18+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2016-04-26T12:13:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=aa3595b3d38ecc6b86b351ac215829f0de58d911'/>
<id>urn:sha1:aa3595b3d38ecc6b86b351ac215829f0de58d911</id>
<content type='text'>
And use it to restore the old behaviour of vi and less:  they reset
the cursor to the top of the buffer and clear it.
</content>
</entry>
<entry>
<title>libbb/lineedit: scroll to cursor position on any keypress</title>
<updated>2016-04-26T10:12:42+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2016-04-26T10:12:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=fd476d8629d489245e18ec278d3c846ab1359eec'/>
<id>urn:sha1:fd476d8629d489245e18ec278d3c846ab1359eec</id>
<content type='text'>
Also improve erase_till_end_of_screen.  Based on suggestions from
GitHub user avih.
</content>
</entry>
<entry>
<title>mingw: post-merge build fixes</title>
<updated>2016-04-04T15:38:02+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2016-04-04T15:38:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=95e4c715fd120d2ab2dee093d5b730c80e75ff99'/>
<id>urn:sha1:95e4c715fd120d2ab2dee093d5b730c80e75ff99</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2016-04-04T15:22:54+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2016-04-04T15:22:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=253dbd612b2d2f041f4263e15a3b94df70f41e36'/>
<id>urn:sha1:253dbd612b2d2f041f4263e15a3b94df70f41e36</id>
<content type='text'>
</content>
</entry>
<entry>
<title>whitespace and namespace cleanups</title>
<updated>2016-04-03T20:24:51+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-04-03T20:24:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=6aab9928dec29855bcee21bce163e5fdf7144350'/>
<id>urn:sha1:6aab9928dec29855bcee21bce163e5fdf7144350</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ubirmvol: Implement -N switch for ubirmvol</title>
<updated>2016-04-03T20:01:43+00:00</updated>
<author>
<name>Sven Eisenberg</name>
<email>sven.eisenberg@novero.com</email>
</author>
<published>2016-04-03T19:53:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b068cf2a7e036da8d0b3533b41886c5605c8139d'/>
<id>urn:sha1:b068cf2a7e036da8d0b3533b41886c5605c8139d</id>
<content type='text'>
function                                             old     new   delta
get_volid_by_name                                      -     125    +125
ubi_devnum_from_devname                                -      43     +43
ubi_tools_main                                      1215    1220      +5
packed_usage                                       30674   30655     -19
ubirename_main                                       394     221    -173
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 1/2 up/down: 173/-192)          Total: -19 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>nsenter,unshare: share common code; fix a bug of not closing all fds</title>
<updated>2016-04-02T16:06:24+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-04-02T16:06:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=8220399173cf8d25e37059cadac96ac30f94e82a'/>
<id>urn:sha1:8220399173cf8d25e37059cadac96ac30f94e82a</id>
<content type='text'>
function                                             old     new   delta
xvfork_parent_waits_and_exits                          -      64     +64
exec_prog_or_SHELL                                     -      39     +39
unshare_main                                         873     810     -63
nsenter_main                                         663     596     -67
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/2 up/down: 106/-130)          Total: -27 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>libbb: two new functions: wait_for_exitstatus(pid), xfchdir(fd)</title>
<updated>2016-04-01T20:12:44+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-04-01T20:12:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=c4199f22d0f7793b70db51c01783f0d45afce3d4'/>
<id>urn:sha1:c4199f22d0f7793b70db51c01783f0d45afce3d4</id>
<content type='text'>
Bartosz Golaszewski proposed xfchdir()

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>udhcp: get rid of bb_info_msg()</title>
<updated>2016-03-30T16:41:23+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2016-03-30T16:41:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=8f2e99c813dcac25faf58162ed18848a02888ff6'/>
<id>urn:sha1:8f2e99c813dcac25faf58162ed18848a02888ff6</id>
<content type='text'>
function                                             old     new   delta
udhcpd_main                                         1501    1531     +30
d6_recv_raw_packet                                   251     264     +13
perform_d6_release                                   188     198     +10
udhcpc6_main                                        2443    2449      +6
udhcp_recv_raw_packet                                582     588      +6
udhcp_recv_kernel_packet                             132     138      +6
send_d6_renew                                        140     146      +6
d6_recv_kernel_packet                                118     124      +6
send_renew                                            77      82      +5
send_discover                                         85      90      +5
send_decline                                          84      89      +5
send_d6_select                                        97     102      +5
send_d6_discover                                     174     179      +5
perform_release                                      167     172      +5
count_lines                                           72      74      +2
udhcpc_main                                         2836    2837      +1
bb_info_msg                                          125       -    -125
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 17/4 up/down: 117/-180)         Total: -63 bytes
   text	   data	    bss	    dec	    hex	filename
 924935	    906	  17160	 943001	  e6399	busybox_old
 924736	    906	  17160	 942802	  e62d2	busybox_unstripped

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>applet_tables: save space by removing applet name offsets</title>
<updated>2016-03-29T22:44:11+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2016-03-29T22:42:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=610c4c385b38280c7bde7a48d95ec019cbfe1ab4'/>
<id>urn:sha1:610c4c385b38280c7bde7a48d95ec019cbfe1ab4</id>
<content type='text'>
The array applet_nameofs consumes two bytes per applet.  It encodes

   nofork/noexec flags
   suid flags
   the offset of the applet name in the applet_name string

Change the applet_table build tool to store the flags in two separate
arrays (applet_flags and applet_suid).  Replace applet_nameofs[] with a
smaller version that only stores a limited number of offsets.

This requires changes to the macros APPLET_IS_NOFORK, APPLET_IS_NOEXEC
and APPLET_SUID.

   According to Valgrind the original find_applet_by_name required
   353 cycles per call, averaged over all names.  Adjusting the number
   of known offsets allows space to be traded off against execution time:

      KNOWN_OFFSETS     cycles     bytes (wrt KNOWN_OFFSETS = 0)

           0             9057        -
           2             4604       32
           4             2407       75
           8             1342       98
          16              908      130
          32              884      194

   This patch uses KNOWN_OFFSETS = 8.

v2:
   Remove some dead code from the applet_table tool;
   Treat the applet in the middle of the table as a special case.

v3:
   Use the middle applet to adjust the start of the linear search as
   well as the last applet found.

v4:
   Use an augmented linear search in find_applet_by_name.
   Drop the special treatment of the middle name from get_applet_name:
   most of the advantage now derives from the last stored value.

v5:
   Don't store index in applet_nameofs, it can be calculated.

v6:
   Tweaks by Denys

function                                             old     new   delta
find_applet_by_name                                   25     125    +100
applet_suid                                            -      92     +92
run_applet_no_and_exit                               452     460      +8
run_applet_and_exit                                  695     697      +2
applet_name_compare                                   31       -     -31
applet_nameofs                                       734      14    -720
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 3/1 up/down: 202/-751)         Total: -549 bytes
   text       data        bss        dec        hex    filename
 925464        906      17160     943530      e65aa    busybox_old
 924915        906      17160     942981      e6385    busybox_unstripped

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
