[PATCH] new applet gethostbyname

Eial Czerwacki eial at scalemp.com
Sun Jul 8 05:22:53 UTC 2012


On 07/05/2012 06:41 PM, Paul Smith wrote:

> On Thu, 2012-07-05 at 17:13 +0300, Eial Czerwacki wrote:
>> On 07/05/2012 02:03 PM, Laurent Bercot wrote:
>>>> but these bins are large, my applet adds at most 3kb to the total size.
>>>
>>>  My statically linked "dnsip" applet is 27 kB. This does not qualify as
>>> "large" by any means on a full-fledged Unix platform (even an embedded one),
>>> especially compared to the BIND "host" binary.
>>
>> for me it does, way to big when one can get the same behavior in a
>> fraction of the size.
> 
> That's fine but you have to understand that just because adding a new
> custom applet like this to busybox would be the best for your specific
> environment that doesn't mean it's the best for everyone else, or for
> the busybox project as a whole.
> 
> If it ends up that you need this particular "gethostbyname" applet as
> written previously then probably you should keep it locally and continue
> to patch it into your personal version of busybox.
> 
> If you can use a getent applet instead, and one is created and added to
> busybox, that would be better for everyone of course.
> 
> Cheers!
> 
> 


I've encountered a problem under busybox in which I wasn't able to get a
the ip of a machine in an exact manner on different systems, I've wrote
a applet that solves it and I've pitched it up to the community, as
busybox should be size optimized.

offering me to use a applet that isn't even in busybox, weights 27kb
where again size does matters when my small applet does the same in a
fraction of the size is not logical.

it is like you'll want to add -vvv to lspci and I'd advise you to use a
statically linked full lspci.

as I've said is previous mail, I'll think on how I can create a getent
applet and pitch it up instead.

Eial.


More information about the busybox mailing list