[PATCH] Fix NPTL __libc_getspecific
Jakub Jelinek
jakub@redhat.com
Thu Jan 30 16:26:00 GMT 2003
Hi!
pthread_getspecific returns void *, not int.
2003-01-30 Jakub Jelinek <jakub@redhat.com>
* sysdeps/pthread/pthread-functions.h (struct pthread_functions):
Fix return type of ptr___pthread_getspecific.
--- libc/nptl/sysdeps/pthread/pthread-functions.h.jj3 2003-01-05 05:29:31.000000000 -0500
+++ libc/nptl/sysdeps/pthread/pthread-functions.h 2003-01-30 08:15:03.000000000 -0500
@@ -77,7 +77,7 @@ struct pthread_functions
int (*ptr___pthread_rwlock_wrlock) (pthread_rwlock_t *);
int (*ptr___pthread_rwlock_unlock) (pthread_rwlock_t *);
int (*ptr___pthread_key_create) (pthread_key_t *, void (*) (void *));
- int (*ptr___pthread_getspecific) (pthread_key_t);
+ void *(*ptr___pthread_getspecific) (pthread_key_t);
int (*ptr___pthread_setspecific) (pthread_key_t, const void *);
void (*ptr__pthread_cleanup_push_defer) (struct _pthread_cleanup_buffer *,
void (*) (void *), void *);
Jakub
More information about the Libc-hacker
mailing list