Make UEFI boot-platform build again
[haiku.git] / src / libs / posix_error_mapper / pthread_specific.cpp
blobc496260e659bc76865e135ccfd66084d2698e0f4
1 /*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
6 #include <pthread.h>
8 #include "posix_error_mapper.h"
11 WRAPPER_FUNCTION(int, pthread_key_create,
12 (pthread_key_t *key, void (*destructorFunc)(void*)),
13 return B_TO_POSITIVE_ERROR(sReal_pthread_key_create(key, destructorFunc));
17 WRAPPER_FUNCTION(int, pthread_key_delete, (pthread_key_t key),
18 return B_TO_POSITIVE_ERROR(sReal_pthread_key_delete(key));
22 WRAPPER_FUNCTION(int, pthread_setspecific,
23 (pthread_key_t key, const void *value),
24 return B_TO_POSITIVE_ERROR(sReal_pthread_setspecific(key, value));