console-tools size optimization
Tito
farmatito at tiscali.it
Wed Sep 7 14:42:15 UTC 2005
Hi,
this is a series of patches to reduce the size of some console-tools applets:
1) chvt: remove duplicate code:
text data bss dec hex filename
130 0 0 130 82 console-tools/chvt.o.orig
101 0 0 101 65 console-tools/chvt.o
2) deallocvt: fix a typo and save 1 byte (can't say why):
text data bss dec hex filename
132 0 0 132 84 console-tools/deallocvt.o.orig
131 0 0 131 83 console-tools/deallocvt.o
3)openvt: use dup2():
text data bss dec hex filename
194 0 0 194 c2 console-tools/openvt.o.orig
184 0 0 184 b8 console-tools/openvt.o
4) setconsole: remove var, use libbb.h defines, use bb_xopen():
text data bss dec hex filename
222 0 0 222 de console-tools/setconsole.o.orig
192 0 0 192 c0 console-tools/setconsole.o
This are trivial changes and should work, so please apply.
Ciao,
Tito
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chvt.patch
Type: text/x-diff
Size: 539 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20050907/f0bc2a98/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deallocvt.patch
Type: text/x-diff
Size: 568 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20050907/f0bc2a98/attachment-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setconsole.patch
Type: text/x-diff
Size: 865 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20050907/f0bc2a98/attachment-0002.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openvt.patch
Type: text/x-diff
Size: 368 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20050907/f0bc2a98/attachment-0003.bin
More information about the busybox
mailing list