git: libc - pthread_key_create() adjustments

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Jun 8 10:43:45 PDT 2023


commit 171835807871f68c36f75ff84e1d6f7df4683df0
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Jun 2 16:56:36 2023 -0700

    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.

Summary of changes:
 lib/libc/stdlib/dmalloc.c          | 7 ++-----
 lib/libc/stdlib/nmalloc.c          | 7 ++-----
 lib/libc/upmap/upmap.c             | 1 +
 lib/libthread_xu/thread/thr_spec.c | 3 +--
 4 files changed, 6 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/171835807871f68c36f75ff84e1d6f7df4683df0


-- 
DragonFly BSD source repository


More information about the Commits mailing list