xref: /haiku/src/system/libroot/posix/pthread/pthread_atfork.c (revision 5af32e752606778be5dd7379f319fe43cb3f6b8c)
1*5af32e75SAxel Dörfler /*
2*5af32e75SAxel Dörfler ** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3*5af32e75SAxel Dörfler ** Distributed under the terms of the Haiku License.
4*5af32e75SAxel Dörfler */
5*5af32e75SAxel Dörfler 
6*5af32e75SAxel Dörfler 
7*5af32e75SAxel Dörfler #include <pthread.h>
8*5af32e75SAxel Dörfler #include <fork.h>
9*5af32e75SAxel Dörfler 
10*5af32e75SAxel Dörfler 
11*5af32e75SAxel Dörfler int
12*5af32e75SAxel Dörfler pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void))
13*5af32e75SAxel Dörfler {
14*5af32e75SAxel Dörfler 	return __register_atfork(prepare, parent, child);
15*5af32e75SAxel Dörfler }
16*5af32e75SAxel Dörfler 
17