summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* libc: Add missing <termio.h> headerDavid 'Digit' Turner2010-06-112-0/+34
| | | | Change-Id: Id4e020ed330b3eabf09324f9b6d44d3a0f336d87
* libc: remove cutils dependenciesDavid 'Digit' Turner2010-06-114-4/+116
| | | | | | | | We simply copy the stuff we need from cutils headers. A future patch will change cutils to include the private <bionic_atomic_inline.h> Change-Id: Ib6fd9a03bc9e337ce867bd606dc94c2b4438480a
* sysconf(): Fix line parser for /proc files.David 'Digit' Turner2010-06-092-1/+4
| | | | Change-Id: I2678010ee95933de19c8a8e3b2fe65ceb9b86400
* Add missing termios defns to bring on par with ARM - DO NOT MERGEBruce Beare2010-06-091-0/+17
| | | | Change-Id: I6e16e7ab117b6df07ef24f092de1511fe1e9e7b1
* Add sincosl() function to bionic. So that sincos optimization can - DO NOT MERGEDavid 'Digit' Turner2010-06-091-0/+2
| | | | | | be enabled. Change-Id: I672cb319689aa4fb3f1f7cd868dda76842bebae9
* Remove a gcc-4.5 compilation warning:Jing Yu2010-06-091-1/+1
| | | | | | | | | | | bionic/libc/include/../include/stdlib.h: In function 'int grantpt(int)': bionic/libc/include/../include/stdlib.h:138:23: warning: parameter '__fd' set but not used [-Wunused-but-set-parameter] By adding __attribute((unused)) to __fd, the warning is gone, and this attribute is compatible with gcc-4.4.0, gcc-4.3.1 gcc-4.2.1. There is no any side effect. Change-Id: I385f0f4da1013ffd1499e391eac9123aafe1f7a5
* Fix setjmp()/longjmp() to save FP registers on ARMv7. - DO NOT MERGEDavid 'Digit' Turner2010-06-095-125/+144
| | | | Change-Id: I3a0c2c05e295ac05ed51a531dabda668be204ca0
* Add missing sysinfo() implementation (already declared in <sys/sysinfo.h>) - ↵David 'Digit' Turner2010-06-0910-0/+83
| | | | | | DO NOT MERGE Change-Id: Iac4eb5911ffe4a7ab72b84df44e907685ac816af
* Use private futexes for semaphores, unless they are initialized with pshared ↵David 'Digit' Turner2010-06-084-56/+147
| | | | | | | != 0. Change-Id: I534e36a7171cd37037ae03b910ba71ea6968286d Note: previously, sem_init() would return an error if pshared != 0.
* resolved conflicts for merge of 7b6e6fa5 to krakenJean-Baptiste Queru2010-06-032-0/+56
|\ | | | | | | Change-Id: I2b9b80a7fa32c56be2b85ff8be0d6e7ac1848afe
| * 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>
* | | | Atomic/SMP update, part 3.Andy McFadden2010-05-284-61/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Atomic/SMP update.Andy McFadden2010-05-202-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added an underscore to _ARM_HAVE_LDREX_STREX to make it match the others. Added __ARM_HAVE_DMB and __ARM_HAVE_LDREXD when appropriate. Fixed some typos. Change-Id: I2f55febcff4aeb7de572a514fb2cd2f820dca27c
* | | | Add pthread_rwlock_t implementation to the C library (DO NOT MERGE)David 'Digit' Turner2010-05-194-1/+391
|/ / / | | | | | | | | | Change-Id: I756d8c26afc37cd7b71117ddbaa02a2cb40fdecb
* | | 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
| * | | | 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