From 0c2bfd9d5a49a6134188f8f7820f6ccdebd9f181 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 28 Jan 2015 19:57:22 +0100 Subject: Add a hook to be called right after main. * common/init.c (early_system_init): New stub function. Signed-off-by: Werner Koch --- common/init.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'common/init.c') diff --git a/common/init.c b/common/init.c index 2d5d6301c..c68a4e631 100644 --- a/common/init.c +++ b/common/init.c @@ -133,6 +133,13 @@ writestring_via_estream (int mode, const char *string) } +/* This function should be the first called after main. */ +void +early_system_init (void) +{ +} + + /* This function is to be used early at program startup to make sure that some subsystems are initialized. This is in particular important for W32 to initialize the sockets so that our socket -- cgit v1.2.3