aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
AgeCommit message (Collapse)Author
2007-05-04fix -Werror compileDenis Vlasenko
2007-04-16style fixes, no code changesDenis Vlasenko
2007-04-13style fixesDenis Vlasenko
2007-04-12login: remove setpgrp call (makes it work from shell prompt again).Denis Vlasenko
login: sanitize stdio descriptors (we are suid, need to be careful!) shrink login and set_environment by ~100 bytes.
2007-04-11add more convenient defines for [NO]MMU:Denis Vlasenko
"#ifndef BB_NOMMU" is a double negative
2007-04-10- add ATTRIBUTE_DEPRECATED for functions that should be removed in the future.Bernhard Reutner-Fischer
This is ment to provide means to point at cruft marked for cleanup.
2007-03-19- be gentle to the intel compiler and make sure we have __u64 which is ↵Bernhard Reutner-Fischer
needed for linux/loop.h
2007-01-20- add C99 bool type for setups that support it.Bernhard Reutner-Fischer
2007-01-18- move the smallint that is platform dependant to it's proper placeBernhard Reutner-Fischer
2006-12-31remove commented out #includes etcDenis Vlasenko
move get_hz to the only caller
2006-12-31stop using __u32 etc. uint32_t is there for a reasonDenis Vlasenko
2006-12-26style fixesDenis Vlasenko
last xcalloc replaced by xzalloc
2006-12-18xfuncs.c: dietlibc actually HAS fdprintf!Denis Vlasenko
platform.h: define strchrnul for dietlibc ash: stop using few non-standard functions
2006-12-18nc: add missing castDenis Vlasenko
xfuncs: add dprintf for dietlibc
2006-12-16s/extern inline/static ATTRIBUTE_ALWAYS_INLINE/gDenis Vlasenko
xstrtou: disallow leading '+'
2006-11-17add -Wundef, fix uncovered bugsDenis Vlasenko
2006-09-17whitespace cleanupDenis Vlasenko
2006-09-12Revert duplicate patch.Rob Landley
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).
2006-09-12Fix from Bernhard for somebody trying to limp along with gcc 2.95.4.Rob Landley
2006-09-12- small trivia to be gentle to gcc-2.95.x which had no va_copy but only ↵Bernhard Reutner-Fischer
__va_copy.
2006-08-10Ok, features.h already defines _OPEN_SOURCE (and complains if it's alreadyRob Landley
defined), yet it's not doing it for scripts/individual for some reason. (I hate fighting with header files.)
2006-08-09Another whack at scripts/individual. Now builds 212 applets.Rob Landley
2006-08-08Add shared subtree support, suggested by Vladimir Dronnikov. Also break out aRob Landley
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...
2006-07-20move lchown/chown define out of specific files and into platform.h where it ↵Mike Frysinger
belongs
2006-06-29Some old kernel headers don't #include BLKSSZGET in sys/mount.h.Rob Landley
2006-06-22Patch from Shaun Jackman to replace CFLAGS_EXTRA with .config.makRob Landley
2006-06-15We came up with our own names for ATTRIBUTE_*, so why check if they're alreadyRob Landley
#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.)
2006-06-15Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot ofRob Landley
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.)
2006-06-13Random cleanup of platform.h.Rob Landley
2006-06-06only check __GNU_LIBRARY__ if it is actually definedMike Frysinger
2006-06-01Shaun Jackman pointed out that KERNEL_VERSION() is used without guards, soRob Landley
defining it in a guard is silly.
2006-05-31- conditionally define BB_NOMMUBernhard Reutner-Fischer
2006-05-30Put parentheses around some of the SWAP() macros, as pointed out by PeterRob Landley
Kjellerstedt.
2006-05-29Add SWAP_LE?? and SWAP_BE?? macros, and make things use them. Converts valuesRob Landley
to/from little endian or big endian, which is a NOP if that's what the current platform already is.
2006-05-29Remove _() and N_() from platform.h. #define them as NOP macros in the twoRob Landley
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.
2006-05-27Move portability stuff to platform.h, and clean up adjtimex.c a bit whileRob Landley
I'm in the area.
2006-05-26- add workaround for tar being broken since it uses a non-portable constant.Bernhard Reutner-Fischer
2006-05-26- move libc checks from busybox.h to platform.hBernhard Reutner-Fischer
- 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"
2006-05-21New version of nohup that's much smaller, less paranoid, consistent,Rob Landley
vaguely portable, and licensed GPLv2 "or later".
2006-05-19- backout erroneously checked in snippet..Bernhard Reutner-Fischer
2006-05-19- remove emacs layout block as suggested by Robert P.J. DayBernhard Reutner-Fischer
- use shorter boilerplate while at it
2006-05-19- single KERNEL_VERSION(a,b,c) macro in platform.hBernhard Reutner-Fischer
- rename get_kernel_revision() to get_linux_version_code from Robert P. J. Day
2006-05-07Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many bytesRob Landley
as the old optimization did (actually does slightly better under gcc 4.0), and simplifies the code.
2006-05-04Not quite compiler independent, but we've never tried to be gcc independentRob Landley
anyway. This is at least less ugly than what was there before, and fixes building all sources at once.
2006-03-28just whitespace fixesMike Frysinger
2006-03-25Define both big endian and little endian macros.Rob Landley
2006-03-23fix typoMike Frysinger
2006-03-09Fixup to the previous (portability) patch. Linux actually does needRob Landley
arpa/inet.h rather than netinet/in.h, otherwise we get warnings.
2006-02-23- put NLS stuff in one central place to avoid redefines.Bernhard Reutner-Fischer
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
2006-02-21Patch from Devin Bayer to split up hash_fd.c into md5.c and sha1.c. (I tweakedRob Landley
md5_sha1_sum.c to convert some #ifdef CONFIG to if(ENABLE).)