summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
* Implemented pthread_atfork()android-sdk-tools_r7android-adt-0.9.8Matt Fischer2010-07-236-1/+142
| | | | Change-Id: Ie6c0bf593315d3507b3c4a6c8903a74a1fa053db
* Add kernel header file ipv6_route.h in bionic.Banavathu, Srinivas Naik2010-07-161-0/+55
| | | | | | The header file is needed to add route to an IPv6 host from user space Change-Id: I25c8a8d8e48013f127542199bc027f976b9672c1
* Merge "Fix undefined reference to dl_iterate_phdr for x86"Jean-Baptiste Queru2010-07-161-0/+1
|\
| * Fix undefined reference to dl_iterate_phdr for x86Bruce Beare2010-07-081-0/+1
| | | | | | | | | | Change-Id: I22410b27939e8f54da932d7a1104102550c4685f Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
* | Merge "Change-Id: I68cc462aeb2460345a53bdb9941ce4bfc10456fb bionic: fix ↵Jean-Baptiste Queru2010-07-083-6/+6
|\ \ | |/ |/| | | clearenv() compiler warning and related comment typos"
| * Change-Id: I68cc462aeb2460345a53bdb9941ce4bfc10456fbChris Peterson2010-06-273-6/+6
| | | | | | | | bionic: fix clearenv() compiler warning and related comment typos
* | Fix missing NLBruce Beare2010-07-081-1/+1
| | | | | | | | | | Change-Id: Ic210fe9f740b9a8235a66d479ad4eddc869998bb Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
* | Merge "Regenerate linux/netfilter_ipv6/ip6_tables.h."Jean-Baptiste Queru2010-07-022-0/+10
|\ \
| * | Regenerate linux/netfilter_ipv6/ip6_tables.h.Vilmos Nebehaj2010-06-282-0/+10
| |/ | | | | | | | | | | | | Add ip6t_get_target() to kernel_known_generic_statics in libc/kernel/tools/defaults.py to be able to build ip6tables. Change-Id: Iadb885db3faa85b2d0070dc2e0ac493af6e62bb6
* | Allow dlclose() to properly call static C++ destructors.David 'Digit' Turner2010-07-0112-38/+186
|/ | | | | | | | | | | | | | | | | | | | | | | | 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) NOTE: The NDK will need to be modified to enable this feature in the shared libraries that are generated through it. Change-Id: I99cd801375bbaef0581175893d1aa0943211b9bc
* merge from open-source masterThe Android Open Source Project2010-06-181-1/+1
|\ | | | | | | Change-Id: I408b5705b18d9e93e66bfbfeec0e3baefd618dec
| * Merge "Fix for incorrect reply from sysconf(_SC_NPROCESSORS_ONLN)"David Turner2010-06-161-1/+1
| |\
| | * Fix for incorrect reply from sysconf(_SC_NPROCESSORS_ONLN)Mikael Ohlson2010-06-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When calling sysconf with _SC_NPROCESSORS_ONLN, the value one (1) was returned on systems with two or more cores, since '/proc/stat' was incorrectly parsed. The function line_parser_getc (LineParser* p) read 128 characters of input for each invocation. The proper and probably aimed for behavior is to read 128 characters at the first call, then for each subsequent call only return the next buffered character until a new read is needed and only then read another 128 characters. Due to a flipped comparison between the two variables in_len and in_pos that track the number of bytes of data read into the input buffer and how much of it has been parsed, a new group of 128 characters were read at almost every call to line_parser_getc, overwriting the still unhandled bytes from the previous call to read. This caused the lines to be read to be sampled more than parsed. Change-Id: I93eec3c8c9b9f19ef798748579d0977111b5c0bb Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
* | | merge from open-source masterThe Android Open Source Project2010-06-144-0/+148
|\ \ \ | |/ / | | | | | | Change-Id: I63e2bfcf87d190fb063c5b2457ebe6b0d50ddd26
| * | added missing ether_aton and ether_ntoaSzymon Jakubczak2010-06-114-0/+148
| |/ | | | | | | Change-Id: I32ee448abde4d5693d393030ed77ddc6d2ad1dfc
* | merge from open-source masterThe Android Open Source Project2010-06-071-0/+17
|\ \ | |/ | | | | Change-Id: I1cc2f1123a296b05c4faaa419374376395e05936
| * Merge "Add missing termios defns to bring on par with ARM"David Turner2010-06-051-0/+17
| |\
| | * Add missing termios defns to bring on par with ARMBruce Beare2010-06-041-0/+17
| | | | | | | | | | | | Change-Id: Ied1871aa0a2e33473b89a4ac6d54e3c44be7f457
* | | merge from open-source masterThe Android Open Source Project2010-06-032-0/+56
|\ \ \ | |/ / | | | | | | Change-Id: Ib7fc9c6f79f9b13e2175da137005d8968ea85eaf
| * | Merge "pthread: introduce pthread_setname_np() as a mean to give names to ↵David Turner2010-06-033-0/+62
| |\ \ | | |/ | |/| | | | threads"
| | * pthread: introduce pthread_setname_np() as a mean to give names to threadsAndré Goddard Rosa2010-05-193-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... so that each cloned process at the kernel level can be named independently. Tools like 'top' can display the CPU/memory statistics for each process's thread if "Show Threads" mode is on. With this function in place, we can convert dalvik/Thread.c setThreadName() function over this function. This feature ought to be provided by the underlying C library and not coded directly in Dalvik. Change-Id: Ifa997665dbaa114e0b126f8c667708be9a4137fd Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
* | | merge from open-source masterThe Android Open Source Project2010-05-1715-57/+56
|\ \ \ | |/ / | | | | | | Change-Id: I5804d8850f2d4fb7b5d5c53d51e153f7ced9646e
| * | 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 from open-source masterThe Android Open Source Project2010-05-141-0/+1
|\ \ | |/ | | | | Change-Id: I9c926a3cd680a96ece026cdec71c6e0fb0b7ad7c
| * 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
| | |
* | | merge from open-source masterThe Android Open Source Project2010-05-138-6/+50
|\ \ \ | |/ / | | | | | | Change-Id: I2be62bce462ee53fe9519f433523bd7a44a73d40
| * | 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
* | | merge from open-source masterThe Android Open Source Project2010-05-122-7/+7
|\ \ \ | |/ / | | | | | | Change-Id: Iecfd2bd3069f70bbe508042cc249fcf7ff24800d
| * | 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 from open-source masterThe Android Open Source Project2010-05-03189-232/+7416
|\ \ \ \ | |/ / / | | | | | | | | Change-Id: If02d33af51017dbd85e91c79ac2e848eda6cf253
| * | | 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
* | | | 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