[PATCH] - Take 2: Adds support for custom error pages in httpd

Pierre Métras genepi at sympatico.ca
Thu Jul 12 00:39:38 UTC 2007


Hi,

As recommended by Walter Harms, this version of the patch uses xasprintf() 
instead of malloc()/strcpy()/strcat(). The final size of the binary is even 
smaller: 324 bytes instead of 388 bytes with the previous patch.

make bloatcheck
function                                             old     new   delta
parse_conf                                          1201    1372    +171
sendHeaders                                          461     571    +110
sendFile                                             252     317     +65
httpResponseNames                                    108     144     +36
handleIncoming                                      2032    2038      +6
.rodata                                           138727  138663     -64
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/1 up/down: 388/-64)           Total: 324 bytes
   text    data     bss     dec     hex filename
 636180    3124   12800  652104   9f348 busybox_old
 636525    3288   12800  652613   9f545 busybox_unstripped

-- Pierre Métras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: httpd_with_error_pages.patch
Type: text/x-diff
Size: 10754 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070711/ceae4975/attachment-0002.bin 


More information about the busybox mailing list