libc - pthread_key_create() adjustments
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 2 Jun 2023 23:56:36 +0000 (16:56 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 8 Jun 2023 17:35:03 +0000 (10:35 -0700)
commit171835807871f68c36f75ff84e1d6f7df4683df0
tree5cac366af3a8aa37f51c30e3b67118556baa79b4
parent917508cdbe01148ca55a70f784d29bf1d57b261d
libc - pthread_key_create() adjustments

* Have libc's stub conditionals ignore any error return from
  pthread_key_create() stubs, in case we decide to change the
  stub in the future.

* Change pthread_key_create() to start allocating keys at key #1
  to work around issues with third party programs making assumptions
  about the valid key range.
lib/libc/stdlib/dmalloc.c
lib/libc/stdlib/nmalloc.c
lib/libc/upmap/upmap.c
lib/libthread_xu/thread/thr_spec.c