2 ** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
12 #include <errno_private.h>
15 /** This is the BeOS compatible atfork() function; since it's not part of POSIX,
16 * it should probably go away over time.
17 * Use pthread_atfork() instead.
21 atfork(void (*function
)(void))
23 status_t status
= __register_atfork(NULL
, NULL
, function
);