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_atfork
,
12 (void (*prepare
)(void), void (*parent
)(void), void (*child
)(void)),
13 return B_TO_POSITIVE_ERROR(sReal_pthread_atfork(prepare
, parent
, child
));
17 WRAPPER_FUNCTION(int, pthread_once
,
18 (pthread_once_t
*once_control
, void (*init_routine
)(void)),
19 return B_TO_POSITIVE_ERROR(sReal_pthread_once(once_control
, init_routine
));