summaryrefslogtreecommitdiffstats
path: root/libc/Android.mk
Commit message (Collapse)AuthorAgeFilesLines
* Modify Android mem* routines with CodeAurora versions.Pat Galizia2011-02-251-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | Update the memcpy, memmove, and memset routines to use the versions from CodeAurora when specified in the bionic/Android.mk file (actually activated in the BoardConfig.mk file under device/<vendor>/<board>). With this change, the mem* routines are only used for the msm8660, while other platforms will use the current Android mem* routines. Future platforms can modify the makefile to use the CodeAurora-based mem* routines as desired. This has the benefit of making the CodeAurora- based routines opt-in instead of opt-out. Also, PLDSIZE and PLDOFFS can be specified in the BoardConfig.mk as well, so other platforms with different PLD tunings can use the same code without modifying the source file itself. Tests with FileCycler-0.3 showed a slight 1.1% improvement with these files on an 8660v2, based on the average of three FileCycler runs with and without the patch. Since the min/max values did not overlap, and the average score showed an improvement, we can consider upstreaming these modifications. Change-Id: I5607fe6f116f8fd2b2bd5ade151778eb0d5a3663
* libc: add <sys/eventfd.h> and corresponding implementations.David 'Digit' Turner2010-09-281-0/+1
| | | | Change-Id: Ide040884c456190226e580513099fdb8377e015b
* Add wmemcmp to Android.mkKenny Root2010-09-101-0/+1
| | | | Change-Id: I9dc96d72b2becdd31981b4d176a13358aef6dcb9
* Fix __get_tls() in static C library to use kernel helpers.David 'Digit' Turner2010-08-271-6/+32
| | | | | | | This is needed to fix gdbserver's handling of threaded programs, among other things. Change-Id: I823387c602cef9891532da946a01db14be780ab0
* Revert "Set SA_RESTORER in sigaction()"Dima Zavin2010-07-291-2/+0
| | | | This reverts commit e4fa46e75cd0d433b5c6c064720ed7e195cba7c8.
* libc: fix fstatfs() implementation.David 'Digit' Turner2010-07-081-0/+1
| | | | | | The syscall expects the size of the buffer as the second argument. Change-Id: I99ede2fec7fcd385ca03ff022c2cffa4297bea8d
* Remove compiler warnings when building Bionic.David 'Digit' Turner2010-06-221-1/+0
| | | | | | | | Also add missing declarations to misc. functions. Fix clearerr() implementation (previous was broken). Handle feature test macros like _POSIX_C_SOURCE properly. Change-Id: Icdc973a6b9d550a166fc2545f727ea837fe800c4
* Allow static C++ destructors to be properly called on dlclose().David 'Digit' Turner2010-06-181-6/+16
| | | | | | | | | | | | | | | | | | | | | | | With this patch, _and_ an upcoming build/ patch, the destruction of static C++ objects contained in shared libraries will happen properly when dlclose() is called. Note that this change introduces crtbegin_so.S and crtend_so.S which are currently ignored by the build system. + move definition of __dso_handle to the right place (before that, all shared libraries used the __dso_handle global variable from the C library). Note that we keep a 'weak' __dso_handle in aeabi.c to avoid breaking the build until the next patch to build/core/combo/ appears. We will be able to remove that later. + move bionic/aeabi.c to arch-arm/bionic/ (its proper location) Change-Id: Ie771aa204e3acbdf02fd30ebd4150373a1398f39 NOTE: The NDK will need to be modified to enable this feature in the shared libraries that are generated through it.
* wchar.h: improve wchar_t support in BionicDavid 'Digit' Turner2010-06-151-0/+28
| | | | Change-Id: Iffd41046fd0933c66542abf7627a1569522dfcb2
* Atomic/SMP update, part 3.Andy McFadden2010-05-281-0/+8
| | | | | | | | | | Update ARM atomic ops to use LDREX/STREX. Stripped out #if 0 chunk. Insert explicit memory barriers in pthread and semaphore code. For bug 2721865. Change-Id: I0f153b797753a655702d8be41679273d1d5d6ae7
* Add pthread_rwlock_t implementation to the C library (DO NOT MERGE)David 'Digit' Turner2010-05-191-0/+3
| | | | Change-Id: I756d8c26afc37cd7b71117ddbaa02a2cb40fdecb
* merge from open-source masterThe Android Open Source Project2010-05-131-0/+2
|\ | | | | | | Change-Id: I2be62bce462ee53fe9519f433523bd7a44a73d40
| * Set SA_RESTORER in sigaction()Matt Fischer2010-05-121-0/+2
| | | | | | | | | | | | | | | | | | GDB looks for specific opcode sequences when trying to recognize a stack frame as a signal trampoline. The sequences it looks for happen to be those created when SA_RESTORER is set, since glibc always sets a restorer. This patch does the same here, so that the trampolines can be correctly identified. Change-Id: I0ac574a68818cb24d939c3527f3aaeb04b853d04
* | merge from open-source masterThe Android Open Source Project2010-03-311-8/+18
|\ \ | |/ | | | | Change-Id: I076e0df8656fdf58c229cc9a168cd6d8e16b6d8e
| * Atom optimized string and memory routinesBruce Beare2010-03-261-8/+18
| | | | | | | | Change-Id: I27b68bb28551c75c9ac84bb9730e2cd8254d8991
* | merge from open-source masterThe Android Open Source Project2010-03-221-0/+1
|\ \ | |/ | | | | Change-Id: I70266ee8c520b216773f267e46c8273d2334c31d
| * x86 syscall system call implementationBruce Beare2010-03-041-0/+1
| |
| * am 5f53a182: Revert "Add qsort_r() implementation to the C library."Mathias Agopian2009-12-031-1/+0
| |\ | | | | | | | | | | | | | | | | | | Merge commit '5f53a18204ec991f5a77872806eeaa185936aa8c' into eclair-plus-aosp * commit '5f53a18204ec991f5a77872806eeaa185936aa8c': Revert "Add qsort_r() implementation to the C library."
| * \ am 754c178a: Add qsort_r() implementation to the C library.David 'Digit' Turner2009-12-031-0/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '754c178ae551aedcbbfd3bfd1c1c3b710d9ad989' into eclair-plus-aosp * commit '754c178ae551aedcbbfd3bfd1c1c3b710d9ad989': Add qsort_r() implementation to the C library.
| * \ \ merge from open-source masterJean-Baptiste Queru2009-11-081-3/+36
| |\ \ \
* | | | | Fix timezone management in the C libraryDavid 'Digit' Turner2010-03-051-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define 'timezone' and 'daylight' global variables that are already defined in <time.h> Properly update the 'tm_gmtoff' field in 'struct tm' values.
* | | | | bonic: libc: cpuacct support for setuid functionsMike Chan2010-03-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Any of the setuid functions now updates /acct/uid/ with its own tid before changing users. This is so we can properly account for cpu time per uid. Change-Id: I34186cf4d5228cac8439e582a9e26c01ef3011e4 Signed-off-by: Mike Chan <mike@android.com>
* | | | | Implement clone() C library function properly.David 'Digit' Turner2010-01-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only provide an implementation for ARM at the moment, since it requires specific assembly fragments (the standard syscall stubs cannot be used because the child returns in a different stack).
* | | | | Add implementation of fdprintf, clearenv, and stubs for ttyname_r, *usershellColin Cross2010-01-151-0/+2
| | | | | | | | | | | | | | | | | | | | Change-Id: I5fe7e8b6ee5edbb49e707c3b6737a58563781fa3
* | | | | Add killpg functionColin Cross2010-01-151-0/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I9bc347d264fe38faf2d0f9935d2ebb43a353196e
* | | | | Add fts, err, and sys/queue for grepColin Cross2010-01-151-0/+2
| | | | | | | | | | | | | | | | | | | | Change-Id: Id47514a1812d828e95efa2fab0e9c15c5b682b58
* | | | | Import regex from OpenBSDColin Cross2010-01-151-2/+7
| | | | | | | | | | | | | | | | | | | | Change-Id: I7ad7d907ef65e4e345f94777d730813b1270a612
* | | | | am ca07064c: am 5f53a182: Revert "Add qsort_r() implementation to the C ↵Mathias Agopian2009-12-031-1/+0
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | library." Merge commit 'ca07064c9ebd8523ed88fa09e97feaaafb7e9c15' into eclair-mr2-plus-aosp * commit 'ca07064c9ebd8523ed88fa09e97feaaafb7e9c15': Revert "Add qsort_r() implementation to the C library."
| * \ \ \ \ am 5f53a182: Revert "Add qsort_r() implementation to the C library."Mathias Agopian2009-12-031-1/+0
| |\ \ \ \ \ | | | |_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '5f53a18204ec991f5a77872806eeaa185936aa8c' into eclair-mr2 * commit '5f53a18204ec991f5a77872806eeaa185936aa8c': Revert "Add qsort_r() implementation to the C library."
| | * | | | Revert "Add qsort_r() implementation to the C library."android-sdk-2.1_r1android-2.1_r2.1sandroid-2.1_r2android-2.1_r1Mathias Agopian2009-12-031-1/+0
| | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 754c178ae551aedcbbfd3bfd1c1c3b710d9ad989. Turns out we don't need it afterall (needed a stable sort anyways). So, we'll make that change in the dev branch instead.
* | | | | am 20b3097d: am 754c178a: Add qsort_r() implementation to the C library.David 'Digit' Turner2009-12-031-0/+1
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '20b3097d4cc225d948dac38e778a9d3b3b1549db' into eclair-mr2-plus-aosp * commit '20b3097d4cc225d948dac38e778a9d3b3b1549db': Add qsort_r() implementation to the C library.
| * | | | am 754c178a: Add qsort_r() implementation to the C library.David 'Digit' Turner2009-12-031-0/+1
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '754c178ae551aedcbbfd3bfd1c1c3b710d9ad989' into eclair-mr2 * commit '754c178ae551aedcbbfd3bfd1c1c3b710d9ad989': Add qsort_r() implementation to the C library.
| | * | | Add qsort_r() implementation to the C library.David 'Digit' Turner2009-12-031-0/+1
| | |/ / | | | | | | | | | | | | | | | | | | | | NOTE: This replaces qsort.c with the FreeBSD version. While the patch changes the source, it should not alter the implementation that should use the exact same algorithm.
* | | | am 362b2aab: Merge change Ib4550a04 into eclair-mr2Vladimir Chtchetkine2009-11-191-24/+46
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '362b2aabee2dd04e04a3ad9c09f0ad0212569be4' into eclair-mr2-plus-aosp * commit '362b2aabee2dd04e04a3ad9c09f0ad0212569be4': Split libc_debug.so into two .so modules loaded on demand from libc.so
| * | | Split libc_debug.so into two .so modules loaded on demand from libc.soVladimir Chtchetkine2009-11-181-24/+46
| |/ / | | | | | | | | | | | | This change is intended to eliminate need to replace libc.so with libc_debug.so in order to enablememory allocation debugging. This is also the first step towards implementing extended memoryallocation debugging using emulator's capabilities in monitoring memory access.
* | | merge from open-source masterJean-Baptiste Queru2009-11-091-3/+36
|\ \ \ | |/ / |/| / | |/
| * Add the BSD sys_signame array.Thorsten Glaser2009-11-051-0/+1
| | | | | | | | Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
| * added and modified bionic code to support SuperH architectureShin-ichiro KAWASAKI2009-09-281-3/+35
| | | | | | | | | | | | modified: libc/Android.mk new files: libc/arch-sh/bionic/* new files: libc/arch-sh/include/*
* | Fix ABI breakage in libc.so and libm.so between 1.6 and Eclair.David 'Digit' Turner2009-09-291-0/+1
| | | | | | | | | | For a detailed description of the problem and why this fix is needed, plrease read the comments in libgcc_compat.c
* | Fix TLS access for ARMv6 and beyond.David 'Digit' Turner2009-09-221-0/+10
|/ | | | | | | | | | For performance reasons, we don't call the kernel helper. Instead, we directly access the TLS register on ARMv6 and higher. For ARMv5TE, keep using the hard-coded address populated by the kernel on each task switch. NOTE: Since we don't call the kernel helper, this must precisely match your kernel configuration. This is controlled by setting the ARCH_ARM_HAVE_TLS_REGISTER variable to 'true' in your board configuration file.
* libc: Add an intermediate version of the static libc without mallocDima Zavin2009-05-271-0/+26
| | | | | | | For now, this will only used by the dynamic loader to ensure that malloc and friends are never called. Signed-off-by: Dima Zavin <dima@android.com>
* libc: Cleanup the libc makefile.Dima Zavin2009-05-271-116/+84
| | | | | | | | Removes a lot of redundant code, and reorganizes the file. We first setup all the comomn variables we may need, and then define the actual libraries that need to be generated. Signed-off-by: Dima Zavin <dima@android.com>
* libc: Replace a reference to TARGET_BUILD_TYPE with DEBUG_BIONIC_LIBCDave Bort2009-04-241-1/+1
| | | | | | | We're soon going to stop using TARGET_BUILD_TYPE==debug to debug native modules. Signed-off-by: Dave Bort <dbort@android.com>
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+573
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-573/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-0/+4
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-1/+3
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-30/+144
|
* Initial Contributionandroid-1.0The Android Open Source Project2008-10-211-0/+453