aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* expand comment about FAST_FUNCDenis Vlasenko2008-06-271-1/+8
|
* *: introduce and use FAST_FUNC: regparm on i386, otherwise no-onDenis Vlasenko2008-06-271-0/+7
| | | | | | | text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
* udhcpc: kill undocumented -W, it was a no-op.Denis Vlasenko2008-06-131-2/+0
| | | | | | | | | | | | | | | | | | fix option parsing in the case some CONFIG_x are off. disable -b on NOMMU, make backgrounding work correctly (if a bit differently from MMU case). Previously, it wasn't working at all. stop using global data for flags in main(), opt bitfield works as well. function old new delta cryptpw_main 177 153 -24 packed_usage 24478 24452 -26 client_background 26 - -26 udhcpc_main 2462 2372 -90 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/3 up/down: 0/-166) Total: -166 bytes
* udhcpc: shrinkDenis Vlasenko2008-05-261-1/+14
| | | | | | | | | | | | | | udhcpc: guard against zero lease time function old new delta timeout 4 - -4 server_addr 4 - -4 requested_ip 4 - -4 perform_release 134 112 -22 udhcpc_main 2511 2485 -26 ------------------------------------------------------------------------------ (add/remove: 0/3 grow/shrink: 0/2 up/down: 0/-60) Total: -60 bytes
* Use intra-DSO calls when we build libbusybox. No-op for normal build.Denis Vlasenko2008-05-091-26/+26
| | | | | | | | | This was Bernhard Fischer' idea. text data bss dec hex filename 773549 7781 9740 791070 c121e busybox.t7/0_lib/libbusybox.so.1.11.0.svn_unstripped 769683 7397 9740 786820 c0184 busybox.t9t/0_lib/libbusybox.so.1.11.0.svn_unstripped
* remove stray semicolonDenis Vlasenko2008-04-301-1/+1
|
* gcc compat fix and warning suppressionDenis Vlasenko2008-03-201-1/+2
| | | | | by Joe Krahn <krahn AT niehs.nih.gov>
* tar: move FNM_LEADING_DIR #define to tar.c - no other users.Denis Vlasenko2008-02-131-6/+0
| | | | | Closes bug 1332.
* some more fixes for cross-compiling on an OS X host: apple provides core ↵Mike Frysinger2008-02-071-5/+6
| | | | types so dont redefine them, sys/statfs.h is not available, and only use some newer AF_* defines if they are actually available
* only include mntent.h according to HAVE_MNTENT_H and dont define this on OS XMike Frysinger2008-02-071-1/+1
|
* - be C99 friendly. Anonymous unions are a GNU extension. This change isBernhard Reutner-Fischer2008-01-291-4/+3
| | | | | size-neutral WRT -std=gnu99 and fixes several compilation errors for strict C99 mode.
* comment fixDenis Vlasenko2008-01-241-2/+1
|
* hush: report [v]fork failuresDenis Vlasenko2008-01-081-2/+3
| | | | | | hush: more correct handling of piping config: add CONFIG_NOMMU
* bzip2: port bzip2 1.0.4 to busybox. note: bzip2 code residesDenis Vlasenko2007-10-131-2/+4
| | | | | | | in separate directory (archival/bz/*) and is covered by BSD-style license. code size: 13k
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-2/+3
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* top: get rid of on-stack variable buffers, use permanent one.Denis Vlasenko2007-09-081-0/+1
| | | | | | | | | | | | | | | | 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
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-3/+13
| | | | | | | | | 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
* - add ATTRIBUTE_UNUSED_RESULT for internal useBernhard Reutner-Fischer2007-06-211-0/+3
|
* diff: shrink code (-85 bytes):Denis Vlasenko2007-06-121-3/+3
| | | | | | | | | | | | 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
* fix -Werror compileDenis Vlasenko2007-05-041-1/+5
|
* style fixes, no code changesDenis Vlasenko2007-04-161-1/+2
|
* style fixesDenis Vlasenko2007-04-131-4/+4
|
* login: remove setpgrp call (makes it work from shell prompt again).Denis Vlasenko2007-04-121-3/+3
| | | | | login: sanitize stdio descriptors (we are suid, need to be careful!) shrink login and set_environment by ~100 bytes.
* add more convenient defines for [NO]MMU:Denis Vlasenko2007-04-111-2/+10
| | | | "#ifndef BB_NOMMU" is a double negative
* - add ATTRIBUTE_DEPRECATED for functions that should be removed in the future.Bernhard Reutner-Fischer2007-04-101-0/+2
| | | | This is ment to provide means to point at cruft marked for cleanup.
* - be gentle to the intel compiler and make sure we have __u64 which is ↵Bernhard Reutner-Fischer2007-03-191-0/+9
| | | | needed for linux/loop.h
* - add C99 bool type for setups that support it.Bernhard Reutner-Fischer2007-01-201-0/+10
|
* - move the smallint that is platform dependant to it's proper placeBernhard Reutner-Fischer2007-01-181-0/+11
|
* remove commented out #includes etcDenis Vlasenko2006-12-311-7/+0
| | | | move get_hz to the only caller
* stop using __u32 etc. uint32_t is there for a reasonDenis Vlasenko2006-12-311-6/+6
|
* style fixesDenis Vlasenko2006-12-261-1/+1
| | | | last xcalloc replaced by xzalloc
* xfuncs.c: dietlibc actually HAS fdprintf!Denis Vlasenko2006-12-181-2/+11
| | | | | platform.h: define strchrnul for dietlibc ash: stop using few non-standard functions
* nc: add missing castDenis Vlasenko2006-12-181-0/+3
| | | | xfuncs: add dprintf for dietlibc
* s/extern inline/static ATTRIBUTE_ALWAYS_INLINE/gDenis Vlasenko2006-12-161-1/+1
| | | | xstrtou: disallow leading '+'
* add -Wundef, fix uncovered bugsDenis Vlasenko2006-11-171-1/+1
|
* whitespace cleanupDenis Vlasenko2006-09-171-2/+2
|
* Revert duplicate patch.Rob Landley2006-09-121-8/+0
| | | | | | | | | | | | 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).
* Fix from Bernhard for somebody trying to limp along with gcc 2.95.4.Rob Landley2006-09-121-0/+8
|
* - small trivia to be gentle to gcc-2.95.x which had no va_copy but only ↵Bernhard Reutner-Fischer2006-09-121-0/+8
| | | | __va_copy.
* Ok, features.h already defines _OPEN_SOURCE (and complains if it's alreadyRob Landley2006-08-101-1/+0
| | | | | defined), yet it's not doing it for scripts/individual for some reason. (I hate fighting with header files.)
* Another whack at scripts/individual. Now builds 212 applets.Rob Landley2006-08-091-0/+1
|
* Add shared subtree support, suggested by Vladimir Dronnikov. Also break out aRob Landley2006-08-081-0/+29
| | | | | | 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...
* move lchown/chown define out of specific files and into platform.h where it ↵Mike Frysinger2006-07-201-1/+7
| | | | belongs
* Some old kernel headers don't #include BLKSSZGET in sys/mount.h.Rob Landley2006-06-291-0/+3
|
* Patch from Shaun Jackman to replace CFLAGS_EXTRA with .config.makRob Landley2006-06-221-1/+1
|
* We came up with our own names for ATTRIBUTE_*, so why check if they're alreadyRob Landley2006-06-151-22/+0
| | | | | #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.)
* Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot ofRob Landley2006-06-151-1/+4
| | | | | | 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.)
* Random cleanup of platform.h.Rob Landley2006-06-131-16/+24
|
* only check __GNU_LIBRARY__ if it is actually definedMike Frysinger2006-06-061-2/+2
|
* Shaun Jackman pointed out that KERNEL_VERSION() is used without guards, soRob Landley2006-06-011-2/+0
| | | | defining it in a guard is silly.