[PATCH] Added replacement function for strverscmp
Dan Fandrich
dan at coneharvesters.com
Mon Jun 13 21:57:46 UTC 2011
On Mon, Jun 13, 2011 at 04:18:07PM -0400, Rich Felker wrote:
> Are you sure? Looks like about 50-50 to me. fdatasync, dprintf,
> mkdtemp, stpcpy, and strsignal are all standard.
I was talking about the replacement functions in libbb/platform.c
and all of those are either nonstandardized, or standardized only
in 2008, which is recently enough that plenty of deployed environments
don't yet have support.
> Anyway, is there a reason this function is useful for BB? It seems
> rather useless and bloated to add it for no good reason...
It's now used in ls -v, as of a few hours ago. The alternative would
be to just surround the -v support with HAVE_STRVERSCMP and not
provide a fallback implementation of strverscmp.
>>> Dan
More information about the busybox
mailing list