[PATCH] sulogin size reduction and new logging

Tito farmatito at tiscali.it
Thu Sep 7 22:40:18 UTC 2006


Hi,
this patch reduces the size of sulogin
and moves it to the new syslog mode.
Bloatcheck is:
function                                             old     new   delta
bb_getopt_ulflags                                      -     884    +884
bb_verror_msg                                        120     218     +98
safe_strtol                                            -      78     +78
bb_vinfo_msg                                           -      65     +65
xopen3                                                 -      39     +39
safe_strtoi                                            -      34     +34
llist_add_to                                           -      28     +28
bb_error_msg                                           -      24     +24
xopen                                                  -      22     +22
bb_info_msg                                            -      22     +22
static.optind@@GLIBC_2                                 -       4      +4
static.optarg@@GLIBC_2                                 -       4      +4
bb_opt_complementally                                  -       4      +4
bb_applet_long_options                                 -       4      +4
.rodata                                             1128    1068     -60
sulogin_main                                         713     444    -269
bb_common_bufsiz1                                   8193       -   -8193
------------------------------------------------------------------------------
(add/remove: 13/1 grow/shrink: 1/2 up/down: 1310/-8522)     Total: -7212 bytes

The patch is tested, compiles and works for me.
Review is as always welcome.

Please apply if you think it is ok.

Ciao,
Tito
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sulogin.patch
Type: text/x-diff
Size: 4549 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060908/039c2250/attachment-0002.bin 


More information about the busybox mailing list