Age | Commit message (Collapse) | Author |
|
last xcalloc replaced by xzalloc
|
|
platform.h: define strchrnul for dietlibc
ash: stop using few non-standard functions
|
|
xfuncs: add dprintf for dietlibc
|
|
xstrtou: disallow leading '+'
|
|
|
|
|
|
I don't know why patch decided to apply this even though it was already in
the tree. I thought the other hunks failed because they were totally
unrelated leakage from Bernhard's tree (which they are; was the a reason
for bundling them in with this fix? Do they have something to do with
the GCC 2.95 fix? I suspect they prevent me from backporting this
patch to 1.2.2 because the header consolidation into libbb.h hadn't
been done yet, and no I'm not fixing it up: if that's the case then
this patch won't be in 1.2.2 due to extraneous changes bundled with it that
prevent a clean backport without rolling a new patch).
|
|
|
|
__va_copy.
|
|
defined), yet it's not doing it for scripts/individual for some reason.
(I hate fighting with header files.)
|
|
|
|
few new (unfinished) config options, which I intend to make hidden (but
enabled) when CONFIG_NITPICK is disabled. Getting the .config infrastructure
to do that is non-obvious, it seems...
|
|
belongs
|
|
|
|
|
|
#defined? Also remove a check for a gcc version older than RH9 (if non-linux
needs that #define they can put it in their section.)
|
|
fallout due to the #include <sys/mount.h>. Removed that #include from various
applets and fixed up those that were unhappy when that #include was made
because they'd block copied stuff out of it. (Sigh.)
|
|
|
|
|
|
defining it in a guard is silly.
|
|
|
|
Kjellerstedt.
|
|
to/from little endian or big endian, which is a NOP if that's what the current
platform already is.
|
|
files still using them. I didn't remove them from e2fsck.c to avoid stomping
pending cleanup patches from Garrett, and I didn't bother to remove them from
fdisk.c because that entire file needs to be rewritten from scratch.
|
|
I'm in the area.
|
|
|
|
- add ATTRIBUTE_ALWAYS_INLINE, endian handling for DEC UNIX, some more
compiler dependent defines to platform.h
- add conditional bb_setpgrp define to platform.h
- remove superfluous specifying args from "#define fdprintf dprintf"
|
|
vaguely portable, and licensed GPLv2 "or later".
|
|
|
|
- use shorter boilerplate while at it
|
|
- rename get_kernel_revision() to get_linux_version_code
from Robert P. J. Day
|
|
as the old optimization did (actually does slightly better under gcc 4.0), and
simplifies the code.
|
|
anyway. This is at least less ugly than what was there before, and fixes
building all sources at once.
|
|
|
|
|
|
|
|
arpa/inet.h rather than netinet/in.h, otherwise we get warnings.
|
|
Fixes warnings about:
fdisk.c:45:1: warning: "_" redefined
nfsmount.c:121:1: warning: "_" redefined
nfsmount.c:122:1: warning: "N_" redefined
interface.c:84:1: warning: "_" redefined
|
|
md5_sha1_sum.c to convert some #ifdef CONFIG to if(ENABLE).)
|
|
For each CONFIG_SYMBOL, include/bb_config.h now has both ENABLE_SYMBOL
and USE_SYMBOL(x). ENABLE_SYMBOL is still always defined (1 or 0) so that
if(ENABLE) should optimize out when it's zero. The USE_SYMBOL(X) will only
splice in X if the symbol is defined, otherwise it'll be empty.
Thus we can convert this:
#ifdef CONFIG_ARGS
opt = bb_getopt_ulflags(argc, argv, "ab:c"
#ifdef CONFIG_THINGY
"d:"
#endif
, &bvalue
#ifdef CONFIG_THINGY
, &thingy
#endif
);
#endif
into this:
if (ENABLE_ARGS) {
opt = bb_getopt_ulflags(argc, argv, "ab:c" USE_THINGY("d:"), &bvalue
USE_THINGY(, &thingy));
}
And it should produce the same code.
Unlike the old versions in include/_usage.h, the new USE_SYMBOL(x) can handle
commas in its arguments (as shown above). (The _usage.h file is obsolete and
no longer generated.)
Nobody should need to include config.h directly anymore, bb_config.h should
define all the configuration stuff we need. Someday, the CONFIG_SYMBOL
versions should go away in favor of ENABLE_SYMBOL and USE_SYMBOL().
Thanks to vodz for the new version of bb_mkdep.c that works with function
macros.
|
|
- remove unused parameter pindex from fdisk.c, xbsd_initlabel()
|
|
- use shorter boilerplate while at it.
|