summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* improve readability of string: fix indentation and remove trailing spacesAndré Goddard Rosa2010-01-3013-18/+17
| | | | Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
* optimize delete/delete[] operators by removing unneeded branchAndré Goddard Rosa2010-01-301-12/+4
| | | | | | Remove redundant not NULL check already done in free(). Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
* merge from eclairJean-Baptiste Queru2009-11-1547-3219/+5098
|\
| * eclair snapshotJean-Baptiste Queru2009-11-1250-3218/+5185
| |
* | Merge change I37d0317dAndroid Code Review2009-11-093-22/+135
|\ \ | | | | | | | | | | | | * changes: modified SYSCALLS.TXT to support SuperH architecture
| * | modified SYSCALLS.TXT to support SuperH architectureShin-ichiro KAWASAKI2009-09-013-22/+135
| | |
* | | added and modified linker to support SuperH architectureShin-ichiro KAWASAKI2009-11-065-4/+224
| | |
* | | Add the BSD sys_signame array.Thorsten Glaser2009-11-054-33/+72
| | | | | | | | | | | | Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
* | | added and modified bionic code to support SuperH architectureShin-ichiro KAWASAKI2009-09-2832-3/+2672
| | | | | | | | | | | | | | | | | | modified: libc/Android.mk new files: libc/arch-sh/bionic/* new files: libc/arch-sh/include/*
* | | Merge change 10538Android Code Review2009-09-20159-2/+5206
|\ \ \ | | | | | | | | | | | | | | | | * changes: added syscalls for SuperH which automatically generate by gensyscalls.py
| * | | added syscalls for SuperH which automatically generate by gensyscalls.pyTony Sim2009-07-01159-2/+5206
| |/ /
* | | Merge change 10539Android Code Review2009-09-171-2/+12
|\ \ \ | | | | | | | | | | | | | | | | * changes: modified kernel headers re-generate tools to support SuperH architecture
| * | | modified kernel headers re-generate tools to support SuperH architectureShin-ichiro KAWASAKI2009-07-011-2/+12
| |/ /
* | | Merge change 10587Android Code Review2009-09-161-0/+1
|\ \ \ | | | | | | | | | | | | | | | | * changes: Fill l_ld of linkmaps with value from soinfo::dynamic.
| * | | Fill l_ld of linkmaps with value from soinfo::dynamic.Thinker K.F Li2009-09-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | GDB will try to read l_ld of linkmaps and compare the value to vma of .dynamic sections from shared objects. Since linker does not assign l_ld, GDB will complain about and re-compute l_addr from l_ld. And, GDB will get a wrong value.
* | | | Linux kernel helpers support is provided to android for its TLS ↵vinay harugop2009-09-161-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implementation. This fix addresses this by modifying the TLS access functions to use the kernel helper. This Fix is verified on ST Ericsson's U8500 platform and Submitted on behalf of a third-party: Surinder-pal SINGH from STMicroelectronics.
* | | | Merge change 10541Android Code Review2009-09-154-1/+117
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * changes: added and modified libdl to support SuperH architecture
| * | | | added and modified libdl to support SuperH architectureShin-ichiro KAWASAKI2009-08-314-1/+117
| | |/ / | |/| |
* | | | Merge change 10542Android Code Review2009-09-155-1/+345
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * changes: added and modified libm to support SuperH architecture
| * | | | added and modified libm to support SuperH architectureShin-ichiro KAWASAKI2009-08-315-1/+345
| |/ / /
* | | | Merge change 11671Android Code Review2009-09-151-6/+10
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * changes: Define 64 bit types if compiling with -std=c99
| * | | | Define 64 bit types if compiling with -std=c99Martin Storsjo2009-09-141-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compiling with -std=c99 defines __STRICT_ANSI__, but the 64 bit types and type macros should still be defined in this case. This helps compiling third party code that needs -std=c99 with the NDK.
* | | | | Remove code duplication for pthread_cond_timeout_np : use ↵Matthieu CASTET2009-09-141-11/+1
| |_|/ / |/| | | | | | | | | | | __pthread_cond_timedwait_relative helper
* | | | ARM architecture reference manuals for ARMv6 & ARMv7 state that the use of ↵vinay harugop2009-09-092-0/+17
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'swp' instruction is deprecated ARMv6 onwards. These architectures provide the load-linked, store-conditional pair of ldrex/strex whose use is recommended in place of 'swp'. Also, the description of the 'swp' instruction in the ARMv6 reference manual states that the swap operation does not include any memory barrier guarantees.This fix attempts to address these issues by providing an atomic swap implementation using ldrex/strex under _ARM_HAVE_LDREX_STREX macro. This Fix is verified on ST Ericsson's U8500 platform and Submitted on behalf of a third-party: Surinder-pal SINGH from STMicroelectronics.
* | | Include <endian.h> instead of <sys/endian.h>,Chih-Wei Huang2009-08-311-1/+1
| | | | | | | | | | | | since the later doesn't define byte order.
* | | Changed logging functions in bionic/logd_write.c.Alexey Tarasov2009-08-251-32/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Main differences from original code: 1. now log channel for LOG_ID_MAIN may exist even if LOG_ID_RADIO facility failed. 2. __write_to_log_null() now acts as always successful function. 3. it's more simplier to add new logging channels now ammended commit fixes my typo on line 130
* | | Merge change 10749Android Code Review2009-08-211-0/+1
|\ \ \ | | | | | | | | | | | | | | | | * changes: Make sure size_t is defined before used in strings.h
| * | | Make sure size_t is defined before used in strings.hMartin Storsjo2009-07-221-0/+1
| |/ / | | | | | | | | | | | | | | | Otherwise, including strings.h as the first file in a C file yields errors. This fixes issue 3332.
* | | Merge change 10757Android Code Review2009-08-211-1/+2
|\ \ \ | | | | | | | | | | | | | | | | * changes: Add an 's and a . to the bionic/libc README.
| * | | Add an 's and a . to the bionic/libc README.Joe LaPenna2009-07-231-1/+2
| |/ /
* | | Merge change 10057Android Code Review2009-08-072-0/+88
|\ \ \ | | | | | | | | | | | | | | | | * changes: Add mspace_merge_objects
| * | | Add mspace_merge_objectsBarry Hayes2009-06-022-0/+88
| |/ /
* | | merge from donutJean-Baptiste Queru2009-08-032-37/+48
|\ \ \ | | |/ | |/|
| * | bionic/linker: keep track of opened libraries by basenameandroid-sdk-tools_r2android-sdk-1.6_r2android-sdk-1.6_r1android-sdk-1.6-docs_r1android-1.6_r2android-1.6_r1.5android-1.6_r1.4android-1.6_r1.3android-1.6_r1.2android-1.6_r1.1android-1.6_r1Erik Gilling2009-07-281-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this change, the dynamic loader kept track of opened libraries either by their base name (i.e., libfoo.so instead of /system/lib/libfoo.so) when the shared library was loaded through the DT_NEEDED tag in an ELF header, or by whatever name was passed to dlopen(). This created a number of problems, among which: 1. dlopen("libfoo.so") and dlopen("/path/to/libfoo.so") would open the same library twice; 2. dlopen("/path/to/libfoo.so") and then dlopen("libbar.so"), where libbar.so depends on libfoo.so, would open libfoo.so twice. This patch makes the dynamic loader keep track of each loaded library by basename, which resolves the above ambiguity. The patch also enforces library lookup by base name, which means that it will refuse to load another library that has the same name. Thanks for the inspiration Iliyan. Signed-off-by: Erik Gilling <konkers@android.com> Cc: Iliyan Malchev <malchev@google.com>
| * | Merge change 8281 into donutAndroid (Google) Code Review2009-07-281-34/+34
| |\ \ | | | | | | | | | | | | | | | | * changes: linker: remove newlines from DL_ERR so that dlerror works correctly
| | * | linker: remove newlines from DL_ERR so that dlerror works correctlyErik Gilling2009-07-221-34/+34
| | | | | | | | | | | | | | | | Signed-off-by: Erik Gilling <konkers@android.com>
| * | | Make the DNS resolver accept domain names with an underscore.David 'Digit' Turner2009-07-271-1/+8
| |/ / | | | | | | | | | | | | | | | | | | More precisely, this accepts domain labels with an underscore in the middle (i.e. not at the start or the end of the label). This is needed to perform complex CNAME chain resolution in certain VPN networks.
* | | merge from donutJean-Baptiste Queru2009-07-2914-175/+385
|\ \ \ | |/ /
| * | Restore malloc debug.Andy McFadden2009-07-214-16/+21
| | | | | | | | | | | | | | | | | | Some libc changes were preventing the initialization call from being made. The basic problem appears to be that libc_init_common.c is only built once, and it's only built for the non-debug libc.
| * | Fix the C library runtime initialization order.David 'Digit' Turner2009-07-184-100/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows libc.so to run the C runtime initializer as soon as the dynamic linker loads the shared library, i.e. before any other initializers (e.g. static C++ constructors in other shared libraries the executable depends on). This also removes the bug where the initializers from the executable itself were run twice: once by the dynamic linker, and another time by __libc_init as defined by libc_init_dynamic.c
| * | Pass the elfdata pointer in a slot of the temporary TLS area.David 'Digit' Turner2009-07-172-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed to properly initialize the C runtime when libc.so is loaded by the dynamic linker. Move the temporary TLS setup before the first system call, just in case something really horrible happens, we won't crash when trying to write an error code in 'errno' Remove the broken TLS_SLOT_THREAD_ID setup. First, this slot should normally receive the address of a pthread_internal_t, not a kernel thread identifier. Second, it is never used by the linker anyway. Also remove an obsolete comment.
| * | Add new C++ headers <cerrno> and <cfloat>David 'Digit' Turner2009-07-104-0/+84
| | | | | | | | | | | | | | | Also add std::malloc/realloc/calloc/free to <cstdlib> Rename <cwchar_is_not_supported> to <cwchar>
| * | Add <linux/uinput.h> to C library kernel headersDavid 'Digit' Turner2009-07-101-0/+67
| | |
| * | Prevent a crash in the memory leak checker (which happened in chk_free())David 'Digit' Turner2009-07-103-63/+88
| | | | | | | | | | | | | | | | | | Simplify the code a little, removing un-necessary mutex locks/unlocks. Provide slightly better diagnostic message in case of corruption. Use snprintf/strlcat instead of sprintf/strcat
* | | Merge korg/donut into korg/masterJean-Baptiste Queru2009-07-2537-235/+1815
|\ \ \ | |/ / | | / | |/ |/|
| * Merge change 2990 into donutAndroid (Google) Code Review2009-06-251-4/+52
| |\ | | | | | | | | | | | | * changes: Add LD_LIBRARY_PATH support to bionic's linker
| | * Add LD_LIBRARY_PATH support to bionic's linkerDavid Bartley2009-06-151-4/+52
| | |
| * | Merge change 5184 into donutAndroid (Google) Code Review2009-06-241-24/+26
| |\ \ | | | | | | | | | | | | | | | | * changes: update clean msm_camera.h
| | * | update clean msm_camera.hIliyan Malchev2009-06-231-24/+26
| | | | | | | | | | | | | | | | Signed-off-by: Iliyan Malchev <malchev@google.com>
| * | | Add Glibc-compatible macro aliases for the nanosecond time accessors in stat ↵David 'Digit' Turner2009-06-221-0/+7
| |/ / | | | | | | | | | structure