1 /* 2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 #include <pthread.h> 7 8 #include "posix_error_mapper.h" 9 10 11 WRAPPER_FUNCTION(int, pthread_condattr_destroy, 12 (pthread_condattr_t *condAttr), 13 return B_TO_POSITIVE_ERROR(sReal_pthread_condattr_destroy(condAttr)); 14 ) 15 16 17 WRAPPER_FUNCTION(int, pthread_condattr_init, 18 (pthread_condattr_t *condAttr), 19 return B_TO_POSITIVE_ERROR(sReal_pthread_condattr_init(condAttr)); 20 ) 21 22 23 WRAPPER_FUNCTION(int, pthread_condattr_getpshared, 24 (const pthread_condattr_t *condAttr, int *processShared), 25 return B_TO_POSITIVE_ERROR(sReal_pthread_condattr_getpshared(condAttr, 26 processShared)); 27 ) 28 29 30 WRAPPER_FUNCTION(int, pthread_condattr_setpshared, 31 (pthread_condattr_t *condAttr, int processShared), 32 return B_TO_POSITIVE_ERROR(sReal_pthread_condattr_setpshared(condAttr, 33 processShared)); 34 ) 35 36 37 WRAPPER_FUNCTION(int, pthread_condattr_getclock, 38 (const pthread_condattr_t *condAttr, clockid_t *clockID), 39 return B_TO_POSITIVE_ERROR(sReal_pthread_condattr_getclock(condAttr, 40 clockID)); 41 ) 42 43 44 WRAPPER_FUNCTION(int, pthread_condattr_setclock, 45 (pthread_condattr_t *condAttr, clockid_t clockID), 46 return B_TO_POSITIVE_ERROR(sReal_pthread_condattr_setclock(condAttr, 47 clockID)); 48 ) 49