aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* only check __GNU_LIBRARY__ if it is actually definedvapier2006-06-061-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15292 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Shaun Jackman pointed out that KERNEL_VERSION() is used without guards, solandley2006-06-011-2/+0
| | | | | | | defining it in a guard is silly. git-svn-id: svn://busybox.net/trunk/busybox@15258 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - conditionally define BB_NOMMUaldot2006-05-311-4/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15243 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Put parentheses around some of the SWAP() macros, as pointed out by Peterlandley2006-05-301-6/+6
| | | | | | | Kjellerstedt. git-svn-id: svn://busybox.net/trunk/busybox@15226 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add SWAP_LE?? and SWAP_BE?? macros, and make things use them. Converts valueslandley2006-05-291-5/+16
| | | | | | | | to/from little endian or big endian, which is a NOP if that's what the current platform already is. git-svn-id: svn://busybox.net/trunk/busybox@15215 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove _() and N_() from platform.h. #define them as NOP macros in the twolandley2006-05-291-12/+4
| | | | | | | | | 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. git-svn-id: svn://busybox.net/trunk/busybox@15212 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move portability stuff to platform.h, and clean up adjtimex.c a bit whilelandley2006-05-271-0/+17
| | | | | | | I'm in the area. git-svn-id: svn://busybox.net/trunk/busybox@15204 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add workaround for tar being broken since it uses a non-portable constant.aldot2006-05-261-0/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15187 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - move libc checks from busybox.h to platform.haldot2006-05-261-4/+101
| | | | | | | | | | - 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" git-svn-id: svn://busybox.net/trunk/busybox@15183 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New version of nohup that's much smaller, less paranoid, consistent,landley2006-05-211-0/+2
| | | | | | | vaguely portable, and licensed GPLv2 "or later". git-svn-id: svn://busybox.net/trunk/busybox@15155 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - backout erroneously checked in snippet..aldot2006-05-191-2/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15144 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove emacs layout block as suggested by Robert P.J. Dayaldot2006-05-191-0/+3
| | | | | | | - use shorter boilerplate while at it git-svn-id: svn://busybox.net/trunk/busybox@15141 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - single KERNEL_VERSION(a,b,c) macro in platform.haldot2006-05-191-0/+7
| | | | | | | | - rename get_kernel_revision() to get_linux_version_code from Robert P. J. Day git-svn-id: svn://busybox.net/trunk/busybox@15121 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many byteslandley2006-05-071-5/+0
| | | | | | | | as the old optimization did (actually does slightly better under gcc 4.0), and simplifies the code. git-svn-id: svn://busybox.net/trunk/busybox@15023 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Not quite compiler independent, but we've never tried to be gcc independentlandley2006-05-041-11/+5
| | | | | | | | anyway. This is at least less ugly than what was there before, and fixes building all sources at once. git-svn-id: svn://busybox.net/trunk/busybox@15000 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just whitespace fixesvapier2006-03-281-16/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14676 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Define both big endian and little endian macros.landley2006-03-251-3/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14654 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix typovapier2006-03-231-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14612 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup to the previous (portability) patch. Linux actually does needlandley2006-03-091-0/+8
| | | | | | | arpa/inet.h rather than netinet/in.h, otherwise we get warnings. git-svn-id: svn://busybox.net/trunk/busybox@14499 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - put NLS stuff in one central place to avoid redefines.aldot2006-02-231-1/+5
| | | | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@14235 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Devin Bayer to split up hash_fd.c into md5.c and sha1.c. (I tweakedlandley2006-02-211-0/+15
| | | | | | | md5_sha1_sum.c to convert some #ifdef CONFIG to if(ENABLE).) git-svn-id: svn://busybox.net/trunk/busybox@14160 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New USE() macroslandley2006-02-131-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn://busybox.net/trunk/busybox@13955 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add and use ATTRIBUTE_ALIGNED(num_bytes)aldot2006-01-311-0/+4
| | | | | | | - remove unused parameter pindex from fdisk.c, xbsd_initlabel() git-svn-id: svn://busybox.net/trunk/busybox@13751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add platform.h.aldot2006-01-221-0/+82
- use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@13494 69ca8d6d-28ef-0310-b511-8ec308f3f277