xref: /haiku/src/libs/posix_error_mapper/pthread_misc.cpp (revision 39d58e2f49f4b073ded3dbf639fd55730fa520a0)
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_atfork,
12 		(void (*prepare)(void), void (*parent)(void), void (*child)(void)),
13 	return B_TO_POSITIVE_ERROR(sReal_pthread_atfork(prepare, parent, child));
14 )
15 
16 
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));
20 )
21