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_mutexattr_destroy
,
12 (pthread_mutexattr_t
*mutexAttr
),
13 return B_TO_POSITIVE_ERROR(sReal_pthread_mutexattr_destroy(mutexAttr
));
17 WRAPPER_FUNCTION(int, pthread_mutexattr_getprioceiling
,
18 (const pthread_mutexattr_t
*mutexAttr
, int *_priorityCeiling
),
19 return B_TO_POSITIVE_ERROR(sReal_pthread_mutexattr_getprioceiling(mutexAttr
,
24 WRAPPER_FUNCTION(int, pthread_mutexattr_getprotocol
,
25 (const pthread_mutexattr_t
*mutexAttr
, int *_protocol
),
26 return B_TO_POSITIVE_ERROR(sReal_pthread_mutexattr_getprotocol(mutexAttr
,
31 WRAPPER_FUNCTION(int, pthread_mutexattr_getpshared
,
32 (const pthread_mutexattr_t
*mutexAttr
, int *_processShared
),
33 return B_TO_POSITIVE_ERROR(sReal_pthread_mutexattr_getpshared(mutexAttr
,
38 WRAPPER_FUNCTION(int, pthread_mutexattr_gettype
,
39 (const pthread_mutexattr_t
*mutexAttr
, int *_type
),
40 return B_TO_POSITIVE_ERROR(sReal_pthread_mutexattr_gettype(mutexAttr
,
45 WRAPPER_FUNCTION(int, pthread_mutexattr_init
,
46 (pthread_mutexattr_t
*mutexAttr
),
47 return B_TO_POSITIVE_ERROR(sReal_pthread_mutexattr_init(mutexAttr
));
51 WRAPPER_FUNCTION(int, pthread_mutexattr_setprioceiling
,
52 (pthread_mutexattr_t
*mutexAttr
, int priorityCeiling
),
53 return B_TO_POSITIVE_ERROR(sReal_pthread_mutexattr_setprioceiling(mutexAttr
,
58 WRAPPER_FUNCTION(int, pthread_mutexattr_setprotocol
,
59 (pthread_mutexattr_t
*mutexAttr
, int protocol
),
60 return B_TO_POSITIVE_ERROR(sReal_pthread_mutexattr_setprotocol(mutexAttr
,
65 WRAPPER_FUNCTION(int, pthread_mutexattr_setpshared
,
66 (pthread_mutexattr_t
*mutexAttr
, int processShared
),
67 return B_TO_POSITIVE_ERROR(sReal_pthread_mutexattr_setpshared(mutexAttr
,
72 WRAPPER_FUNCTION(int, pthread_mutexattr_settype
,
73 (pthread_mutexattr_t
*mutexAttr
, int type
),
74 return B_TO_POSITIVE_ERROR(sReal_pthread_mutexattr_settype(mutexAttr
,