summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
* Fix the pthread_setname_np test.Elliott Hughes2013-02-1512-110/+90
| | | | | | | | | | | | | | | Fix the pthread_setname_np test to take into account that emulator kernels are so old that they don't support setting the name of other threads. The CLONE_DETACHED thread is obsolete since 2.5 kernels. Rename kernel_id to tid. Fix the signature of __pthread_clone. Clean up the clone and pthread_setname_np implementations slightly. Change-Id: I16c2ff8845b67530544bbda9aa6618058603066d
* Merge "Simplify __stack_chk_fail, and fix it so we get debuggerd stack traces."Elliott Hughes2013-02-145-49/+44
|\
| * Simplify __stack_chk_fail, and fix it so we get debuggerd stack traces.Elliott Hughes2013-02-145-49/+44
| | | | | | | | | | Bug: 2487269 Change-Id: Iec5e470fc22cd9108404f634a9d4baa2c7b7f58f
* | bionic: Add securebits.hNick Kralevich2013-02-141-0/+41
|/ | | | Change-Id: I2031796b9be117558b80246498b29736492cf269
* Turn on -Werror for ssp.cpp.Elliott Hughes2013-02-141-1/+1
| | | | | | | | libc_bionic.a is already compiled -Werror, but this one file gets compiled into its own library because it needs to be compiled with -fno-stack-protector. Change-Id: I273c535ab5c73ccaccbcf793fda1f788a2589abe
* fix compiler warning.Nick Kralevich2013-02-141-1/+1
| | | | | | bionic/libc/bionic/ssp.cpp:41:31: warning: converting to non-pointer type 'uintptr_t {aka unsigned int}' from NULL [-Wconversion-null] Change-Id: Id154ed4a99520cca64ffd3dbe4d743db6e2da28a
* ffs was not being built for x86.Elliott Hughes2013-02-132-25/+26
| | | | Change-Id: I53e92273664a4d0a13536c2fa1aeb87e1f3cf4e8
* Add a bunch more missing ENDs to assembler routines.Elliott Hughes2013-02-1318-12/+28
| | | | | | This isn't everything; I've missed out those x86 files that are Change-Id: Idb7bb1a68796d6c0b70ea2b5c3300e49da6c62d2
* Everyone has CLZ.Elliott Hughes2013-02-131-44/+0
| | | | | | Even armv5 had CLZ. Change-Id: I51bc8d1166d09940fd0d3f4c7717edf26977082c
* Update getnameinfo.c, remove dead code, and fix error reporting.Elliott Hughes2013-02-134-456/+59
| | | | | | | Also add a unit test for the salen size checking. Bug: 1889275 Change-Id: I8ec4107df9e2e9a8571e8915525249c6e44b98ad
* Merge "Everyone has a TLS register."Elliott Hughes2013-02-132-75/+20
|\
| * Everyone has a TLS register.Elliott Hughes2013-02-122-75/+20
| | | | | | | | Change-Id: Id7cdf67087aa7d5074c9c59b7e595bc391d9f146
* | Fix __pthread_clone and __bionic_clone error handling on x86.Elliott Hughes2013-02-121-14/+26
|/ | | | | Bug: 3461078 Change-Id: I93c151e27411211dd32717f206745c62c08c21ee
* Merge "Use ENTRY/END in custom x86 assembler too."Elliott Hughes2013-02-136-68/+34
|\
| * Use ENTRY/END in custom x86 assembler too.Elliott Hughes2013-02-116-68/+34
| | | | | | | | Change-Id: Ic2e482e5daff29c65d3b2ab0b2111c996bbc6226
* | Clean up pthread_create.Elliott Hughes2013-02-123-232/+235
| | | | | | | | | | Bug: 3461078 Change-Id: I082122a86d7692cd58f4145539241be026258ee0
* | Simplify pthread_create, using more public API.Elliott Hughes2013-02-124-41/+31
| | | | | | | | Change-Id: I08e65ba88ed01436223e4e528631c9e41ec0e7f4
* | Really set errno if __pthread_clone fails.Elliott Hughes2013-02-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | If r0 == 0, we're the child. If r0 > 0, we're the parent. Otherwise set errno. The __bionic_clone code I copy & pasted was wrong. This patch fixes both. Bug: 3461078 Change-Id: Ibb7d6cc7e54e666841f2f0dc59a141a0b31982e4
* | Merge "Revert "Revert "More pthreads cleanup."""Elliott Hughes2013-02-1316-291/+352
|\ \
| * | Revert "Revert "More pthreads cleanup.""Elliott Hughes2013-02-1216-291/+352
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 6f94de3ca49e4ea147b1c59e5818fa175846518f (Doesn't try to increase the number of TLS slots; that leads to an inability to boot. Adds more tests.) Change-Id: Ia7d25ba3995219ed6e686463dbba80c95cc831ca
* | | Merge "add factory property file definition"Dima Zavin2013-02-121-0/+1
|\ \ \
| * | | add factory property file definitionAndrew Boie2013-01-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This property file is used for properties which are set at device provisioning time or in the factory. They are never touched by a software update or factory data reset and typically contain data specific to the particular unit. Change-Id: I2e7c2fe62cb684cb2449eea917c42b19462e89a5 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
* | | | am fcaf4e9f: Merge "Revert "More pthreads cleanup.""Elliott Hughes2013-02-1116-350/+291
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | # Via Gerrit Code Review * commit 'fcaf4e9f9b735e053469c7ecbf63584e10fd67a7': Revert "More pthreads cleanup."
| * | | Merge "Revert "More pthreads cleanup.""Elliott Hughes2013-02-1216-350/+291
| |\ \ \
| | * | | Revert "More pthreads cleanup."Elliott Hughes2013-02-1216-350/+291
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 2a1bb4e64677b9abbc17173c79768ed494565047 Change-Id: Ia443d0748015c8e9fc3121e40e68258616767b51
* | | | | am 85f491f9: Merge "More pthreads cleanup."Elliott Hughes2013-02-1116-291/+350
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | # Via Elliott Hughes (1) and Gerrit Code Review (1) * commit '85f491f96da3b79d0d7cc5368bc1f649e1a82340': More pthreads cleanup.
| * | | | Merge "More pthreads cleanup."Elliott Hughes2013-02-1216-291/+350
| |\ \ \ \ | | |/ / /
| | * | | More pthreads cleanup.Elliott Hughes2013-02-1116-291/+350
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | POSIX says pthread_create returns EAGAIN, not ENOMEM. Also pull pthread_attr_t functions into their own file. Also pull pthread_setname_np into its own file. Also remove unnecessary #includes from pthread_key.cpp. Also account for those pthread keys used internally by bionic, so they don't count against the number of keys available to user code. (They do with glibc, but glibc's limit is the much more generous 1024.) Also factor out the common errno-restoring idiom to reduce gotos. Bug: 6702535 Change-Id: I555e66efffcf2c1b5a2873569e91489156efca42
* | | | | am 83bf28e6: Merge "Fix MIPS build."Elliott Hughes2013-02-111-1/+1
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | # Via Elliott Hughes (1) and Gerrit Code Review (1) * commit '83bf28e6a38dbf28707147b50d29e81f4b555046': Fix MIPS build.
| * | | | Merge "Fix MIPS build."Elliott Hughes2013-02-121-1/+1
| |\ \ \ \ | | |_|_|/ | |/| | |
| | * | | Fix MIPS build.Elliott Hughes2013-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I4863f21f3c2fd597ea36cb7096fc72db808643a3
* | | | | am c56be54a: Merge "Use ENTRY/END in ARM __get_sp."Elliott Hughes2013-02-111-5/+5
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | # Via Elliott Hughes (1) and Gerrit Code Review (1) * commit 'c56be54a18eff7e1c35c9a19cfc8b84a80780b73': Use ENTRY/END in ARM __get_sp.
| * | | | Use ENTRY/END in ARM __get_sp.Elliott Hughes2013-02-111-5/+5
| |/ / / | | | | | | | | | | | | Change-Id: If2f159b266f5fa4ad9d188a17d4cd318b605e446
* | | | am cae7b2cf: Merge "Fix __pthread_clone on ARM to set errno on failure."Elliott Hughes2013-02-112-31/+23
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | # Via Elliott Hughes (1) and Gerrit Code Review (1) * commit 'cae7b2cfb509e7d5d10a8085b1ec319daaef768f': Fix __pthread_clone on ARM to set errno on failure.
| * | | Fix __pthread_clone on ARM to set errno on failure.Elliott Hughes2013-02-112-31/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MIPS and x86 appear to have been correct already. (Also fix unit tests that ASSERT_EQ with errno so that the arguments are in the retarded junit order.) Bug: 3461078 Change-Id: I2418ea98927b56e15b4ba9cfec97f5e7094c6291
* | | | am 1fea0f25: Merge "Clean up ARM assembler files to use ENTRY/END."Elliott Hughes2013-02-114-101/+24
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | # Via Elliott Hughes (1) and Gerrit Code Review (1) * commit '1fea0f258a45d918fe5ae8e9769f45c0348bd095': Clean up ARM assembler files to use ENTRY/END.
| * | | Clean up ARM assembler files to use ENTRY/END.Elliott Hughes2013-02-114-101/+24
| |/ / | | | | | | | | | | | | | | | We also don't need legacy syscall support (non-"swi 0"). Change-Id: Id1012e8ca18bf13f3f4e42200f39ba0e2e632cbf
* | | am 2d3e7233: Merge "Revert "Revert "Pull the pthread_key_t functions out of ↵Elliott Hughes2013-02-117-324/+318
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | pthread.c.""" # Via Elliott Hughes (1) and Gerrit Code Review (1) * commit '2d3e72336e76180fb00822386da4f14203d117ce': Revert "Revert "Pull the pthread_key_t functions out of pthread.c.""
| * | Revert "Revert "Pull the pthread_key_t functions out of pthread.c.""Elliott Hughes2013-02-117-324/+318
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 6260553d48f6fd87ca220270bea8bafdde5726ec (Removing the accidental libm/Android.mk change.) Change-Id: I6cddd9857c31facc05636e8221505b3d2344cb75
* | | am 8397cdba: Merge "Revert "Pull the pthread_key_t functions out of pthread.c.""Elliott Hughes2013-02-117-318/+324
|\ \ \ | |/ / | | | | | | | | | | | | # Via Gerrit Code Review * commit '8397cdba9424febeaed4068829a5b0174ee1138c': Revert "Pull the pthread_key_t functions out of pthread.c."
| * | Revert "Pull the pthread_key_t functions out of pthread.c."Elliott Hughes2013-02-117-318/+324
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit ad59322ae432d11ff36dcf046016af8cfe45fbe4 somehow my unfinished libm/Android.mk change got into here. Change-Id: I46be626c5269d60fb1ced9862f2ebaa380b4e0af
* | | am 09e89c3c: Merge "Pull the pthread_key_t functions out of pthread.c."Elliott Hughes2013-02-117-324/+318
|\ \ \ | |/ / | | | | | | | | | | | | # Via Elliott Hughes (1) and Gerrit Code Review (1) * commit '09e89c3ced51d846e13c2508fbb6812bb61475cd': Pull the pthread_key_t functions out of pthread.c.
| * | Pull the pthread_key_t functions out of pthread.c.Elliott Hughes2013-02-117-324/+318
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was originally motivated by noticing that we were setting the wrong bits for the well-known tls entries. That was a harmless bug because none of the well-known tls entries has a destructor, but it's best not to leave land mines lying around. Also add some missing POSIX constants, a new test, and fix pthread_key_create's return value when we hit the limit. Change-Id: Ife26ea2f4b40865308e8410ec803b20bcc3e0ed1
* | | am 9a9bb243: Merge "Switch to using AT_RANDOM for the stack guards."Elliott Hughes2013-02-086-50/+20
|\ \ \ | |/ / | | | | | | | | | | | | # Via Elliott Hughes (1) and Gerrit Code Review (1) * commit '9a9bb243b50be5e3910b8edad72327bc216e72d0': Switch to using AT_RANDOM for the stack guards.
| * | Merge "Switch to using AT_RANDOM for the stack guards."Elliott Hughes2013-02-086-50/+20
| |\ \
| | * | Switch to using AT_RANDOM for the stack guards.Elliott Hughes2013-02-086-50/+20
| | | | | | | | | | | | | | | | | | | | Bug: 7959813 Change-Id: I8db4b8912ba649bfe668c6f22aa44690ddd401a2
* | | | am fa75fce5: Merge "update xattr.h"Nick Kralevich2013-02-071-10/+26
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | # Via Gerrit Code Review (1) and Nick Kralevich (1) * commit 'fa75fce56641255a571b8b472f010863c3095b70': update xattr.h
| * | | update xattr.hNick Kralevich2013-02-071-10/+26
| | | | | | | | | | | | | | | | Change-Id: Ibd91167ba56e2692359b92fe3108da271f0c2e38
* | | | am 964886af: Merge "Remove dead code from gensyscalls.py."Elliott Hughes2013-02-071-117/+13
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | # Via Elliott Hughes (1) and Gerrit Code Review (1) * commit '964886afa339959aedad1c09af738df4ffa4091d': Remove dead code from gensyscalls.py.
| * | | Remove dead code from gensyscalls.py.Elliott Hughes2013-02-071-117/+13
| |/ / | | | | | | | | | Change-Id: I0df69f8fd990f829ccbfcd5123c17b523d5a4d45