commit | ad59322ae432d11ff36dcf046016af8cfe45fbe4 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Feb 08 15:46:37 2013 -0800 |
committer | Elliott Hughes <enh@google.com> | Mon Feb 11 12:00:48 2013 -0800 |
tree | 04ea728ddd656079ca4b9f228b32c371370be947 | |
parent | 9a9bb243b50be5e3910b8edad72327bc216e72d0 [diff] |
Pull the pthread_key_t functions out of pthread.c. 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