improved last

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Tue May 20 23:04:31 UTC 2008


Please consider for inclusion this optional (and yes, bigger) variation of
'last', which a collegue of mine wrote (see copyright mote), as we badly
need something like this at work.

The output is identical with sysvinit 'last' at an extra cost of 1238
bytes.

function                                             old     new   delta
last_main                                            448    1084    +636
show_entry                                             -     355    +355
.rodata                                           120946  121080    +134
add_entry                                              -      45     +45
packed_usage                                       17924   17956     +32
static.ret                                             -       8      +8
static.pos                                             -       8      +8
start_time                                             -       4      +4
show_wide                                              -       4      +4
list                                                 348     352      +4
filename                                               -       4      +4
boot_down                                              -       4      +4
------------------------------------------------------------------------------
(add/remove: 8/0 grow/shrink: 4/0 up/down: 1238/0)           Total: 1238 bytes


Cheers,

-- 
Cristian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: last.patch
Type: text/x-diff
Size: 1867 bytes
Desc: 
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080521/a8841c3d/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: last_fancy.c
Type: text/x-csrc
Size: 7763 bytes
Desc: 
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080521/a8841c3d/attachment-0002.c 


More information about the busybox mailing list