| 1191 | } |
| 1192 | |
| 1193 | static void *pthread_getspecific(pthread_key_t key) |
| 1194 | { |
| 1195 | pthread_t t = pthread_self(); |
| 1196 | |
| 1197 | if (key >= t->keymax) return NULL; |
| 1198 | |
| 1199 | return t->keyval[key]; |
| 1200 | |
| 1201 | } |
| 1202 | |
| 1203 | static int pthread_setspecific(pthread_key_t key, const void *value) |
| 1204 | { |
no test coverage detected