lp:busybox

Created by Jelmer Vernooij and last modified
Get this branch:
bzr branch lp:busybox

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
VCS imports
Project:
BusyBox
Status:
Development

Import details

Import Status: Reviewed

This branch is an import of the HEAD branch of the Git repository at git://busybox.net/busybox.git.

The next import is scheduled to run .

Last successful import was .

Import started on juju-98ee42-prod-launchpad-codeimport-1 and finished taking 20 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-5 and finished taking 15 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-3 and finished taking 15 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-4 and finished taking 20 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-4 and finished taking 25 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-3 and finished taking 15 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-2 and finished taking 25 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-1 and finished taking 15 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-5 and finished taking 20 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-5 and finished taking 15 seconds — see the log

Recent revisions

17767. By Ron Yorston <email address hidden>

ash: move hashvar() calls into findvar()

dash has accepted a patch to remove the first argument of findvar().
It's commit e85e972 (var: move hashvar() calls into findvar()).

Apply the same change to BusyBox ash.

function old new delta
findvar 35 40 +5
mklocal 268 261 -7
exportcmd 164 157 -7
setvareq 319 310 -9
lookupvar 150 141 -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/4 up/down: 5/-32) Total: -27 bytes

Signed-off-by: Ron Yorston <email address hidden>
Signed-off-by: Denys Vlasenko <email address hidden>

17766. By Ron Yorston <email address hidden>

timeout: allow fractional seconds in timeout values

The 'timeout' applet uses parse_duration_str() to obtain its
timeout values. The default configuration enables float durations.

However, the applet silently ignores fractional seconds. This
results in unexpected behaviour:

   $ timeout 5.99 sleep 5.1; echo $?
   Terminated
   143

When float durations are enabled ensure that any fractional seconds
are taken into account.

function old new delta
timeout_wait 44 92 +48
timeout_main 383 365 -18
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 48/-18) Total: 30 bytes

Signed-off-by: Ron Yorston <email address hidden>
Signed-off-by: Denys Vlasenko <email address hidden>

17765. By Vda-linux

powertop: code shrink

function old new delta
print_intel_cstates 477 475 -2

Signed-off-by: Denys Vlasenko <email address hidden>

17764. By Vda-linux

hush: do not exit interactive shell on some redirection errors

$ echo >&99
hush: dup2(99,1): Bad file descriptor
$ echo >&9999
hush: fcntl(1,F_DUPFD,10000): Invalid argument
$ echo 2>/dev/tty 10>&9999
hush: fcntl(10,F_DUPFD,10000): Invalid argument
$ still alive!_

function old new delta
static.setup_redirects 334 394 +60
.rodata 105661 105712 +51
dup_CLOEXEC 49 79 +30
save_fd_on_redirect 263 277 +14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 155/0) Total: 155 bytes

Signed-off-by: Denys Vlasenko <email address hidden>

17763. By Vda-linux

hush: fix "exec 3>FILE" aborting if 3 is exactly the next free fd

Signed-off-by: Denys Vlasenko <email address hidden>

17762. By Vda-linux

hush: avoid duplicate fcntl(F_SETFD, FD_CLOEXEC) during init

function old new delta
hush_main 1149 1150 +1

Signed-off-by: Denys Vlasenko <email address hidden>

17761. By Vda-linux

ash: remove limitation on fd# length

"echo text >&0000000000002" works as you would expect,
"echo text >&9999999999" properly fails instead of creating a file
named "9999999999".

function old new delta
expredir 219 232 +13
readtoken1 3045 3053 +8
parsefname 204 201 -3
isdigit_str9 45 - -45
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 2/1 up/down: 21/-48) Total: -27 bytes

Signed-off-by: Denys Vlasenko <email address hidden>

17760. By Vda-linux

ash: do not abort interactive mode on >&9999 redirect

With very large fd#, the error code path is different
from one for closed but small fd#.

Make it not abort if we are interactive:

$ echo text >&99 # this wasn't buggy
ash: dup2(9,1): Bad file descriptor
$ echo text >&9999 # this was
ash: fcntl(1,F_DUPFD,10000): Invalid argument

function old new delta
.rodata 105637 105661 +24
dup2_or_raise 35 38 +3
redirect 1084 1044 -40
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 27/-40) Total: -13 bytes

Signed-off-by: Denys Vlasenko <email address hidden>

17759. By Vda-linux

tls: fix CONFIG_FEATURE_TLS_SHA1=y + CONFIG_SHA1_HWACCEL=y

The check for result hash size was buggy for CONFIG_SHA1_HWACCEL=y.

While at it, document CPUID use a bit better.

function old new delta
get_shaNI - 28 +28
sha1_end 66 79 +13
sha256_begin 83 60 -23
sha1_begin 111 88 -23
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/2 up/down: 41/-46) Total: -5 bytes

Signed-off-by: Denys Vlasenko <email address hidden>

17758. By Vda-linux

tls: P256: improve x86_64 multiplication asm code

gcc is being rather silly. Usues suboptimal registers,
and does not realize that i and j are never negative,
thus usese even _more_ registers for temporaries
to sign-extend i/j to 64-bit offsets.

function old new delta
sp_256_mont_mul_8 155 132 -23

Signed-off-by: Denys Vlasenko <email address hidden>

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers

No subscribers.