r3586: Fix some of the issues with the module init functions.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 6 Nov 2004 23:23:15 +0000 (23:23 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:05:36 +0000 (13:05 -0500)
commit71db46ea665606384f2be1be708c74c97c9adfb2
tree24c84e12f4fc925f3ec1e69348493d7222df1e44
parentb012ab557b8f8a2f58dfbbe8b7818f3e6d8cf38f
r3586: Fix some of the issues with the module init functions.

Both subsystems and modules can now have init functions, which can be
specified in .mk files (INIT_FUNCTION = ...)

The build system will define :
 - SUBSYSTEM_init_static_modules that calls the init functions of all statically compiled modules. Failing to load will generate an error which is not fatal
 - BINARY_init_subsystems that calls the init functions (if defined) for the subsystems the binary depends on

This removes the hack with the "static bool Initialised = " and the
"lazy_init" functions
(This used to be commit 7a8244761bfdfdfb48f8264d76951ebdfbf7bd8a)
49 files changed:
source4/auth/auth.c
source4/auth/config.mk
source4/build/pidl/header.pm
source4/build/pidl/server.pm
source4/build/smb_build/depend.pl
source4/build/smb_build/public.m4
source4/build/smb_build/smb_build_h.pl
source4/client/client.c
source4/gtk/tools/gepdump.c
source4/gtk/tools/gregedit.c
source4/gtk/tools/gwcrontab.c
source4/gtk/tools/gwsam.c
source4/lib/iconv.c
source4/lib/ldb/config.m4
source4/lib/registry/common/reg_interface.c
source4/lib/registry/config.mk
source4/lib/registry/tools/regdiff.c
source4/lib/registry/tools/regpatch.c
source4/lib/registry/tools/regshell.c
source4/lib/registry/tools/regtree.c
source4/lib/socket/socket_ipv4.c
source4/lib/socket/socket_ipv6.c
source4/lib/socket/socket_unix.c
source4/libcli/auth/gensec.c
source4/libcli/auth/gensec.mk
source4/librpc/config.mk
source4/librpc/rpc/dcerpc.c
source4/ntvfs/config.mk
source4/ntvfs/ntvfs_base.c
source4/ntvfs/posix/config.mk
source4/ntvfs/unixuid/config.mk
source4/rpc_server/config.mk
source4/rpc_server/dcerpc_server.c
source4/rpc_server/remote/dcesrv_remote.c
source4/smbd/config.mk
source4/smbd/process_model.c
source4/smbd/process_model.mk
source4/smbd/rewrite.c
source4/smbd/service.c
source4/torture/gentest.c
source4/torture/locktest.c
source4/torture/masktest.c
source4/torture/torture.c
source4/utils/getntacl.c
source4/utils/ndrdump.c
source4/utils/net/net.c
source4/utils/ntlm_auth.c
source4/utils/setntacl.c
source4/utils/setnttoken.c