summaryrefslogtreecommitdiffstats
path: root/libc/include/stdlib.h
Commit message (Collapse)AuthorAgeFilesLines
* libc: tag missing functions in system headers.David 'Digit' Turner2010-10-091-1/+7
| | | | | | | | | This matches recent changes in the NDK header. We enclose missing functions in #if 0 .. #endif blocks with a clear "MISSING" in comments in order to locate them later. Change-Id: I87b3a62e777897e75c9243360fb0a82bcc53d9fb
* Remove compiler warnings when building Bionic.David 'Digit' Turner2010-06-221-0/+2
| | | | | | | | 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
* 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 ptsname_r(3) return type to match glibcColin Cross2010-01-121-1/+1
| | | | | | | | The gHardy man pages specify the return type of ptsname_r to be char*, but the return value to be 0 on success, negative on error and the gHardy stdlib.h defines extern int ptsname_r(...). Busybox telnetd fails to run successfully without this change.
* 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.
* 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.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+177
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-177/+0
|
* auto import from //branches/cupcake/...@126645The Android Open Source Project2009-01-151-0/+7
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-0/+5
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-0/+26
|
* Initial Contributionandroid-1.0The Android Open Source Project2008-10-211-0/+139