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_rwlockattr_init
,
12 (pthread_rwlockattr_t
*attr
),
13 return B_TO_POSITIVE_ERROR(sReal_pthread_rwlockattr_init(attr
));
17 WRAPPER_FUNCTION(int, pthread_rwlockattr_destroy
,
18 (pthread_rwlockattr_t
*attr
),
19 return B_TO_POSITIVE_ERROR(sReal_pthread_rwlockattr_destroy(attr
));
23 WRAPPER_FUNCTION(int, pthread_rwlockattr_getpshared
,
24 (const pthread_rwlockattr_t
*attr
, int *shared
),
25 return B_TO_POSITIVE_ERROR(sReal_pthread_rwlockattr_getpshared(attr
,
30 WRAPPER_FUNCTION(int, pthread_rwlockattr_setpshared
,
31 (pthread_rwlockattr_t
*attr
, int shared
),
32 return B_TO_POSITIVE_ERROR(sReal_pthread_rwlockattr_setpshared(attr
,