summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | 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
* | | | merge from open-source masterThe Android Open Source Project2010-04-081-3/+3
|\ \ \ \ | |/ / / | | | | | | | | Change-Id: If77618a329fc7b497c44c2585e644bc50e7e1406
| * | | 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>
* | | | | am 91638721: kernel_headers: Update rtnetlink/pkt_sched headers for 2.6.32San Mehat2010-04-0611-283/+678
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '9163872132a3e92f986b1d684badb1dd4482ad8e' into froyo-plus-aosp * commit '9163872132a3e92f986b1d684badb1dd4482ad8e': kernel_headers: Update rtnetlink/pkt_sched headers for 2.6.32
| * | | | | kernel_headers: Update rtnetlink/pkt_sched headers for 2.6.32android-sdk-tools_r6android-sdk-2.2_r2android-sdk-2.2_r1android-cts-2.2_r7android-cts-2.2_r6android-cts-2.2_r5android-cts-2.2_r4android-cts-2.2_r3android-cts-2.2_r2android-cts-2.2_r1android-2.2_r1.3android-2.2_r1.2android-2.2_r1.1android-2.2_r1android-2.2.2_r1android-2.2.1_r2android-2.2.1_r1San Mehat2010-04-0611-283/+678
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For: For http://b/issue?id=2576057 Change-Id: I553ca14974aaec4434e384979e0bb7007dcf6033 Signed-off-by: San Mehat <san@google.com>
* | | | | | merge from open-source masterThe Android Open Source Project2010-03-311-2/+2
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | Change-Id: I950e9aca87cbb0c35099b1d53cff6378bd0f26f4
| * | | | | 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 from open-source masterThe Android Open Source Project2010-03-3116-13/+7365
|\ \ \ \ \ | |/ / / / | | | | | | | | | | Change-Id: I076e0df8656fdf58c229cc9a168cd6d8e16b6d8e
| * | | | 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
* | | | | | merge from open-source masterThe Android Open Source Project2010-03-291-3/+16
|\ \ \ \ \ \ | |/ / / / / | | | | / / | |_|_|/ / |/| | | | Change-Id: I96d2cd063f084fd17116bf7ee08fa7109a3c1ceb
| * | | | Android hack for size_tBruce Beare2010-03-261-3/+16
| |/ / / | | | | | | | | | | | | Change-Id: I3c967fca60f542459dc17be84da47b3b6a26242b
* | | | Fix comparison of IPv6 prefixesKenny Root2010-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Typo assigned prefixlen1 twice instead of to the two different variables for comparison and difference computation. Change-Id: I6631b8269ca6aae264c8d7d414127b756838df96
* | | | libc: kernel: update msm_kgsl.hDima Zavin2010-03-241-1/+6
| | | | | | | | | | | | | | | | | | | | Change-Id: I8cd5a186071892bdc2b2b29061dd6c1fd927c0f5 Signed-off-by: Dima Zavin <dima@android.com>
* | | | Fix typo that broke recursive mutexes implementation.David 'Digit' Turner2010-03-231-1/+1
| | | | | | | | | | | | | | | | Change-Id: I832901604b487c6a50304c311b5ba135e153530d
* | | | pthread: Use private futexes by default in condition variablesDavid 'Digit' Turner2010-03-222-27/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that the system properly uses shared condvars when needed, we can enable the use of private futexes for them too. Change-Id: Icf8351fc0a2309f764cba45c65bc3af047720cdf
* | | | merge from open-source masterThe Android Open Source Project2010-03-2222-32/+96
|\ \ \ \ | |/ / / | | | | | | | | Change-Id: I70266ee8c520b216773f267e46c8273d2334c31d
| * | | 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
| | | |
* | | | Merge "Fix strtod security bug."David 'Digit' Turner2010-03-221-28/+142
|\ \ \ \
| * | | | Fix strtod security bug.David 'Digit' Turner2010-03-091-28/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To avoid introducing NULL checks everytime a Bigint computation is performed, introduce a special value (BIGINT_INVALID) and only check for it when absolutely needed (which means when the code needs to access the Bigint's internal structure fields). Change-Id: Ie3954523b0985b6a8cb62340802d8dcf63cbf16f
* | | | | Use private futexes for pthread_mutex_t.David 'Digit' Turner2010-03-186-167/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This does not change the implementation of conditional variables since we're waiting for other system components to properly use pthread_condattr_init/setpshared before that. Also remove an obsolete x86 source file. Change-Id: Ia3e3fbac35b87a534fb04d4381c3c66b975bc8f7
* | | | | Add pthread_condattr_init/destroy/setpshared/getpsharedDavid 'Digit' Turner2010-03-183-4/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that this does not change the implementation of conditional variables which still use shared futexes, independent on the flags being selected. This will be fixed in a later patch, once our system is modified to use pthread_condattr_setpshared(attr, PTHREAD_PROCESS_SHARED) properly. Change-Id: I935de50964cd41f97a13dbfd6626d3407b0406c3
* | | | | Fix indentation in pthread mutex implementation.David 'Digit' Turner2010-03-171-207/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is preliminary work to simplify later changes to support private futexes. Change-Id: I06750936a93747a5e3f5a10228cbdc29e39c528c
* | | | | Revert "bionic: pthread: use private futexes by default for mutexes and ↵Fabrice Di Meglio2010-03-116-611/+298
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | condvars" This reverts commit ba9c6f0989ae94778ba2b9f597adc827c9dc81e8.
* | | | | bionic: pthread: use private futexes by default for mutexes and condvarsDavid 'Digit' Turner2010-03-116-298/+611
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Private futexes are a recent kernel addition: faster futexes that cannot be shared between processes. This patch uses them by default, unless the PROCESS_SHARED attribute flag is used when creating a mutex and/or conditional variable. Also introduces pthread_condattr_init/destroy/setpshared/getpshared. Change-Id: I3a0e2116f467072b046524cb5babc00e41057a53
* | | | | Merge "Only use NEON memcpy if __ARM_NEON__ is defined"Colin Cross2010-03-101-1/+1
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Only use NEON memcpy if __ARM_NEON__ is definedColin Cross2010-03-091-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I32e6b9385d46efeec15dee8e395a82eef24ba3ea
* | | | | Fix spurious DNS lookups in the C library.David 'Digit' Turner2010-03-085-5/+19
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was that the 'defdname' field of res_state structure was not properly initialized in __res_vinit(). This field is used to store the default domain name, which is normally build from calling gethostname() (see line 549 of res_init.c). Unfortunately, in the typical Android case, gethostname() returns an error (the hostname is configured) and a random stack string is used later to build the DNS search list (see lines 556+ in res_init.c) For the sake of illustration, let's say the search list is set to a random value like 'xWLK'. The end result is that when trying to result an unknown domain name (e.g. 'www.ptn'), the query fails then the resolver tries to make a new query with the DNS search list path(s) appended (e.g. 'www.ptn.xWLK'). The patch simply initializes 'defdname' to an empty string to avoid this when the net.dns.search system property is not set. Also contains whitespace/formatting fixes