[PATCH] mktemp size optimization proposal
farmatito at tiscali.it
Sun Dec 4 14:17:14 UTC 2005
This is a size optimization for mktemp I've written just for fun.
I have a little doubts about this lines
void (*Action)(char *template) =(void*) mkstemp;
if(flags & 1)
Action = (void *)mkdtemp;
as they look a little hazardous to me and are done just
The patch is tested and seems to work.
Size optimization is :
text data bss dec hex filename
107 0 0 107 6b mktemp.o
99 0 0 99 63 mktemp.o
The patch also has better error messages when template is bad.
Comments are welcome as there is something to learn for me.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 825 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20051204/8e15410b/attachment.bin
More information about the busybox