1*39d58e2fSIngo Weinhold /* 2*39d58e2fSIngo Weinhold * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3*39d58e2fSIngo Weinhold * Distributed under the terms of the MIT License. 4*39d58e2fSIngo Weinhold */ 5*39d58e2fSIngo Weinhold 6*39d58e2fSIngo Weinhold #include <pthread.h> 7*39d58e2fSIngo Weinhold 8*39d58e2fSIngo Weinhold #include "posix_error_mapper.h" 9*39d58e2fSIngo Weinhold 10*39d58e2fSIngo Weinhold 11*39d58e2fSIngo Weinhold WRAPPER_FUNCTION(int, pthread_atfork, 12*39d58e2fSIngo Weinhold (void (*prepare)(void), void (*parent)(void), void (*child)(void)), 13*39d58e2fSIngo Weinhold return B_TO_POSITIVE_ERROR(sReal_pthread_atfork(prepare, parent, child)); 14*39d58e2fSIngo Weinhold ) 15*39d58e2fSIngo Weinhold 16*39d58e2fSIngo Weinhold 17*39d58e2fSIngo Weinhold WRAPPER_FUNCTION(int, pthread_once, 18*39d58e2fSIngo Weinhold (pthread_once_t *once_control, void (*init_routine)(void)), 19*39d58e2fSIngo Weinhold return B_TO_POSITIVE_ERROR(sReal_pthread_once(once_control, init_routine)); 20*39d58e2fSIngo Weinhold ) 21