xmalloc_open_read_close: use fstat to get file size (instead of lseek).
authorDenis Vlasenko <vda.linux@googlemail.com>
Sun, 20 Apr 2008 14:45:43 +0000 (14:45 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sun, 20 Apr 2008 14:45:43 +0000 (14:45 -0000)
commit0a1446275d88946734417ed96a3c0f1d7ea969e4
tree577ea76080a5251ad54418c2831213e64e02563d
parentfe493479e2814f25edc270a5605678adbc90086a
xmalloc_open_read_close: use fstat to get file size (instead of lseek).
by Joakim Tjernlund <Joakim.Tjernlund AT transmode.se>

function                                             old     new   delta
xmalloc_open_read_close                              190     181      -9
libbb/read.c