[PATCH] Created platform.c with replacements for common functions (was Re: Supplying unavailable functions)

Denys Vlasenko vda.linux at googlemail.com
Sun Nov 1 03:03:21 UTC 2009


On Saturday 31 October 2009 19:19, Dan Fandrich wrote:
> On Thu, Oct 29, 2009 at 03:56:35AM +0100, Denys Vlasenko wrote:
> > Please send it as attachement, it is damaged (space -> =20 etc).
> 
> One man's damaged is another man's escaped :^)  Here is is again.

memrchr wouldn't work correctly with argument c which does not fit
into a char.

strsignal is way too simple and uses a static buffer,
I think using bbox's get_signame is a better replacement.

In prev patch, vasprintf thinks xmalloc can return NULL.

Apart from these small corrections, it's ok, I am applying
it to git.

With it, where are we? Does busybox compile with Watcom?
With allyesconfig? defconfig? randomconfig?
--
vda


More information about the busybox mailing list