aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
AgeCommit message (Collapse)Author
2008-01-29- be C99 friendly. Anonymous unions are a GNU extension. This change isBernhard Reutner-Fischer
size-neutral WRT -std=gnu99 and fixes several compilation errors for strict C99 mode.
2008-01-24comment fixDenis Vlasenko
2008-01-08hush: report [v]fork failuresDenis Vlasenko
hush: more correct handling of piping config: add CONFIG_NOMMU
2007-10-13bzip2: port bzip2 1.0.4 to busybox. note: bzip2 code residesDenis Vlasenko
in separate directory (archival/bz/*) and is covered by BSD-style license. code size: 13k
2007-10-11add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko
EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
2007-09-08top: get rid of on-stack variable buffers, use permanent one.Denis Vlasenko
code shrank with and without TOPMEM: top_main 828 844 +16 display_process_list 1525 1473 -52 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 16/-52) Total: -36 bytes top_main 1150 1171 +21 display_topmem_process_list 1150 1167 +17 display_process_list 1525 1473 -52 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 38/-52) Total: -14 bytes
2007-08-12trylink: produce even more info about final link stageDenis Vlasenko
trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
2007-06-21- add ATTRIBUTE_UNUSED_RESULT for internal useBernhard Reutner-Fischer
2007-06-12diff: shrink code (-85 bytes):Denis Vlasenko
function old new delta fiddle_sum 8 - -8 diffreg 2717 2690 -27 prepare 334 284 -50 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/2 up/down: 0/-85) Total: -85 bytes s/ATTRIBUTE_ALWAYS_INLINE/ALWAYS_INLINE/g
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