2 * Copyright 2009-2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
9 #include "posix_error_mapper.h"
12 WRAPPER_FUNCTION(int, pthread_attr_destroy
, (pthread_attr_t
*attr
),
13 return B_TO_POSITIVE_ERROR(sReal_pthread_attr_destroy(attr
));
17 WRAPPER_FUNCTION(int, pthread_attr_init
, (pthread_attr_t
*attr
),
18 return B_TO_POSITIVE_ERROR(sReal_pthread_attr_init(attr
));
22 WRAPPER_FUNCTION(int, pthread_attr_getdetachstate
,
23 (const pthread_attr_t
*attr
, int *detachstate
),
24 return B_TO_POSITIVE_ERROR(sReal_pthread_attr_getdetachstate(attr
,
29 WRAPPER_FUNCTION(int, pthread_attr_setdetachstate
,
30 (pthread_attr_t
*attr
, int detachstate
),
31 return B_TO_POSITIVE_ERROR(sReal_pthread_attr_setdetachstate(attr
,
36 WRAPPER_FUNCTION(int, pthread_attr_getstacksize
,
37 (const pthread_attr_t
*attr
, size_t *stacksize
),
38 return B_TO_POSITIVE_ERROR(sReal_pthread_attr_getstacksize(attr
,
43 WRAPPER_FUNCTION(int, pthread_attr_setstacksize
,
44 (pthread_attr_t
*attr
, size_t stacksize
),
45 return B_TO_POSITIVE_ERROR(sReal_pthread_attr_setstacksize(attr
,
50 WRAPPER_FUNCTION(int, pthread_attr_getscope
,
51 (const pthread_attr_t
*attr
, int *contentionScope
),
52 return B_TO_POSITIVE_ERROR(sReal_pthread_attr_getscope(attr
,
57 WRAPPER_FUNCTION(int, pthread_attr_setscope
,
58 (pthread_attr_t
*attr
, int contentionScope
),
59 return B_TO_POSITIVE_ERROR(sReal_pthread_attr_setscope(attr
,
64 WRAPPER_FUNCTION(int, pthread_attr_setschedparam
,
65 (pthread_attr_t
*attr
, const struct sched_param
*param
),
66 return B_TO_POSITIVE_ERROR(sReal_pthread_attr_setschedparam(attr
,
71 WRAPPER_FUNCTION(int, pthread_attr_getschedparam
,
72 (const pthread_attr_t
*attr
, struct sched_param
*param
),
73 return B_TO_POSITIVE_ERROR(sReal_pthread_attr_getschedparam(attr
,
78 WRAPPER_FUNCTION(int, pthread_attr_getguardsize
,
79 (const pthread_attr_t
*attr
, size_t *guardsize
),
80 return B_TO_POSITIVE_ERROR(sReal_pthread_attr_getguardsize(attr
,
85 WRAPPER_FUNCTION(int, pthread_attr_setguardsize
,
86 (pthread_attr_t
*attr
, size_t guardsize
),
87 return B_TO_POSITIVE_ERROR(sReal_pthread_attr_setguardsize(attr
,