aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* include/libbb.h: mark malloc-returning functions with GCC attributeDenys Vlasenko2009-11-021-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta ash_main 1336 1365 +29 readcmd 1062 1072 +10 add_split_dependencies 707 717 +10 rtnl_talk 539 548 +9 normalize 165 174 +9 xmalloc_optname_optval 583 590 +7 test_main 247 253 +6 insert_bg_job 366 371 +5 dname_enc 391 395 +4 nslookup_main 165 168 +3 ifplugd_main 1099 1102 +3 tftpd_main 493 495 +2 make_new_session 413 415 +2 localcmd 274 276 +2 date_main 696 698 +2 tee_main 317 318 +1 setvar 183 184 +1 hash_find 233 234 +1 xrtnl_dump_filter 400 399 -1 prepend_new_eth_table 297 295 -2 unpack_Z_stream 1229 1226 -3 read_line_input 4823 4820 -3 do_load 523 520 -3 udhcp_run_script 669 665 -4 mkfs_vfat_main 1609 1605 -4 rtnl_rtprot_initialize 70 65 -5 procps_scan 1842 1835 -7 read_opt 873 865 -8 ifupdown_main 2133 2125 -8 mkfs_ext2_main 2492 2482 -10 logread_main 503 492 -11 svlogd_main 1441 1429 -12 rewrite 1032 1018 -14 fbsplash_main 917 903 -14 str2sockaddr 431 405 -26 unpack_lzma_stream 2705 2677 -28 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 18/18 up/down: 106/-163) Total: -57 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Add more compat code for non GNU environmentsDan Fandrich2009-11-011-9/+41
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* platform compatibility work (by Dan Fandrich)Dan Fandrich2009-10-271-20/+42
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move libc related stuff out of platform.hDenys Vlasenko2009-07-081-44/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Patches to enable FreeBSD buildDenys Vlasenko2009-07-051-33/+28
| | | | | | | | | platform.h: fix wrong check for endianness, fix lchown aliasing to chown on uclibc. Code seems to not be affected in my testing. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add platform tweaksDenys Vlasenko2009-05-191-79/+87
| | | | | | | | login: consider platforms having no domainname field in the utsname struct include/platform.h: define IUCLC to 0 on platforms where it is not defined Signed-off-by: Luca Favatella <slackydeb@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix move_to_unaligned32Denis Vlasenko2009-04-171-1/+4
|
* *: make "pragma GCC visibility push(hidden)" less uglyDenis Vlasenko2009-04-091-3/+13
|
* more of pointless whitespace fixesDenis Vlasenko2009-04-011-1/+1
|
* optimize 16- and 32-bit movesDenis Vlasenko2008-12-081-3/+9
| | | | | | | | | | | | | | | | function old new delta udhcpd_main 1239 1257 +18 udhcp_add_simple_option 93 92 -1 buffer_read_le_u32 19 18 -1 unpack_gz_stream_with_info 526 520 -6 dnsd_main 1470 1463 -7 udhcp_run_script 1208 1186 -22 send_ACK 255 229 -26 arping_main 1661 1623 -38 send_offer 470 428 -42 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/8 up/down: 18/-143) Total: -125 bytes
* crond: use bb_setpgrp, not setpgrpDenis Vlasenko2008-12-031-22/+24
| | | | | platform.h: make a bit more readable
* add comment, no code changesDenis Vlasenko2008-11-011-0/+1
|
* - update my name. No obj-code changes ;)Bernhard Reutner-Fischer2008-09-251-1/+1
|
* - support relatime / norelatimeBernhard Reutner-Fischer2008-08-061-1/+3
|
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-051-10/+10
|
* add stdcall to FAST_FUNCDenis Vlasenko2008-06-271-3/+3
| | | | | | | text data bss dec hex filename 804476 611 6868 811955 c63b3 busybox_old 804373 611 6868 811852 c634c busybox_unstripped
* 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 '+'