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_rwlockattr_init, 12 (pthread_rwlockattr_t *attr), 13 return B_TO_POSITIVE_ERROR(sReal_pthread_rwlockattr_init(attr)); 14 ) 15 16 17 WRAPPER_FUNCTION(int, pthread_rwlockattr_destroy, 18 (pthread_rwlockattr_t *attr), 19 return B_TO_POSITIVE_ERROR(sReal_pthread_rwlockattr_destroy(attr)); 20 ) 21 22 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, 26 shared)); 27 ) 28 29 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, 33 shared)); 34 ) 35