#include "fork_callbacks.h"
#include "src/__support/CPP/mutex.h"
#include "src/__support/macros/config.h"
#include "src/__support/threads/mutex.h"
#include <stddef.h>
namespace LIBC_NAMESPACE_DECL {
namespace {
struct ForkCallbackTriple { … };
class AtForkCallbackManager { … };
AtForkCallbackManager cb_manager;
}
bool register_atfork_callbacks(ForkCallback *prepare_cb,
ForkCallback *parent_cb,
ForkCallback *child_cb) { … }
void invoke_child_callbacks() { … }
void invoke_prepare_callbacks() { … }
void invoke_parent_callbacks() { … }
}