2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
8 #include "posix_error_mapper.h"
11 WRAPPER_FUNCTION(int, pthread_rwlock_init
,
12 (pthread_rwlock_t
*lock
, const pthread_rwlockattr_t
*attr
),
13 return B_TO_POSITIVE_ERROR(sReal_pthread_rwlock_init(lock
, attr
));
17 WRAPPER_FUNCTION(int, pthread_rwlock_destroy
, (pthread_rwlock_t
*lock
),
18 return B_TO_POSITIVE_ERROR(sReal_pthread_rwlock_destroy(lock
));
22 WRAPPER_FUNCTION(int, pthread_rwlock_rdlock
, (pthread_rwlock_t
*lock
),
23 return B_TO_POSITIVE_ERROR(sReal_pthread_rwlock_rdlock(lock
));
27 WRAPPER_FUNCTION(int, pthread_rwlock_tryrdlock
, (pthread_rwlock_t
*lock
),
28 return B_TO_POSITIVE_ERROR(sReal_pthread_rwlock_tryrdlock(lock
));
32 WRAPPER_FUNCTION(int, pthread_rwlock_timedrdlock
,
33 (pthread_rwlock_t
*lock
, const struct timespec
*timeout
),
34 return B_TO_POSITIVE_ERROR(sReal_pthread_rwlock_timedrdlock(lock
, timeout
));
38 WRAPPER_FUNCTION(int, pthread_rwlock_wrlock
, (pthread_rwlock_t
*lock
),
39 return B_TO_POSITIVE_ERROR(sReal_pthread_rwlock_wrlock(lock
));
43 WRAPPER_FUNCTION(int, pthread_rwlock_trywrlock
, (pthread_rwlock_t
*lock
),
44 return B_TO_POSITIVE_ERROR(sReal_pthread_rwlock_trywrlock(lock
));
48 WRAPPER_FUNCTION(int, pthread_rwlock_timedwrlock
,
49 (pthread_rwlock_t
*lock
, const struct timespec
*timeout
),
50 return B_TO_POSITIVE_ERROR(sReal_pthread_rwlock_timedwrlock(lock
, timeout
));
54 WRAPPER_FUNCTION(int, pthread_rwlock_unlock
, (pthread_rwlock_t
*lock
),
55 return B_TO_POSITIVE_ERROR(sReal_pthread_rwlock_unlock(lock
));