summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
* improve readability of stdio: fix indentation and remove trailing spacesAndré Goddard Rosa2010-05-1715-57/+56
| | | | | Change-Id: Ic51e58a7c75d20bf770dc0ebd7f97a338fbe0036 Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
* Merge "Add declaration for sys_signame[] forgotten in change 12489"David Turner2010-05-141-0/+1
|\
| * Add declaration for sys_signame[] forgotten in change 12489Thorsten Glaser2010-04-051-0/+1
| |
* | Set SA_RESTORER in sigaction()Matt Fischer2010-05-128-6/+50
| | | | | | | | | | | | | | | | | | 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
* | stdio: simplify __fremovelock()André Goddard Rosa2010-05-101-3/+1
| | | | | | | | | | | | | | ... by removing extraneous NULL check, as free() already does it. Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com> Change-Id: I0445f35c7ad0a049a0e4aee1fbe002ed2f13b94b
* | Merge "string: tidy up strndup()"David Turner2010-05-101-4/+6
|\ \
| * | string: tidy up strndup()André Goddard Rosa2010-01-301-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | It decreases code size: text data bss dec hex filename 161 0 0 161 a1 strndup-BEFORE.o 153 0 0 153 99 strndup-AFTER.o Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
* | | Merge "Fix log channel initialization at bionic/logd_write.c."David Turner2010-05-011-0/+2
|\ \ \
| * | | Fix log channel initialization at bionic/logd_write.c.Alexey Tarasov2009-12-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | log_channel_t contains fd member, which is file descriptor for exact logging channel. change cc05d1271680d6a7804bc89d3b1fe14c40b32396 lacks initialization of this member in __write_to_log_init(), thus logging code is not working, although not crashable. Additional details may be found in comments here: http://review.source.android.com/5617
* | | | Merge "added headers for SuperH which automatically generate by update_all.py"Jean-Baptiste Queru2010-04-29174-0/+7188
|\ \ \ \
| * | | | added headers for SuperH which automatically generate by update_all.pyTony SIM2010-02-01174-0/+7188
| |/ / / | | | | | | | | | | | | base on kernel 2.6.27 arch/sh/include/asm/
* | | | bionic: add missing NULL check from memory allocation on record_backtrace()André Goddard Rosa2010-04-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com> Change-Id: I739c63c5a7344fff1775580044dc647edf246ebf
* | | | stdio: simplify vasprintf()André Goddard Rosa2010-04-291-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... by removing unneeded NULL check, as free() already does it. By the way, we don't need to set a stack variable back to NULL. Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com> Change-Id: Id90eb8f042b5c922c5ff139b11ff8366fb404566
* | | | stdio: simplify asprintf()André Goddard Rosa2010-04-291-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... by removing unneeded NULL check, as free() already does it. By the way, we don't need to set a stack variable back to NULL. Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com> Change-Id: Id1f72e872f73366dddcea4abc75885a3d9a318c6
* | | | improve readability of stdlib: fix indentation and remove trailing spacesAndré Goddard Rosa2010-04-2911-232/+230
| |_|/ |/| | | | | | | | | | | | | | Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com> Change-Id: I7dd90a0816b5376ffc1de4499d56935e0bd574a1
* | | bionic: fix memory leak in get_malloc_leak_info() error pathAndré Goddard Rosa2010-03-291-1/+2
| | | | | | | | | | | | Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
* | | Merge "bionic: clear only the part of the buffer which is not overwritten ↵David Turner2010-03-301-2/+1
|\ \ \ | | | | | | | | | | | | afterward"
| * | | bionic: clear only the part of the buffer which is not overwritten afterwardAndré Goddard Rosa2010-03-281-2/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I5ddd93f0557e5a7401460dc9fc8a55b330a79c3a Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
* | | | stdlib: optimize bsearch()André Goddard Rosa2010-03-281-2/+2
|/ / / | | | | | | | | | | | | | | | | | | ... by checking most probable condition first (elements do differ) Change-Id: I424eab9c32a6d9eb82b686ca04025ec8c9097035 Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
* | | Merge changes Ibdc6e3c8,I9bcb91a2David Turner2010-03-292-5/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | * changes: Correct generic memset implementation Generic memcpy should define MEMCOPY before including bcopy.c
| * | | Correct generic memset implementationChris Dearman2010-02-051-4/+4
| | | | | | | | | | | | | | | | Signed-off-by: Chris Dearman <chris@mips.com>
| * | | Generic memcpy should define MEMCOPY before including bcopy.cChris Dearman2010-02-051-1/+1
| |/ / | | | | | | | | | Signed-off-by: Chris Dearman <chris@mips.com>
* | | Merge "Atom optimized string and memory routines"David Turner2010-03-2914-8/+7360
|\ \ \
| * | | Atom optimized string and memory routinesBruce Beare2010-03-2614-8/+7360
| | | | | | | | | | | | | | | | Change-Id: I27b68bb28551c75c9ac84bb9730e2cd8254d8991
* | | | Android hack for size_tBruce Beare2010-03-261-3/+16
|/ / / | | | | | | | | | Change-Id: I3c967fca60f542459dc17be84da47b3b6a26242b
* | | Merge "bionic: on pthread_join(), avoid extra check in case we find the thread"David Turner2010-03-181-5/+4
|\ \ \
| * | | bionic: on pthread_join(), avoid extra check in case we find the threadAndré Goddard Rosa2010-02-051-5/+4
| |/ / | | | | | | | | | | | | | | | ... by using similar logic as used in pthread_detach(). Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
* | | Merge "bionic: ftell() returns a long, not an int"David Turner2010-03-181-1/+1
|\ \ \
| * | | bionic: ftell() returns a long, not an intAndré Goddard Rosa2010-02-051-1/+1
| |/ / | | | | | | | | | Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
* | | Added support for dladdr()Matt Fischer2010-03-171-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | dladdr() is a GNU extension function, which allows the caller to retrieve symbol information for a specified memory address. It is useful for things like generating backtrace information at runtime. Change-Id: I3a1def1a6c9c666d93e1e97b7d260dfa5b9b79a9
* | | Merge "x86 syscall system call implementation"David Turner2010-03-172-0/+53
|\ \ \
| * | | x86 syscall system call implementationBruce Beare2010-03-042-0/+53
| | | |
* | | | Merge "Fix pread()/pwrite() stubs"David Turner2010-03-172-4/+4
|\ \ \ \
| * | | | Fix pread()/pwrite() stubsMatt Fischer2010-02-122-4/+4
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | On ARM EABI, 64-bit function parameters must be aligned to an even/odd register pair. The weird way these stubs were written (using separate lo/hi parameters) prevented this alignment from being enforced by the compiler.
* | | | Merge "bionic: remove unneeded variable from chk_realloc()"David Turner2010-03-161-2/+3
|\ \ \ \
| * | | | bionic: remove unneeded variable from chk_realloc()André Goddard Rosa2010-02-051-2/+3
| |/ / / | | | | | | | | | | | | | | | | | | | | ... and simplify the generated code. Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
* | | | Merge "bionic: equalize the <unknown> program name between ssp.c and ↵David Turner2010-03-161-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | libc_init_common.c"
| * | | | bionic: equalize the <unknown> program name between ssp.c and libc_init_common.cAndré Goddard Rosa2010-02-051-2/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | ... for the consistency sake. Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
* | | | Merge "improve readability of string: fix indentation and remove trailing ↵David Turner2010-03-1613-18/+17
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/| spaces"
| * | 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>
| * merge from eclairJean-Baptiste Queru2009-11-1541-3082/+4903
| |\
| | * eclair snapshotJean-Baptiste Queru2009-11-1244-3081/+4990
| | |
* | | am ee424e23: bionic: update processed kernel header a1026.hIliyan Malchev2010-02-091-1/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'ee424e23c10c051ee4760177c85f6003ff20108c' into eclair-plus-aosp * commit 'ee424e23c10c051ee4760177c85f6003ff20108c': bionic: update processed kernel header a1026.h
| * | | bionic: update processed kernel header a1026.handroid-cts-2.1_r5android-cts-2.1_r4android-cts-2.1_r3android-cts-2.1_r2Iliyan Malchev2010-02-081-1/+2
| | | | | | | | | | | | | | | | Signed-off-by: Iliyan Malchev <malchev@google.com>
* | | | am d0996bb4: bionic: update processed kernel header tpa2018d1.hIliyan Malchev2010-02-021-0/+8
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit 'd0996bb4cd6b6d0fa7c643a809f01e33adc2638d' into eclair-plus-aosp * commit 'd0996bb4cd6b6d0fa7c643a809f01e33adc2638d': bionic: update processed kernel header tpa2018d1.h
| * | | bionic: update processed kernel header tpa2018d1.handroid-2.1_r2.1p2android-2.1_r2.1pIliyan Malchev2010-02-021-0/+8
| | | | | | | | | | | | | | | | Signed-off-by: Iliyan Malchev <malchev@google.com>
* | | | am 276313ec: bionic: add processed kernel headers a1026.h and tpa2018d1.hIliyan Malchev2010-02-022-0/+91
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '276313ec18c18a07e867dffe568a377583cfd905' into eclair-plus-aosp * commit '276313ec18c18a07e867dffe568a377583cfd905': bionic: add processed kernel headers a1026.h and tpa2018d1.h
| * | | bionic: add processed kernel headers a1026.h and tpa2018d1.hIliyan Malchev2010-02-022-0/+91
| | | | | | | | | | | | | | | | Signed-off-by: Iliyan Malchev <malchev@google.com>
* | | | am 5f53a182: Revert "Add qsort_r() implementation to the C library."Mathias Agopian2009-12-034-76/+37
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '5f53a18204ec991f5a77872806eeaa185936aa8c' into eclair-plus-aosp * 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-034-76/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.