libbb: introduce and use nonblock_safe_read(). Yay!
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 20 Feb 2008 22:23:24 +0000 (22:23 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Wed, 20 Feb 2008 22:23:24 +0000 (22:23 -0000)
commite376d454bb70ed41bbc3eb0358d37fa30c94358d
treeeb53c600dcde841a7617a19f819ae3e9cfe7fd84
parentae86a338b89c1339588226cb2298e1785aaa7b90
libbb: introduce and use nonblock_safe_read(). Yay!
Our shells are immune from this nasty O_NONBLOCK now!

function                                             old     new   delta
nonblock_safe_read                                     -      78     +78
file_get                                             276     295     +19
generateMTFValues                                    428     435      +7
read_line_input                                     1776    1772      -4
preadbuffer                                          543     450     -93
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/2 up/down: 104/-97)             Total: 7 bytes
   text    data     bss     dec     hex filename
 615190     715   23924  639829   9c355 busybox_old
 615168     715   23924  639807   9c33f busybox_unstripped
include/libbb.h
libbb/lineedit.c
libbb/read.c
shell/ash.c
shell/hush.c
shell/msh.c